KDevelop API Documentation

ImplementationWidget Class Reference

#include <implementationwidget.h>

Inheritance diagram for ImplementationWidget:

Inheritance graph
[legend]
Collaboration diagram for ImplementationWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImplementationWidget (CppSupportPart *part, const QString &formName, QWidget *parent=0, const char *name=0, bool modal=FALSE)
 ~ImplementationWidget ()
ClassDom selectedClass ()

Protected Slots

virtual void classNameChanged (const QString &text)
virtual void accept ()

Protected Member Functions

void processNamespaces (NamespaceDom dom, KListViewItem *parent)
void processClasses (ClassDom dom, KListViewItem *parent)
bool createClass ()

Private Attributes

CppSupportPartm_part
ClassDom m_selectedClass
QString m_formName
QString m_baseClassName

Constructor & Destructor Documentation

ImplementationWidget::ImplementationWidget CppSupportPart part,
const QString formName,
QWidget parent = 0,
const char *  name = 0,
bool  modal = FALSE
 

Definition at line 65 of file implementationwidget.cpp.

References KDevPlugin::codeModel(), DomUtil::elementByPathExt(), CodeModel::globalNamespace(), m_baseClassName, m_formName, m_part, DomUtil::openDOMFile(), and processNamespaces().

ImplementationWidget::~ImplementationWidget  ) 
 

Definition at line 95 of file implementationwidget.cpp.


Member Function Documentation

void ImplementationWidget::accept  )  [protected, virtual, slot]
 

Definition at line 105 of file implementationwidget.cpp.

References ClassList, KDevPlugin::codeModel(), createClass(), ImplUtils::ClassItem::dom(), KMessageBox::error(), CodeModel::globalNamespace(), m_part, and m_selectedClass.

void ImplementationWidget::classNameChanged const QString text  )  [protected, virtual, slot]
 

Reimplemented from CreateImplemenationWidgetBase.

Definition at line 100 of file implementationwidget.cpp.

References text().

bool ImplementationWidget::createClass  )  [protected]
 

Definition at line 136 of file implementationwidget.cpp.

References KDevProject::activeDirectory(), KDevProject::addFiles(), KMessageBox::error(), m_baseClassName, m_formName, m_part, KDevProject::options(), KDevPlugin::project(), KDevProject::projectDirectory(), and FileTemplate::read().

Referenced by accept().

void ImplementationWidget::processClasses ClassDom  dom,
KListViewItem parent
[protected]
 

Definition at line 88 of file implementationwidget.cpp.

References ClassDom, and ClassList.

Referenced by processNamespaces().

void ImplementationWidget::processNamespaces NamespaceDom  dom,
KListViewItem parent
[protected]
 

Definition at line 78 of file implementationwidget.cpp.

References ClassList, NamespaceDom, NamespaceList, and processClasses().

Referenced by ImplementationWidget().

ClassDom ImplementationWidget::selectedClass  ) 
 

Definition at line 131 of file implementationwidget.cpp.

References ClassDom.

Referenced by QtDesignerIntegration::selectImplementation().


Member Data Documentation

QString ImplementationWidget::m_baseClassName [private]
 

Definition at line 59 of file implementationwidget.h.

Referenced by createClass(), and ImplementationWidget().

QString ImplementationWidget::m_formName [private]
 

Definition at line 58 of file implementationwidget.h.

Referenced by createClass(), and ImplementationWidget().

CppSupportPart* ImplementationWidget::m_part [private]
 

Definition at line 56 of file implementationwidget.h.

Referenced by accept(), createClass(), and ImplementationWidget().

ClassDom ImplementationWidget::m_selectedClass [private]
 

Definition at line 57 of file implementationwidget.h.

Referenced by accept().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:43:29 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003