gSAFE  1.3.8
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HDispList Class Reference

#include <guilib.h>

Inherits QFrame.

Public Slots

int dialogPrint (void)
int dialogXml (void)
int itemActivated (const QString &s)
int itemAlternateActivated (const QString &s)
int litemChanged (const QString &s)
int sortByColumn (int col)
int toBegin ()
int toEnd ()
int updateDisplay (void)


void listItemChanged (void)

Public Member Functions

 HDispList (QWidget *parent, HList *d, int datamodep=FULL_CLEAN, int ddata=DONT_DELETE_DATA)
 ~HDispList (void)
HTableBrowsergetBrowserObjectClass (void)
HListgetDataClass (void)

Protected Member Functions

void keyPressEvent (QKeyEvent *e)

Protected Attributes

 The HList data pointer.
int datamode
 Data handling mode.
int deletedata
 Data allocation handling mode.
 The HTableBrowser object.

Detailed Description

HDispList is the GUI class to view/manipulate the HList objects.
You have to pass the HList in parameter, and the HDispList will automatically build the necessary gui. This class is uses a HTableBrowser to show the data. This is a QFrame descendant, so you can put it to layouts, widgets, dialogs.
The colors of the column is came from the metadata object (From HDataField -s).

See Also

Definition at line 691 of file guilib.h.

Constructor & Destructor Documentation

HDispList::HDispList ( QWidget *  parent,
HList d,
int  datamodep = FULL_CLEAN,
int  ddata = DONT_DELETE_DATA 

Creates a HDispList

parentthe parent GUI widget (QWidget descendant)
dthe metadata object to show. This case it means a HList object
datamodep:The metadata instance handling of GUI calsses (What the GUI class do with the metadata pointer on starting and destorying )
  • KEEP_ALL Don't modify the data class: After creating it will show the (previous set) data of the metadata class. On destory it leaves all data untouched too.
  • FULL_CLEAN DEFAULT MODE! On start it cleans every data to the (metadata)default value. (This way tha gui initially it shows this default data of course) On destory it cleans every data, and set to everything to default again.
  • START_CLEAN Only set the data to the default on starting. On destory the data will be untouched.
  • END_CLEAN Only set the data to the default on destory. On start the data will be untouched.
ddata: This define tells what happend with the metadata if the gui object is deleted.
  • DONT_DELETE_DATA If the gui object is deleted, leaves the metadata object untouched. (You need to manually delete the metadata later)
  • DELETE_DATA If the gui object is deleted it deletes the metadata object too. It deletes the connected meta-data object too. (Connected tables, see HTableBase) (You can't use the metadata later)

Definition at line 2350 of file guilib.cpp.

HDispList::~HDispList ( void  )


Definition at line 2442 of file guilib.cpp.

Member Function Documentation

int HDispList::dialogPrint ( void  )

Shows the print preview dialog

Definition at line 2426 of file guilib.cpp.

int HDispList::dialogXml ( void  )

Shows the xml output dialog

Definition at line 2434 of file guilib.cpp.

HTableBrowser* HDispList::getBrowserObjectClass ( void  )

Returns the HTableBrowser instance working inside

Definition at line 714 of file guilib.h.

HList* HDispList::getDataClass ( void  )

Returns the metadata object

Definition at line 712 of file guilib.h.

int HDispList::itemActivated ( const QString &  s)

This slot is received the itemActivated signal of HTableBrowser. It passes down the action to HList. Don't use it, don't call directly!

Definition at line 2502 of file guilib.cpp.

int HDispList::itemAlternateActivated ( const QString &  s)

This slot is received the alternateActivateItem signal of HTableBrowser. It passes down the action to HList. Don't use it, don't call directly!

Definition at line 2511 of file guilib.cpp.

void HDispList::listItemChanged ( void  )

This signal is emitted when the current item is changed. (When the cursor moves)

int HDispList::litemChanged ( const QString &  s)

This slot is received the itemChanged signal of HTableBrowser. Don't use it

Definition at line 2412 of file guilib.cpp.

int HDispList::sortByColumn ( int  col)

Sets the sorting of the HTableBrowser

See Also

Definition at line 2419 of file guilib.cpp.

int HDispList::toBegin ( )

Sets the cursor to the first element, and refresh the display

Definition at line 728 of file guilib.h.

int HDispList::toEnd ( )

Sets the cursor to the last element, and refresh the display

Definition at line 730 of file guilib.h.

int HDispList::updateDisplay ( void  )

This slot is activated by the metadata object, when the data modified in the memory. This means, if this function is called, the gui will re-read and show the new values of the metadata class.

Definition at line 2455 of file guilib.cpp.

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