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::SeismicSelDlg Class Reference

#include <seismic_sel_dlg.hpp>

Inheritance diagram for hds::SeismicSelDlg:
hds::SelectionDialog hds::Dialog

Public Member Functions

 SeismicSelDlg (QWidget *parent=0, Qt::WindowFlags f=0)
 
 SeismicSelDlg (const QString &project, QWidget *parent=0, Qt::WindowFlags f=0)
 
 SeismicSelDlg (const QString &project, bool new_seismic_flag, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~SeismicSelDlg ()
 
int operator() (const QString &prj)
 
virtual void update ()
 
QString current () const
 
void setCurrent (const QString &name)
 
QString project () const
 
void setProject (const QString &project)
 
void setNewSeismicSelectionMode (const bool flag)
 
- 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 (QListWidgetItem *item)
 

Protected Member Functions

void setup_gui (Qt::WindowFlags f)
 
ListSelectorWidselWid ()
 
const ListSelectorWidselWid () 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

ListSelectorWidmp_sel_wid
 
QString m_project
 
bool m_new_seismic_flag
 

Additional Inherited Members

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

Detailed Description

Seismic file selection dialog.

Constructor & Destructor Documentation

hds::SeismicSelDlg::SeismicSelDlg ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
Default constructor of the dialog. Null stirng project by default. 

New seismic selection is disabled.

hds::SeismicSelDlg::SeismicSelDlg ( const QString &  project,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
Constructor of the dialog with project provided. 

New seismic selection is disabled.

hds::SeismicSelDlg::SeismicSelDlg ( const QString &  project,
bool  new_seismic_flag,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor of the dialog with project provided.

Parameters
new_seismic_flagNew seismic selection flag. If true => new seismic can be selected.
virtual hds::SeismicSelDlg::~SeismicSelDlg ( )
virtual

Destructor.

Member Function Documentation

QString hds::SeismicSelDlg::current ( ) const

Current selected seismic, null string if not selected.

void hds::SeismicSelDlg::itemDoubleClickedSlot ( QListWidgetItem *  item)
protectedslot

Double click on list item.

int hds::SeismicSelDlg::operator() ( const QString &  prj)
Update list of seiemics for new project provided and  

execute dialog using QDialog::exec().

QString hds::SeismicSelDlg::project ( ) const

Project for seismic taken from.

ListSelectorWid& hds::SeismicSelDlg::selWid ( )
inlineprotected

Access to list selection widget.

const ListSelectorWid& hds::SeismicSelDlg::selWid ( ) const
inlineprotected

Access to list selection widget.

void hds::SeismicSelDlg::setCurrent ( const QString &  name)
Set seismic file with provided name as current one. 

Do nothing if no such seismic file.

void hds::SeismicSelDlg::setNewSeismicSelectionMode ( const bool  flag)

Set new seismic selection flag.

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

Set project. Rebuild list of seismic.

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

Setup the gui.

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

project has changed and when probably data has changed in the project.

Reimplemented from hds::SelectionDialog.

Member Data Documentation

QString hds::SeismicSelDlg::m_project
protected

New seismic selection flag.

ListSelectorWid* hds::SeismicSelDlg::mp_sel_wid
protected

< List selector widget widget. Current project.


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