OSB_GUI::Asn1Browser Class Reference

Inheritance diagram for OSB_GUI::Asn1Browser:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::Asn1Browser:

Collaboration graph
[legend]
List of all members.

Detailed Description

Widget to browse ASN.1 records.

Definition at line 79 of file asn1browser.h.

Public Types

Public Slots

Public Member Functions

Private Member Functions

Private Attributes


Member Enumeration Documentation

enum OSB_GUI::Asn1Browser::MenuCmd

Id's of menu commands.

Enumerator:
cmdOpen  Open an ASN.1 file.
cmdConfig  Set browser configuration.
cmdCreDes  Create ASN.1 tag definitions.

Definition at line 84 of file asn1browser.h.


Constructor & Destructor Documentation

OSB_GUI::Asn1Browser::Asn1Browser ( AdminType  type,
QWidget parent,
const char *  name = 0,
WFlags  flags = 0 
)

Constructor with type of administraction widget and Qt arguments.

OSB_GUI::Asn1Browser::~Asn1Browser (  ) 

Destructor: delete allocated resources.

OSB_GUI::Asn1Browser::Asn1Browser ( const Asn1Browser  )  [private]

Prevent copying: not implemented.


Member Function Documentation

void OSB_GUI::Asn1Browser::clearMenuAccels (  )  [virtual]

Clear any accelerators of the administration widget's popup menu.

This function is needed because any accelerators of the adminstratiion widget's menu are active even if the popup menu is not in the menu bar of the main window.

Implements OSB_GUI::AdminWidget.

bool OSB_GUI::Asn1Browser::cntRecords (  )  [private]

Count the ASN.1 records in the input file.

bool OSB_GUI::Asn1Browser::getAsn1Defs ( OSB_LIB::Asn1InputInfo dest,
bool  allRecords 
) [private]

Get ASN.1 tag definitions.

bool OSB_GUI::Asn1Browser::getConfig ( bool  showRecord  )  [slot]

Get browsing options.

Parameters:
showRecord Flag to show the current record.

bool OSB_GUI::Asn1Browser::getRecord ( size_t  recNum,
OSB_LIB::Asn1Info dest 
) [private]

Get an ASN.1 record.

Parameters:
recNum Record number to retrieve (1 for the first record).
dest Info buffer to populate.
Returns:
true if the record was found, else false.

void OSB_GUI::Asn1Browser::languageChange (  )  [virtual, slot]

Process a language change.

Implements OSB_GUI::AdminWidget.

QPopupMenu* OSB_GUI::Asn1Browser::menu (  )  [virtual]

The popup menu of the administration widget.

If the administration window does not use a menu the function returns 0.
Else the admin widget should install the accelerators for the popup menu.

See also:
clearMenuAccels()

Implements OSB_GUI::AdminWidget.

void OSB_GUI::Asn1Browser::menuEvent ( int  cmd  )  [slot]

Handle commands from menu_.

std::string OSB_GUI::Asn1Browser::menuTitle (  )  const [virtual]

Title of the administration wiget's menu.

The returned string is empty if does not support a menu, i.e., menu() returns 0.

Implements OSB_GUI::AdminWidget.

void OSB_GUI::Asn1Browser::mkAsn1Des (  ) 

Create ASN.1 definitions from currenct record.

void OSB_GUI::Asn1Browser::open (  )  [slot]

Open an ASN.1 file.

OSB_LIB::Guard OSB_GUI::Asn1Browser::openFile (  )  [private]

Open the input file.

Returns:
A guard that closes the input file.
Its member isLoaded() returns false if the file could not be opened.

Asn1Browser& OSB_GUI::Asn1Browser::operator= ( const Asn1Browser  )  [private]

Prevent assignment: not implemented.

bool OSB_GUI::Asn1Browser::saveAsn1Defs ( const OSB_LIB::Asn1InputInfo dest  )  [private]

Save ASN.1 tag definitions.

void OSB_GUI::Asn1Browser::setNesting ( int  level  )  [slot]

Nesting level was changed.

void OSB_GUI::Asn1Browser::showCurRecord (  )  [slot]

Show record number as set in sbRecNum_.


Member Data Documentation

OSB_LIB::Asn1InputInfo* OSB_GUI::Asn1Browser::asn1Info_ [private]

ASN.1 tag descriptions in use.

Definition at line 184 of file asn1browser.h.

Asn1BrowserCfg* OSB_GUI::Asn1Browser::config_ [private]

Browser configuration.

Definition at line 186 of file asn1browser.h.

size_t OSB_GUI::Asn1Browser::filePos_ [private]

Position of current ASN.1 record in input file.

Definition at line 181 of file asn1browser.h.

OSB_LIB::CdrInputFile* OSB_GUI::Asn1Browser::input_ [private]

The CDR input file.

Definition at line 190 of file asn1browser.h.

std::string OSB_GUI::Asn1Browser::inputPath_ [private]

Full path of CDR input file.

Definition at line 177 of file asn1browser.h.

QVBoxLayout* OSB_GUI::Asn1Browser::layout_ [private]

Layout of the whole widget.

Definition at line 213 of file asn1browser.h.

QFrame* OSB_GUI::Asn1Browser::linePb_ [private]

Line above controls.

Definition at line 200 of file asn1browser.h.

QHBoxLayout* OSB_GUI::Asn1Browser::loPb_ [private]

Layout for the push buttons.

Definition at line 215 of file asn1browser.h.

LvAsn1* OSB_GUI::Asn1Browser::lvAsn1_ [private]

ASN.1 list view.

Definition at line 194 of file asn1browser.h.

QPopupMenu* OSB_GUI::Asn1Browser::menu_ [private]

The console menu.

Definition at line 197 of file asn1browser.h.

size_t OSB_GUI::Asn1Browser::numRecs_ [private]

Number of records in the current file.

Definition at line 179 of file asn1browser.h.

OSB_LIB::Asn1Reader* OSB_GUI::Asn1Browser::reader_ [private]

The used ASN.1 reader.

Definition at line 188 of file asn1browser.h.

QSpinBox* OSB_GUI::Asn1Browser::sbNesting_ [private]

Spinbox to set the nesting level.

Definition at line 210 of file asn1browser.h.

QSpinBox* OSB_GUI::Asn1Browser::sbRecNum_ [private]

Spin box to select the record.

Definition at line 202 of file asn1browser.h.

QSpacerItem* OSB_GUI::Asn1Browser::spPb_ [private]

Spacer right of record number.

Definition at line 206 of file asn1browser.h.

QLabel* OSB_GUI::Asn1Browser::tlInfo_ [private]

Number of records in current file and current offset.

Definition at line 204 of file asn1browser.h.

QLabel* OSB_GUI::Asn1Browser::tlNesting_ [private]

Label for nesting level.

Definition at line 208 of file asn1browser.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:19:02 2006 for OSB Library by  doxygen 1.4.7