#include <tictactoeplugin.h>
Inheritance diagram for TicTacToePlugin:


Definition at line 32 of file tictactoeplugin.h.
Public Member Functions | |
| TicTacToePlugin (QObject *parent=0) | |
| QString | name () const |
| QString | group () const |
| QString | toolTip () const |
| QString | whatsThis () const |
| QString | includeFile () const |
| QIcon | icon () const |
| bool | isContainer () const |
| QWidget * | createWidget (QWidget *parent) |
| bool | isInitialized () const |
| void | initialize (QDesignerFormEditorInterface *formEditor) |
Private Attributes | |
| bool | initialized |
| TicTacToePlugin::TicTacToePlugin | ( | QObject * | parent = 0 |
) |
Definition at line 32 of file tictactoeplugin.cpp.
References initialized.
00033 : QObject(parent) 00034 { 00035 initialized = false; 00036 }
| QString TicTacToePlugin::name | ( | ) | const [virtual] |
| QString TicTacToePlugin::group | ( | ) | const [virtual] |
| QString TicTacToePlugin::toolTip | ( | ) | const [virtual] |
| QString TicTacToePlugin::whatsThis | ( | ) | const [virtual] |
| QString TicTacToePlugin::includeFile | ( | ) | const [virtual] |
| QIcon TicTacToePlugin::icon | ( | ) | const [virtual] |
Implements QDesignerCustomWidgetInterface.
Definition at line 63 of file tictactoeplugin.cpp.
00064 { 00065 return QIcon(); 00066 }
| bool TicTacToePlugin::isContainer | ( | ) | const [virtual] |
Implements QDesignerCustomWidgetInterface.
Definition at line 73 of file tictactoeplugin.cpp.
References QObject::parent(), and TicTacToe::setState().
00074 { 00075 TicTacToe *ticTacToe = new TicTacToe(parent); 00076 ticTacToe->setState("-X-XO----"); 00077 return ticTacToe; 00078 }
Here is the call graph for this function:

| bool TicTacToePlugin::isInitialized | ( | ) | const [virtual] |
Reimplemented from QDesignerCustomWidgetInterface.
Definition at line 80 of file tictactoeplugin.cpp.
References initialized.
00081 { 00082 return initialized; 00083 }
| void TicTacToePlugin::initialize | ( | QDesignerFormEditorInterface * | formEditor | ) | [virtual] |
Reimplemented from QDesignerCustomWidgetInterface.
Definition at line 85 of file tictactoeplugin.cpp.
References QDesignerFormEditorInterface::extensionManager(), initialized, Q_TYPEID, and QExtensionManager::registerExtensions().
00086 { 00087 if (initialized) 00088 return; 00089 00090 QExtensionManager *manager = formEditor->extensionManager(); 00091 Q_ASSERT(manager != 0); 00092 00093 manager->registerExtensions(new TicTacToeTaskMenuFactory(manager), 00094 Q_TYPEID(QDesignerTaskMenuExtension)); 00095 00096 initialized = true; 00097 }
Here is the call graph for this function:

bool TicTacToePlugin::initialized [private] |
Definition at line 52 of file tictactoeplugin.h.
Referenced by initialize(), isInitialized(), and TicTacToePlugin().
1.5.1