XML Mill  1.0.0
A GUI based XML editor with a memory.
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
GCAddItemsForm Class Reference

Allows the user to add elements and attributes to the active database. More...

#include <gcadditemsform.h>

List of all members.

Public Member Functions

 GCAddItemsForm (QWidget *parent=0)
 Constructor.
 ~GCAddItemsForm ()
 Destructor.

Private Slots

void addElementAndAttributes ()
 Triggered when the "Add" button is clicked.
void comboValueChanged (const QString &element)
 Disables the line edit when an existing element is selected in the drop down.
void showHelp ()
 Displays help specific to this form.

Private Member Functions

void populateCombo ()
 Populates the combo box with all the element names known to the active database.

Private Attributes

Ui::GCAddItemsForm * ui

Detailed Description

Allows the user to add elements and attributes to the active database.

This form allows the user to add new elements and their associated attributes to the database. Although only one element can be added at a time (with or without attributes), all an element's attributes can be provided in one go through simply ensuring that each attribute appears on its own line in the input text edit.

The user will also be allowed to continue adding elements until "Done" is selected.

Finally, the Qt::WA_DeleteOnClose flag is set for all instances of this form. If you're not familiar with Qt, this means that Qt will delete this widget as soon as the widget accepts the close event (i.e. you don't need to worry about clean-up of dynamically created instances of this object).

Definition at line 54 of file gcadditemsform.h.


Constructor & Destructor Documentation

GCAddItemsForm::GCAddItemsForm ( QWidget *  parent = 0) [explicit]

Constructor.

Definition at line 44 of file gcadditemsform.cpp.

Destructor.

Definition at line 70 of file gcadditemsform.cpp.


Member Function Documentation

void GCAddItemsForm::addElementAndAttributes ( ) [private, slot]

Triggered when the "Add" button is clicked.

The new element will be added as a first level child of the representative selected tree widget item if such an item exists, or as a new root element if it doesn't.

Definition at line 96 of file gcadditemsform.cpp.

void GCAddItemsForm::comboValueChanged ( const QString &  element) [private, slot]

Disables the line edit when an existing element is selected in the drop down.

Definition at line 159 of file gcadditemsform.cpp.

void GCAddItemsForm::populateCombo ( ) [private]

Populates the combo box with all the element names known to the active database.

Definition at line 77 of file gcadditemsform.cpp.

void GCAddItemsForm::showHelp ( ) [private, slot]

Displays help specific to this form.

Definition at line 185 of file gcadditemsform.cpp.


The documentation for this class was generated from the following files: