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

#include <ldb_tree_wid.hpp>

Inheritance diagram for hds::LdbTreeWid:
hds::DbTreeWid

Public Slots

virtual void refreshTree ()
 
- Public Slots inherited from hds::DbTreeWid
virtual void refreshTree ()
 
virtual void expandTree ()
 
virtual void collapseTree ()
 

Signals

void openSeismicRequested (const QString &project_str, const QString &name_str)
 
void openDbtRequested (const QString &project_str, const QString &name_str)
 
void openJobRequested (const QString &project_str, const QString &fname_str)
 
- Signals inherited from hds::DbTreeWid
void itemChanged (const int type, const QString &project, const QString &name)
 
void errorOccurred (const int &ec)
 

Public Member Functions

 LdbTreeWid (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~LdbTreeWid ()
 
int init ()
 
- 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 openObject (QTreeWidgetItem *pitem)
 
virtual void removeObject (QTreeWidgetItem *pitem)
 
virtual void longJobStateInit ()
 
virtual void changeCurrentItem (QTreeWidgetItem *cur_item, QTreeWidgetItem *prev_item)
 
virtual void expandItem (QTreeWidgetItem *item)
 
virtual void setProjectSizeStr (const QString &project_str, const QString &size_str, const QString &descr_str)
 
virtual void setSeismicsList (const QString &project_str, const QStringList &seis_list, const QStringList &size_list)
 
virtual void setDbtList (const QString &project_str, const QString &tt_str, const impl::LdbDbtList &list)
 
virtual void setJobs (const QString &project_str, const impl::LdbJobsMap &jobs_map)
 
- 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

int init_projects ()
 
int init_dbt_folders (const QString &project_str, 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)
 

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 }
 

Detailed Description

UNIVERS local data base tree widget.

Constructor & Destructor Documentation

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

Default widget constructor.

virtual hds::LdbTreeWid::~LdbTreeWid ( )
virtual

Destroy widget.

Member Function Documentation

virtual void hds::LdbTreeWid::changeCurrentItem ( QTreeWidgetItem *  cur_item,
QTreeWidgetItem *  prev_item 
)
protectedvirtualslot
Select item. 
Parameters
cur_itemCurrent selected item.
prev_itemPrevious selected item.
virtual void hds::LdbTreeWid::expandItem ( QTreeWidgetItem *  item)
protectedvirtualslot

Expand item.

int hds::LdbTreeWid::init ( )
Initialize widget from LDB database. 
Returns
OK if all good ErrCode otherwise.
int hds::LdbTreeWid::init_dbt_folders ( const QString &  project_str,
QTreeWidgetItem *  parent_item 
)
protected
Initialize list of folders for tables of different types 

inside provided project. Update resulted list of items.

Returns
OK if all good, error code otherwise.
int hds::LdbTreeWid::init_projects ( )
protected
Initialize list of projects. 
Returns
OK if all good, error code otherwise.
virtual void hds::LdbTreeWid::longJobStateInit ( )
protectedvirtualslot

Initialize long job state. Just overrides cursor.

void hds::LdbTreeWid::openDbtRequested ( const QString &  project_str,
const QString &  name_str 
)
signal
Emits when DB table of provided project and provided 

name requested to be opened.

void hds::LdbTreeWid::openJobRequested ( const QString &  project_str,
const QString &  fname_str 
)
signal
Emits when job of provided project and provided 

file name requested to be opened.

virtual void hds::LdbTreeWid::openObject ( QTreeWidgetItem *  pitem)
protectedvirtualslot

Open selected database object.

void hds::LdbTreeWid::openSeismicRequested ( const QString &  project_str,
const QString &  name_str 
)
signal
Emits when seismic of provided project and provided 

name requested to be opened.

virtual void hds::LdbTreeWid::refreshTree ( )
virtualslot

Refresh current tree.

virtual void hds::LdbTreeWid::removeObject ( QTreeWidgetItem *  pitem)
protectedvirtualslot

Remove selected database object.

virtual void hds::LdbTreeWid::setDbtList ( const QString &  project_str,
const QString &  tt_str,
const impl::LdbDbtList &  list 
)
protectedvirtualslot

Set list of db tables for project with provided name.

virtual void hds::LdbTreeWid::setJobs ( const QString &  project_str,
const impl::LdbJobsMap &  jobs_map 
)
protectedvirtualslot

Set jobs.

virtual void hds::LdbTreeWid::setProjectSizeStr ( const QString &  project_str,
const QString &  size_str,
const QString &  descr_str 
)
protectedvirtualslot

Set size of project with provided name to provided size string.

virtual void hds::LdbTreeWid::setSeismicsList ( const QString &  project_str,
const QStringList &  seis_list,
const QStringList &  size_list 
)
protectedvirtualslot

Set list of seismics for project with provided name.


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