KDevelop API Documentation

ClassToolDialog Class Reference

#include <classtooldlg.h>

Inheritance diagram for ClassToolDialog:

QWidget List of all members.

Public Types

enum  Operations {
  ViewParents, ViewChildren, ViewClients, ViewSuppliers,
  ViewMethods, ViewAttributes, ViewNone
}

Public Slots

void viewNone ()
 View nothing.

void viewParents ()
 View the parents of the current class.

void viewChildren ()
 View the children of the current class.

void viewClients ()
 View all classes that has this class as an attribute.

void viewSuppliers ()
 View all classes that this class has as attributes.

void viewMethods ()
 View methods in this class and parents.

void viewAttributes ()
 View attributes in this class and parents.


Public Member Functions

 ClassToolDialog (ClassViewPart *part)
 ~ClassToolDialog ()
void setClassName (const QString &name)

Private Slots

void setLanguageSupport (KDevLanguageSupport *ls)
void refresh ()
void delayedClose ()
void slotClose ()
void slotAccessComboChoice (const QString &str)
void slotClassComboChoice (const QString &str)

Private Member Functions

void updateCaptionAndButtons ()
 Change the caption depending on the current operation.

void buildTree ()

Private Attributes

ClassToolWidgetclass_tree
QComboBoxclass_combo
QToolButtonparents_button
QToolButtonchildren_button
QToolButtonclients_button
QToolButtonsuppliers_button
QToolButtonmethods_button
QToolButtonattributes_button
QComboBoxaccess_combo
ClassStore * m_store
 Store that holds all classes in the system.

KDevLanguageSupportm_ls
ClassViewPartm_part
ParsedClass * currentClass
 The class we are currently viewing.

PIAccess comboAccess
 The current exportstatus selected in the combo.

Operations currentOperation
 Stores what operation the user selected last.


Member Enumeration Documentation

enum ClassToolDialog::Operations
 

Enumeration values:
ViewParents 
ViewChildren 
ViewClients 
ViewSuppliers 
ViewMethods 
ViewAttributes 
ViewNone 

Definition at line 35 of file classtooldlg.h.


Constructor & Destructor Documentation

ClassToolDialog::ClassToolDialog ClassViewPart part  ) 
 

Definition at line 29 of file classtooldlg.cpp.

References access_combo, attributes_button, children_button, class_combo, class_tree, ClassToolDialog(), clients_button, comboAccess, currentClass, currentOperation, m_part, methods_button, parents_button, setLanguageSupport(), slotAccessComboChoice(), slotClassComboChoice(), slotClose(), suppliers_button, viewAttributes(), viewChildren(), viewClients(), viewMethods(), ViewNone, viewParents(), and viewSuppliers().

Referenced by ClassToolDialog().

ClassToolDialog::~ClassToolDialog  ) 
 

Definition at line 129 of file classtooldlg.cpp.

References m_part.


Member Function Documentation

void ClassToolDialog::buildTree  )  [private]
 

Definition at line 330 of file classtooldlg.cpp.

References class_tree, comboAccess, currentClass, currentOperation, ClassToolWidget::insertAllClassAttributes(), ClassToolWidget::insertAllClassMethods(), ClassToolWidget::insertClassAndClasses(), m_part, updateCaptionAndButtons(), ViewAttributes, ViewChildren, ViewClients, ViewMethods, ViewNone, ViewParents, and ViewSuppliers.

Referenced by refresh(), and slotAccessComboChoice().

void ClassToolDialog::delayedClose  )  [private, slot]
 

Definition at line 247 of file classtooldlg.cpp.

void ClassToolDialog::refresh  )  [private, slot]
 

Definition at line 260 of file classtooldlg.cpp.

References buildTree(), class_combo, m_part, and setClassName().

Referenced by setClassName(), setLanguageSupport(), slotClassComboChoice(), viewAttributes(), viewChildren(), viewClients(), viewMethods(), viewNone(), viewParents(), and viewSuppliers().

void ClassToolDialog::setClassName const QString name  ) 
 

Definition at line 147 of file classtooldlg.cpp.

References class_combo, currentClass, m_part, refresh(), and setClassName().

Referenced by refresh(), setClassName(), ClassTreeBase::slotClassBaseClasses(), slotClassComboChoice(), ClassTreeBase::slotClassDerivedClasses(), and ClassTreeBase::slotClassTool().

void ClassToolDialog::setLanguageSupport KDevLanguageSupport ls  )  [private, slot]
 

Definition at line 135 of file classtooldlg.cpp.

References currentOperation, refresh(), setLanguageSupport(), and ViewNone.

Referenced by ClassToolDialog(), and setLanguageSupport().

void ClassToolDialog::slotAccessComboChoice const QString str  )  [private, slot]
 

Definition at line 221 of file classtooldlg.cpp.

References buildTree(), comboAccess, currentOperation, slotAccessComboChoice(), ViewAttributes, and ViewMethods.

