Class overview   Alphabetical list   Annotated list   Header Files   Member List  

DesignModule Class Reference


The main design window of Ebuilder holding the TreeWidget More...

#include <dsgnmdl.h>

List of all member functions.

Public Members

Signals

Private Members

Private Slots


Detailed Description

The main design window of Ebuilder holding the TreeWidget

The DesignModule is the main window of Ebuilder. All operations like load, save, export and construction of new subwidgets is done through this window.


Member Function Documentation

DesignModule::DesignModule(QWidget *parent, const char *name)

Create a design module. This will also create a number of other modules like MemberFuncListModule, MemberVarListModule and InclListModule.

DesignModule::~DesignModule()

Delete a DesignModule

void DesignModule::quit() [signal]

This signal is emitted by the DesignModule when file->exit was selected from the menu bar.

void DesignModule::resizeEvent(QResizeEvent *) [private]

Handle resize events. This mainly resizes the TreeWidget since the menu bar resizes itself.

bool DesignModule::checkName(const char *name) [private]

Check names for validity. Empty names or names with special characters in them are not accepted.

void DesignModule::rebuildTree(QWidget *target, TreeNode *par) [private]

Rebuild the tree view of a widget. For each subwidget a TreeNode is created and added to the TreeWidget. This member function is recursive.

QPixmap* DesignModule::getPixmap(QWidget *target) [private]

Return the correct QPixmap to use for a widget type in the TreeWidget.

void DesignModule::newApp() [private, slot]

Create a new design. This slot is called when file->new is selected.

void DesignModule::save() [private, slot]

Save the current design to disk using a proprietary format. This slot is activated when file->save is selected.

void DesignModule::load() [private, slot]

Load a design from disk. The design should be store in the proprietary format used by Ebuilder. If any error occurs during loading, the current design will not be overwritten.

void DesignModule::export() [private, slot]

Export the current design to C++. This slot is activated when file->export is selected.

void DesignModule::stopApp() [private, slot]

Emits a quit signal.

void DesignModule::addNode(int type) [private, slot]

Add a subwidget to the currently selected widget and let the user set its properties.

void DesignModule::deleteNode() [private, slot]

Delete the currently selected node and all its children from the design.

void DesignModule::editNode() [private, slot]

Edit the properties of the currently selected node using a WidgetInspector.

void DesignModule::renameNode() [private, slot]

Rename the current node and its accompanying widget. If the current node is the root node, the WidgetInfo data will be updated as well.

void DesignModule::actNode() [private, slot]

Activate a node after it has been selected. This moves the PlaceHolder to the widget associated with this node.

void DesignModule::stopSelection() [private, slot]

Unselects all nodes and hides the PlaceHolder.

void DesignModule::changeVisibility(int idx) [private, slot]

Update the visibility of the different windows such as the member function window.

void DesignModule::editPrefs() [private, slot]

Edit the preferences for Ebuilder. These include x- and y grid settings and extensions used for exporting C++ code.

void DesignModule::editInh() [private, slot]

Edit the inheritance properties of the design. This may force us to re-load the whole design. This happens if the substitute class is changed from QWidget to QDialog or vice-versa.


Member Variable Documentation

QPopupMenu* DesignModule::nodePopup [private]

The popup menu used on the TreeWidget nodes

QPopupMenu* DesignModule::addPopup [private]

The popup menu used for adding new nodes

QPopupMenu* DesignModule::backPopup [private]

The popup used for the TreeWidget background

QPopupMenu* DesignModule::editPopup [private]

The popup used for the edit menu item

QPopupMenu* DesignModule::windowPopup [private]

The popup used for the window menu item

QMenuBar* DesignModule::menu [private]

The menu bar

TreeWidget* DesignModule::tree [private]

The TreeWidget used for the hierarchical widget view

PlaceHolder* DesignModule::place [private]

The PlaceHolder used for widget resize/move operations

ValModal* DesignModule::valDialog [private]

A general modal for asking questions to the user

MemberFuncListModule* DesignModule::mfWin [private]

The member function window

MemberVarListModule* DesignModule::mvWin [private]

The member variable window

InclListModule* DesignModule::incWin [private]

The include file window

WidgetInfo* DesignModule::wInfo [private]

All info about the widget that's being designed

QPixmap* DesignModule::pics[17] [private]

The pixmaps used for the different widget types

int DesignModule::nextNumber [private]

The next free number for automatic widget naming

QString DesignModule::hExt [private]

The header extension used for exporting

QString DesignModule::iExt [private]

The implementation extension used for exporting

QString DesignModule::expDir [private]

The directory used for exporting

int DesignModule::gridx [private]

The size of the layout grid in the x-direction

int DesignModule::gridy [private]

The size of the layout grid in the y-direction


This file was generated from the following files:
Generated at 14:38, 1998/04/17 for Ebuilder by doxygen  written by Dimitri van Heesch, © 1997-1998