diff options
Diffstat (limited to 'languages/cpp/subclassing_template')
6 files changed, 91 insertions, 0 deletions
diff --git a/languages/cpp/subclassing_template/.kdev_ignore b/languages/cpp/subclassing_template/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/cpp/subclassing_template/.kdev_ignore diff --git a/languages/cpp/subclassing_template/Makefile.am b/languages/cpp/subclassing_template/Makefile.am new file mode 100644 index 00000000..4e722ca0 --- /dev/null +++ b/languages/cpp/subclassing_template/Makefile.am @@ -0,0 +1,5 @@ +cppsupportdatadir = ${kde_datadir}/kdevcppsupport +subclassingdir = ${cppsupportdatadir}/subclassing + +subclassing_DATA = subclass_template.h subclass_template.cpp \ + subclass_qt4_template.h subclass_qt4_template.cpp diff --git a/languages/cpp/subclassing_template/subclass_qt4_template.cpp b/languages/cpp/subclassing_template/subclass_qt4_template.cpp new file mode 100644 index 00000000..6c008d43 --- /dev/null +++ b/languages/cpp/subclassing_template/subclass_qt4_template.cpp @@ -0,0 +1,16 @@ + + +#include "$NEWFILENAMELC$.h" + +$NEWCLASS$::$NEWCLASS$(QWidget* parent, Qt::WFlags fl) +: $QTBASECLASS$( parent, fl ), Ui::$BASECLASS$() +{ + setupUi(this); +} + +$NEWCLASS$::~$NEWCLASS$() +{ +} + +/*$SPECIALIZATION$*/ + diff --git a/languages/cpp/subclassing_template/subclass_qt4_template.h b/languages/cpp/subclassing_template/subclass_qt4_template.h new file mode 100644 index 00000000..a8a02303 --- /dev/null +++ b/languages/cpp/subclassing_template/subclass_qt4_template.h @@ -0,0 +1,28 @@ + +#ifndef $NEWFILENAMEUC$_H +#define $NEWFILENAMEUC$_H + +#include <$QTBASECLASS$> +#include "ui_$BASEFILENAME$.h" + +class $NEWCLASS$ : public $QTBASECLASS$, private Ui::$BASECLASS$ +{ + Q_OBJECT + +public: + $NEWCLASS$(QWidget* parent = 0, Qt::WFlags fl = 0 ); + ~$NEWCLASS$(); + /*$PUBLIC_FUNCTIONS$*/ + +public slots: + /*$PUBLIC_SLOTS$*/ + +protected: + /*$PROTECTED_FUNCTIONS$*/ + +protected slots: + /*$PROTECTED_SLOTS$*/ + +}; + +#endif diff --git a/languages/cpp/subclassing_template/subclass_template.cpp b/languages/cpp/subclassing_template/subclass_template.cpp new file mode 100644 index 00000000..19269531 --- /dev/null +++ b/languages/cpp/subclassing_template/subclass_template.cpp @@ -0,0 +1,15 @@ + + +#include "$NEWFILENAMELC$.h" + +$NEWCLASS$::$NEWCLASS$(QWidget* parent, const char* name$CAN_BE_MODAL_CPP1$, WFlags fl) +: $BASECLASS$(parent,name$CAN_BE_MODAL_CPP2$,fl) +{ +} + +$NEWCLASS$::~$NEWCLASS$() +{ +} + +/*$SPECIALIZATION$*/ + diff --git a/languages/cpp/subclassing_template/subclass_template.h b/languages/cpp/subclassing_template/subclass_template.h new file mode 100644 index 00000000..18846cc6 --- /dev/null +++ b/languages/cpp/subclassing_template/subclass_template.h @@ -0,0 +1,27 @@ + +#ifndef $NEWFILENAMEUC$_H +#define $NEWFILENAMEUC$_H + +#include "$BASEFILENAME$.h" + +class $NEWCLASS$ : public $BASECLASS$ +{ + Q_OBJECT + +public: + $NEWCLASS$(QWidget* parent = 0, const char* name = 0$CAN_BE_MODAL_H$, WFlags fl = 0 ); + ~$NEWCLASS$(); + /*$PUBLIC_FUNCTIONS$*/ + +public slots: + /*$PUBLIC_SLOTS$*/ + +protected: + /*$PROTECTED_FUNCTIONS$*/ + +protected slots: + /*$PROTECTED_SLOTS$*/ + +}; + +#endif |