Referenced by ClassToolDialog(), and slotAccessComboChoice().

void ClassToolDialog::slotClassComboChoice const QString str  )  [private, slot]
 

Definition at line 253 of file classtooldlg.cpp.

References refresh(), setClassName(), and slotClassComboChoice().

Referenced by ClassToolDialog(), and slotClassComboChoice().

void ClassToolDialog::slotClose  )  [private, slot]
 

Definition at line 240 of file classtooldlg.cpp.

Referenced by ClassToolDialog().

void ClassToolDialog::updateCaptionAndButtons  )  [private]
 

Change the caption depending on the current operation.

Definition at line 278 of file classtooldlg.cpp.

References access_combo, attributes_button, children_button, clients_button, currentClass, currentOperation, methods_button, parents_button, suppliers_button, ViewAttributes, ViewChildren, ViewClients, ViewMethods, ViewParents, and ViewSuppliers.

Referenced by buildTree().

void ClassToolDialog::viewAttributes  )  [slot]
 

View attributes in this class and parents.

Definition at line 214 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewAttributes.

Referenced by ClassToolDialog().

void ClassToolDialog::viewChildren  )  [slot]
 

View the children of the current class.

Definition at line 182 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewChildren.

Referenced by ClassToolDialog(), and ClassTreeBase::slotClassDerivedClasses().

void ClassToolDialog::viewClients  )  [slot]
 

View all classes that has this class as an attribute.

Definition at line 190 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewClients.

Referenced by ClassToolDialog().

void ClassToolDialog::viewMethods  )  [slot]
 

View methods in this class and parents.

Definition at line 206 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewMethods.

Referenced by ClassToolDialog().

void ClassToolDialog::viewNone  )  [slot]
 

View nothing.

Definition at line 166 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewNone.

Referenced by ClassTreeBase::slotClassTool().

void ClassToolDialog::viewParents  )  [slot]
 

View the parents of the current class.

Definition at line 174 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewParents.

Referenced by ClassToolDialog(), and ClassTreeBase::slotClassBaseClasses().

void ClassToolDialog::viewSuppliers  )  [slot]
 

View all classes that this class has as attributes.

Definition at line 198 of file classtooldlg.cpp.

References currentOperation, refresh(), and ViewSuppliers.

Referenced by ClassToolDialog().


Member Data Documentation

QComboBox* ClassToolDialog::access_combo [private]
 

Definition at line 83 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

QToolButton* ClassToolDialog::attributes_button [private]
 

Definition at line 82 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

QToolButton* ClassToolDialog::children_button [private]
 

Definition at line 78 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

QComboBox* ClassToolDialog::class_combo [private]
 

Definition at line 75 of file classtooldlg.h.

Referenced by ClassToolDialog(), refresh(), and setClassName().

ClassToolWidget* ClassToolDialog::class_tree [private]
 

Definition at line 74 of file classtooldlg.h.

Referenced by buildTree(), and ClassToolDialog().

QToolButton* ClassToolDialog::clients_button [private]
 

Definition at line 79 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

PIAccess ClassToolDialog::comboAccess [private]
 

The current exportstatus selected in the combo.

Definition at line 93 of file classtooldlg.h.

Referenced by buildTree(), ClassToolDialog(), and slotAccessComboChoice().

ParsedClass* ClassToolDialog::currentClass [private]
 

The class we are currently viewing.

Definition at line 91 of file classtooldlg.h.

Referenced by buildTree(), ClassToolDialog(), setClassName(), and updateCaptionAndButtons().

Operations ClassToolDialog::currentOperation [private]
 

Stores what operation the user selected last.

Definition at line 95 of file classtooldlg.h.

Referenced by buildTree(), ClassToolDialog(), setLanguageSupport(), slotAccessComboChoice(), updateCaptionAndButtons(), viewAttributes(), viewChildren(), viewClients(), viewMethods(), viewNone(), viewParents(), and viewSuppliers().

KDevLanguageSupport* ClassToolDialog::m_ls [private]
 

Definition at line 87 of file classtooldlg.h.

ClassViewPart* ClassToolDialog::m_part [private]
 

Definition at line 88 of file classtooldlg.h.

Referenced by buildTree(), ClassToolDialog(), refresh(), setClassName(), and ~ClassToolDialog().

ClassStore* ClassToolDialog::m_store [private]
 

Store that holds all classes in the system.

Definition at line 86 of file classtooldlg.h.

QToolButton* ClassToolDialog::methods_button [private]
 

Definition at line 81 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

QToolButton* ClassToolDialog::parents_button [private]
 

Definition at line 77 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().

QToolButton* ClassToolDialog::suppliers_button [private]
 

Definition at line 80 of file classtooldlg.h.

Referenced by ClassToolDialog(), and updateCaptionAndButtons().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:20 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003