#include <implementationwidget.h>
Inherits CreateImplemenationWidgetBase.
Public Member Functions | |
ImplementationWidget (KDevLanguageSupport *part, TQWidget *parent=0, const char *name=0, bool modal=false) | |
ClassDom | selectedClass () |
int | exec (const TQString &formName) |
Protected Slots | |
virtual void | classNameChanged (const TQString &text) |
virtual void | accept () |
Protected Member Functions | |
void | init (const TQString &formName) |
void | processNamespaces (NamespaceDom dom, TDEListViewItem *parent) |
void | processClasses (ClassDom dom, TDEListViewItem *parent) |
bool | createClass () |
virtual TQStringList | createClassFiles ()=0 |
Protected Attributes | |
KDevLanguageSupport * | m_part |
ClassDom | m_selectedClass |
TQString | m_formName |
TQString | m_baseClassName |
Detailed Description
Base class for implementation creation widgets.
Contains language-independent implementation widget that can be used to create or select an implementation of a form in designer.
Implementations could be subclasses or simple files with callbacks, etc.
Subclasses of this class should reimplement only pure virtual functions in the common case.
Definition at line 40 of file implementationwidget.h.
Member Function Documentation
◆ createClass()
|
protected |
Creates a class and adds it to a project.
No need to reimplement.
Definition at line 145 of file implementationwidget.cpp.
◆ createClassFiles()
|
protectedpure virtual |
Reimplement to create actual files with the form implementation.
- Returns
- The list of absolute paths to a files created.
◆ exec()
int ImplementationWidget::exec | ( | const TQString & | formName | ) |
Executes implementation widget for a form formName
.
Definition at line 151 of file implementationwidget.cpp.
◆ init()
|
protected |
Sets up the dialog.
No need to reimplement unless you want to restrict the number of classes being displayed as possible implementation classes.
Definition at line 69 of file implementationwidget.cpp.
◆ selectedClass()
ClassDom ImplementationWidget::selectedClass | ( | ) |
- Returns
- The DOM of selected (or created) class.
Definition at line 140 of file implementationwidget.cpp.
The documentation for this class was generated from the following files: