UNIVERS
15.3
UNIVERS base processing software API
|
#include <hds_db_tree_wid.hpp>
Public Slots | |
virtual void | refreshTree () |
Public Slots inherited from hds::DbTreeWid | |
virtual void | refreshTree () |
virtual void | expandTree () |
virtual void | collapseTree () |
Public Member Functions | |
HdbTreeWid (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual | ~HdbTreeWid () |
hds::db::ErrCode | init (const hds::db::Factory *pdbf) |
Public Member Functions inherited from hds::DbTreeWid | |
DbTreeWid (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual | ~DbTreeWid () |
void | selectProject (const QString &project_str) |
void | setRemoveObjectsMode (const bool mode) |
void | setOpenObjectsMode (const bool mode) |
Protected Slots | |
virtual void | removeObject (QTreeWidgetItem *pitem) |
virtual void | changeCurrentItem (QTreeWidgetItem *cur_item, QTreeWidgetItem *prev_item) |
Protected Slots inherited from hds::DbTreeWid | |
virtual void | showContextMenu (QPoint pos) |
virtual void | openObject (QTreeWidgetItem *) |
virtual void | removeObject (QTreeWidgetItem *) |
virtual void | changeCurrentItem (QTreeWidgetItem *, QTreeWidgetItem *) |
Protected Member Functions | |
hds::db::ErrCode | init_projects (const hds::db::Factory &dbf, QList< QTreeWidgetItem * > &items) |
hds::db::ErrCode | init_seismic (hds::db::Seismic *pseis, QTreeWidgetItem *parent_item) |
Protected Member Functions inherited from hds::DbTreeWid | |
QTreeWidget * | ptw () |
const QTreeWidget * | ptw () const |
const QPoint & | contextMenuPos () const |
virtual QTreeWidgetItem * | newTreeWidgetItem (const ItemType type, const QString &name, QTreeWidgetItem *parent=NULL) const |
QTreeWidgetItem * | projectItem (QTreeWidgetItem *item) const |
QTreeWidgetItem * | projectItem (const QString &project_str) const |
QString | projectNameStr (QTreeWidgetItem *item) const |
int | itemOptions (const QTreeWidgetItem *item) const |
void | setItemOptions (QTreeWidgetItem *item, const int &mask) const |
virtual bool | event (QEvent *ev) |
Protected Attributes | |
const hds::db::Factory * | mp_dbf |
Additional Inherited Members | |
Public Types inherited from hds::DbTreeWid | |
enum | ItemType { IT_NONE = QTreeWidgetItem::UserType, IT_PROJECT, IT_FOLDER, IT_SEISMIC, IT_TABLE } |
enum | ItemOptions { IOM_OPENABLE = 1, IOM_REMOVABLE = 2, IOM_SELECTABLE = 4 } |
Signals inherited from hds::DbTreeWid | |
void | itemChanged (const int type, const QString &project, const QString &name) |
void | errorOccurred (const int &ec) |
Data base tree widget.
hds::db::HdbTreeWid::HdbTreeWid | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Default widget constructor.
|
virtual |
Destroy widget.
|
protectedvirtualslot |
Select item.
cur_item | Current selected item. |
prev_item | Previous selected item. |
hds::db::ErrCode hds::db::HdbTreeWid::init | ( | const hds::db::Factory * | pdbf | ) |
Initialize widget with provided database objects factory.
pdbf | Database factory. Tree is cleaned if pdbf is NULL. The factory not copied, just store a pointer. |
|
protected |
Initialize list of projects updating resulted items.
|
protected |
Initialize list of seismic inside provided project.
Update resulted list of items.
|
virtualslot |
Refresh current tree.
|
protectedvirtualslot |
Remove selected database object.