UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
hds::DbtSelDlg Class Reference

#include <dbt_sel_dlg.hpp>

Inheritance diagram for hds::DbtSelDlg:
hds::SelectionDialog hds::Dialog

Public Member Functions

 DbtSelDlg (QWidget *parent=0, Qt::WindowFlags f=0)
 
 DbtSelDlg (const QString &project, dbNameStruct &dbfrom, bool new_db_item=false, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DbtSelDlg ()
 
int operator() (const QString &prj)
 
int operator() (const dbNameStruct &dbns)
 
int operator() (const QString &prj, const dbNameStruct &dbns)
 
virtual void update ()
 
bool current (dbItem &dbi) const
 
void setCurrent (const dbItem &dbi)
 
QString project () const
 
void setProject (const QString &project)
 
const dbNameStructgetNameStruct () const
 
void setNameStruct (const dbNameStruct &dbns)
 
bool newDbItem () const
 
void newDbItem (bool new_db_item)
 
- Public Member Functions inherited from hds::SelectionDialog
 SelectionDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~SelectionDialog ()
 
int operator() ()
 
- Public Member Functions inherited from hds::Dialog
 Dialog (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~Dialog ()
 
virtual void show ()
 
virtual void showModal ()
 
virtual void hide ()
 
virtual int exec ()
 
void setButtonsMask (int mask)
 
int buttonsMask () const
 
QWidget & mainWidget ()
 

Protected Slots

void itemDoubleClickedSlot (QTreeWidgetItem *item, int column)
 

Protected Member Functions

void setup_gui (Qt::WindowFlags f)
 
TreeSelectorWidselWid ()
 
const TreeSelectorWidselWid () const
 
- Protected Member Functions inherited from hds::SelectionDialog
QGridLayout & mainGridLayout ()
 
- Protected Member Functions inherited from hds::Dialog
virtual void buttonClicked (const hds::Dialog::Button &button_type)
 

Protected Attributes

TreeSelectorWidmp_sel_wid
 
QString m_project
 
bool m_new_db_item
 
dbNameStruct m_dbns
 

Additional Inherited Members

- Public Types inherited from hds::Dialog
enum  Button { OK_BUTTON = 1, APPLY_BUTTON = 2, CANCEL_BUTTON = 4 }
 

Detailed Description

Data base table selection dialog.

Constructor & Destructor Documentation

hds::DbtSelDlg::DbtSelDlg ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor of the dialog.

hds::DbtSelDlg::DbtSelDlg ( const QString &  project,
dbNameStruct dbfrom,
bool  new_db_item = false,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Construct dialog with project and DB name struct provided.

Parameters
new_db_itemtrue - with new DB item.
virtual hds::DbtSelDlg::~DbtSelDlg ( )
virtual

Destructor.

Member Function Documentation

bool hds::DbtSelDlg::current ( dbItem dbi) const

Current selected item, 0x0 if not selected.

const dbNameStruct& hds::DbtSelDlg::getNameStruct ( ) const
inline

Access to the current DB name struct.

void hds::DbtSelDlg::itemDoubleClickedSlot ( QTreeWidgetItem *  item,
int  column 
)
protectedslot

Double click on tree item.

bool hds::DbtSelDlg::newDbItem ( ) const
inline

Show new item flag.

void hds::DbtSelDlg::newDbItem ( bool  new_db_item)
inline

Set show new item flag.

int hds::DbtSelDlg::operator() ( const QString &  prj)
Update list of DB tables for new project provided and  

execute dialog using QDialog::exec().

int hds::DbtSelDlg::operator() ( const dbNameStruct dbns)
Update list of DB tables for new DB name struct provided and 

execute dialog using QDialog::exec().

int hds::DbtSelDlg::operator() ( const QString &  prj,
const dbNameStruct dbns 
)
Update list of DB tables for new project and DB name struct 

provided and execute dialog using QDialog::exec().

QString hds::DbtSelDlg::project ( ) const
inline

Get current project.

TreeSelectorWid& hds::DbtSelDlg::selWid ( )
inlineprotected

Access to tree selection widget.

const TreeSelectorWid& hds::DbtSelDlg::selWid ( ) const
inlineprotected

Access to tree selection widget.

void hds::DbtSelDlg::setCurrent ( const dbItem dbi)
Set item with provided name as current item. 

Do nothing if no such project.

void hds::DbtSelDlg::setNameStruct ( const dbNameStruct dbns)

Set DB name struct.

void hds::DbtSelDlg::setProject ( const QString &  project)

Set current project.

void hds::DbtSelDlg::setup_gui ( Qt::WindowFlags  f)
protected

Setup the gui.

virtual void hds::DbtSelDlg::update ( )
virtual
Update list of seismics. Should be used both after

project or DB name struct has changed and when probably data has changed in the project.

Reimplemented from hds::SelectionDialog.

Member Data Documentation

bool hds::DbtSelDlg::m_new_db_item
protected

Current DB name struct.

QString hds::DbtSelDlg::m_project
protected

Create new DB item or not.

TreeSelectorWid* hds::DbtSelDlg::mp_sel_wid
protected

< List selector widget widget. Current project.


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