![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <dbt_sel_dlg.hpp>
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 dbNameStruct & | getNameStruct () 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) |
| TreeSelectorWid & | selWid () |
| const TreeSelectorWid & | selWid () 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 | |
| TreeSelectorWid * | mp_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 } |
Data base table selection dialog.
| 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.
| new_db_item | true - with new DB item. |
|
virtual |
Destructor.
| bool hds::DbtSelDlg::current | ( | dbItem & | dbi | ) | const |
Current selected item, 0x0 if not selected.
|
inline |
Access to the current DB name struct.
|
protectedslot |
Double click on tree item.
|
inline |
Show new item flag.
|
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().
|
inline |
Get current project.
|
inlineprotected |
Access to tree selection widget.
|
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.
|
protected |
Setup the gui.
|
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.
|
protected |
Current DB name struct.
|
protected |
Create new DB item or not.
|
protected |
< List selector widget widget. Current project.
1.8.5