Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqEditorDlog Class Reference

The TxqEditorDlog is a QDialog class used to contstruct a dialog frame around a TxqEditor to edit a TxAttributeSet. More...

#include <TxqEditorDlog.h>

Inheritance diagram for TxqEditorDlog::

QDialog List of all members.

Public Slots

void closeWindow (int id)
 Slot used to close the window if the id number matches the window id. More...


Signals

virtual void cancelButtonPressed ()
 signal emitted whenever the Cancel button is pressed. More...

virtual void revertButtonPressed ()
 Signal emitted whenever the Revert button is pressed. More...

virtual void applyButtonPressed ()
 Signal emitted whenever the Apply button is pressed. More...

virtual void applyButtonPressed (int)
 Signal emitted whenever the Apply button is pressed. More...

virtual void okButtonPressed ()
 Signal emitted whenever the Ok button is pressed. More...

void aboutToClose (int id)
 Signal emitted with the windowId number whenver the editor is about to close. More...


Public Methods

 TxqEditorDlog (TxAttributeSet *txa, QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
 Constructs a TxqEditorDlog which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More...

 ~TxqEditorDlog ()
 The destructor will destroy the object and free any allocated resources. More...

void setAttribute (TxAttributeSet *txa)
 Set the TxAttributeSet pointer which holds the data to edit. More...

void setAttributeFilter (vector< string > &filterNames)
 Set the attribute filter names. More...

void setWindowId (int id)
 Set the window Id number. More...


Protected Slots

virtual void revertClicked ()
 Slot used whenever the Revert button is clicked. More...

virtual void applyClicked ()
 Slot used whenever the Apply button is clicked. More...

virtual void okClicked ()
 Slot used whenever the Ok button is clicked. More...

virtual void cancelClicked ()
 Slot used whenever the Cancel button is clicked. More...

virtual void windowIdSlot ()
 Slot used whenever the Apply and Ok button is clicked. More...

virtual void closeWindow ()
 Slot used to close the window and set the windowOpen option in the input attribute. More...


Protected Attributes

QVBoxLayout* dlogLayout
 The layout for this QDialog class. More...

QHBoxLayout* buttonLayout
 The layout for the buttons. More...

TxqEditTableeditor
 The TxqEditor to edit the attrubutes. More...

QPushButton* buttonCancel
 The Cancel button. More...

QPushButton* buttonRevert
 The Revert button. More...

QPushButton* buttonApply
 The Apply button. More...

QPushButton* buttonOk
 The Ok button. More...


Private Attributes

TxAttributeSeteditAttrib
 The edit attribute set pointer. More...

TxAttributeSetattrib
 The input attribute set pointer. More...

int windowId
 The window Id number. More...


Detailed Description

The TxqEditorDlog is a QDialog class used to contstruct a dialog frame around a TxqEditor to edit a TxAttributeSet.

It adds a Cancel, Revert, Apply, and Ok button to the dialog frame. The user can select an item to edit with the mouse.

Definition at line 41 of file TxqEditorDlog.h.


Constructor & Destructor Documentation

TxqEditorDlog::TxqEditorDlog ( TxAttributeSet * txa,
QWidget * parent = 0,
const char * name = 0,
bool modal = FALSE,
WFlags fl = 0 )
 

Constructs a TxqEditorDlog which is a child of 'parent', with the name 'name' and widget flags set to 'f'.

The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.

Parameters:
txa   the TxAttributeSet to edit.
parent   the TxqEditorDlog parent, default is 0
name   the name of this TxqEditorDlog.
model   flag to determine if dialog should be modal, default is false
wflags   the window flags are defaulted to 0

TxqEditorDlog::~TxqEditorDlog ( )
 

The destructor will destroy the object and free any allocated resources.


Member Function Documentation

void TxqEditorDlog::aboutToClose ( int id ) [signal]
 

Signal emitted with the windowId number whenver the editor is about to close.

void TxqEditorDlog::applyButtonPressed ( int ) [virtual, signal]
 

Signal emitted whenever the Apply button is pressed.

Signal includes the window Id number.

void TxqEditorDlog::applyButtonPressed ( ) [virtual, signal]
 

Signal emitted whenever the Apply button is pressed.

void TxqEditorDlog::applyClicked ( ) [protected, virtual, slot]
 

Slot used whenever the Apply button is clicked.

void TxqEditorDlog::cancelButtonPressed ( ) [virtual, signal]
 

signal emitted whenever the Cancel button is pressed.

void TxqEditorDlog::cancelClicked ( ) [protected, virtual, slot]
 

Slot used whenever the Cancel button is clicked.

void TxqEditorDlog::closeWindow ( ) [protected, virtual, slot]
 

Slot used to close the window and set the windowOpen option in the input attribute.

void TxqEditorDlog::closeWindow ( int id ) [slot]
 

Slot used to close the window if the id number matches the window id.

Parameters:
id   the requested id number

void TxqEditorDlog::okButtonPressed ( ) [virtual, signal]
 

Signal emitted whenever the Ok button is pressed.

void TxqEditorDlog::okClicked ( ) [protected, virtual, slot]
 

Slot used whenever the Ok button is clicked.

void TxqEditorDlog::revertButtonPressed ( ) [virtual, signal]
 

Signal emitted whenever the Revert button is pressed.

void TxqEditorDlog::revertClicked ( ) [protected, virtual, slot]
 

Slot used whenever the Revert button is clicked.

void TxqEditorDlog::setAttribute ( TxAttributeSet * txa )
 

Set the TxAttributeSet pointer which holds the data to edit.

Parameters:
txa   the TxAttributeSet pointer.

void TxqEditorDlog::setAttributeFilter ( vector< string > & filterNames )
 

Set the attribute filter names.

These names may be in the TxAttibuteSet but will not be displayed in the attribute editor.

Parameters:
filterNames   the string of filter names.

void TxqEditorDlog::setWindowId ( int id )
 

Set the window Id number.

Parameters:
id   the integer windowId number.

void TxqEditorDlog::windowIdSlot ( ) [protected, virtual, slot]
 

Slot used whenever the Apply and Ok button is clicked.

emits applyButtonPressed signal


Member Data Documentation

TxAttributeSet * TxqEditorDlog::attrib [private]
 

The input attribute set pointer.

Definition at line 213 of file TxqEditorDlog.h.

QPushButton * TxqEditorDlog::buttonApply [protected]
 

The Apply button.

Definition at line 195 of file TxqEditorDlog.h.

QPushButton * TxqEditorDlog::buttonCancel [protected]
 

The Cancel button.

Definition at line 185 of file TxqEditorDlog.h.

QHBoxLayout * TxqEditorDlog::buttonLayout [protected]
 

The layout for the buttons.

Definition at line 174 of file TxqEditorDlog.h.

QPushButton * TxqEditorDlog::buttonOk [protected]
 

The Ok button.

Definition at line 200 of file TxqEditorDlog.h.

QPushButton * TxqEditorDlog::buttonRevert [protected]
 

The Revert button.

Definition at line 190 of file TxqEditorDlog.h.

QVBoxLayout * TxqEditorDlog::dlogLayout [protected]
 

The layout for this QDialog class.

Definition at line 169 of file TxqEditorDlog.h.

TxAttributeSet * TxqEditorDlog::editAttrib [private]
 

The edit attribute set pointer.

This is an internal pointer used by the editor.

Definition at line 208 of file TxqEditorDlog.h.

TxqEditTable * TxqEditorDlog::editor [protected]
 

The TxqEditor to edit the attrubutes.

Definition at line 180 of file TxqEditorDlog.h.

int TxqEditorDlog::windowId [private]
 

The window Id number.

Definition at line 218 of file TxqEditorDlog.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.