• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Designer Integration Support Library
 

KDevelop Designer Integration Support Library

  • languages
  • lib
  • designer_integration
implementationwidget.h
1/***************************************************************************
2 * Copyright (C) 2004 by Alexander Dymo *
3 * adymo@kdevelop.org *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU Library General Public License as *
7 * published by the Free Software Foundation; either version 2 of the *
8 * License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Library General Public *
16 * License along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20
21#ifndef IMPLEMENTATIONWIDGET_H
22#define IMPLEMENTATIONWIDGET_H
23
24#include "implementationwidgetbase.h"
25
26#include <codemodel.h>
27
28class TDEListViewItem;
29class KDevLanguageSupport;
30
40class ImplementationWidget : public CreateImplemenationWidgetBase
41{
42TQ_OBJECT
43
44public:
45 ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false);
46 virtual ~ImplementationWidget();
47 /*$PUBLIC_FUNCTIONS$*/
48
50 ClassDom selectedClass();
51
53 int exec(const TQString &formName);
54
55public slots:
56 /*$PUBLIC_SLOTS$*/
57
58protected:
59 /*$PROTECTED_FUNCTIONS$*/
62 void init(const TQString &formName);
63
64 void processNamespaces(NamespaceDom dom, TDEListViewItem *parent);
65 void processClasses(ClassDom dom, TDEListViewItem *parent);
66
68 bool createClass();
69
72 virtual TQStringList createClassFiles() = 0;
73
74protected slots:
75 /*$PROTECTED_SLOTS$*/
76 virtual void classNameChanged(const TQString &text);
77 virtual void accept();
78
79protected:
80 KDevLanguageSupport *m_part;
81 ClassDom m_selectedClass;
82 TQString m_formName;
83 TQString m_baseClassName;
84};
85
86#endif
87
ImplementationWidget
Base class for implementation creation widgets.
Definition implementationwidget.h:41
ImplementationWidget::exec
int exec(const TQString &formName)
Executes implementation widget for a form formName.
Definition implementationwidget.cpp:151
ImplementationWidget::createClassFiles
virtual TQStringList createClassFiles()=0
Reimplement to create actual files with the form implementation.
ImplementationWidget::selectedClass
ClassDom selectedClass()
Definition implementationwidget.cpp:140
ImplementationWidget::init
void init(const TQString &formName)
Sets up the dialog.
Definition implementationwidget.cpp:69
ImplementationWidget::createClass
bool createClass()
Creates a class and adds it to a project.
Definition implementationwidget.cpp:145

KDevelop Designer Integration Support Library

Skip menu "KDevelop Designer Integration Support Library"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Designer Integration Support Library

Skip menu "KDevelop Designer Integration Support Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Designer Integration Support Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.