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

#include <hds_db_tree_wid.hpp>

Inheritance diagram for hds::db::HdbTreeWid:
hds::DbTreeWid

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::Factorymp_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)
 

Detailed Description

Data base tree widget.

Constructor & Destructor Documentation

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

Default widget constructor.

virtual hds::db::HdbTreeWid::~HdbTreeWid ( )
virtual

Destroy widget.

Member Function Documentation

virtual void hds::db::HdbTreeWid::changeCurrentItem ( QTreeWidgetItem *  cur_item,
QTreeWidgetItem *  prev_item 
)
protectedvirtualslot
Select item. 
Parameters
cur_itemCurrent selected item.
prev_itemPrevious selected item.
hds::db::ErrCode hds::db::HdbTreeWid::init ( const hds::db::Factory pdbf)
Initialize widget with provided database objects factory. 
Parameters
pdbfDatabase factory. Tree is cleaned if pdbf is NULL. The factory not copied, just store a pointer.
Returns
EC_NO_ERROR if all good, error code otherwise.
hds::db::ErrCode hds::db::HdbTreeWid::init_projects ( const hds::db::Factory dbf,
QList< QTreeWidgetItem * > &  items 
)
protected
Initialize list of projects updating resulted items. 
Returns
EC_NO_ERROR if all good, error code otherwise.
hds::db::ErrCode hds::db::HdbTreeWid::init_seismic ( hds::db::Seismic pseis,
QTreeWidgetItem *  parent_item 
)
protected
Initialize list of seismic inside provided project.

Update resulted list of items.

Returns
EC_NO_ERROR if all good, error code otherwise. Current database objects factory ptr.
virtual void hds::db::HdbTreeWid::refreshTree ( )
virtualslot

Refresh current tree.

virtual void hds::db::HdbTreeWid::removeObject ( QTreeWidgetItem *  pitem)
protectedvirtualslot

Remove selected database object.


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