Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

OmgLayerSelector Class Reference
[Gui]

#include <omglayerselector.h>

Inheritance diagram for OmgLayerSelector:

Inheritance graph
[legend]
Collaboration diagram for OmgLayerSelector:

Collaboration graph
[legend]
List of all members.

Detailed Description

A dialog to let the user select one or more gdal rasters from the file system.

Author:
Tim Sutton

Definition at line 33 of file omglayerselector.h.

Public Slots

void on_toolDirectorySelector_clicked ()
void on_toolRefresh_clicked ()
void accept ()
void reject ()
QStringList getSelectedLayers ()
QString getBaseDir ()
void setSelectionMode (QAbstractItemView::SelectionMode theMode)
void refresh ()

Public Member Functions

 OmgLayerSelector (QString theBaseDir, QWidget *parent=0, Qt::WFlags fl=0)
 ~OmgLayerSelector ()

Private Member Functions

void resizeEvent (QResizeEvent *event)
void updateFileList ()
void buildTree (const QString &dirname, QTreeWidgetItem *theListViewItem, bool theForceScanFlag=false)
void parseLayerGroup (const QDomElement &theElement, QTreeWidgetItem *theParentItem)
void showInfo ()
QTreeWidgetItem * createItem (const QDomElement &theElement, QTreeWidgetItem *thepParentItem)

Private Attributes

QTreeWidgetItem * mpListParent
QString mBaseDirName
QStringList mSelectedLayersList
QIcon mFolderIcon
QIcon mProjectionOkIcon
QIcon mProjectionErrorIcon


Constructor & Destructor Documentation

OmgLayerSelector::OmgLayerSelector QString  theBaseDir,
QWidget parent = 0,
Qt::WFlags  fl = 0
 

Definition at line 46 of file omglayerselector.cpp.

References buildTree(), mBaseDirName, mFolderIcon, mpListParent, mProjectionErrorIcon, mProjectionOkIcon, on_toolDirectorySelector_clicked(), and showInfo().

Here is the call graph for this function:

OmgLayerSelector::~OmgLayerSelector  ) 
 

Definition at line 108 of file omglayerselector.cpp.


Member Function Documentation

void OmgLayerSelector::accept  )  [slot]
 

Definition at line 166 of file omglayerselector.cpp.

References updateFileList().

void OmgLayerSelector::buildTree const QString &  dirname,
QTreeWidgetItem *  theListViewItem,
bool  theForceScanFlag = false
[private]
 

Definition at line 196 of file omglayerselector.cpp.

References Omgui::createTextFile(), Omgui::fileSelectorCachePath(), OmgModellerPluginInterface::getLayers(), OmgModellerPluginInterface::getMessenger(), OmgModellerPluginRegistry::instance(), parseLayerGroup(), and refresh().

Referenced by OmgLayerSelector(), on_toolDirectorySelector_clicked(), and on_toolRefresh_clicked().

Here is the call graph for this function:

QTreeWidgetItem * OmgLayerSelector::createItem const QDomElement &  theElement,
QTreeWidgetItem *  thepParentItem
[private]
 

Definition at line 327 of file omglayerselector.cpp.

Referenced by parseLayerGroup().

QString OmgLayerSelector::getBaseDir  )  [slot]
 

Definition at line 186 of file omglayerselector.cpp.

References mBaseDirName.

Referenced by OmgGdalRasterContour::on_pbnSelectFile_clicked(), OmgGdalConverter::on_pbnSelectFile_clicked(), OmgLayerSetManager::on_toolAddLayers_clicked(), OmgExperimentDesigner::on_toolFormatLayer_clicked(), and OmgLayerSetManager::on_toolNewMaskLayer_clicked().

QStringList OmgLayerSelector::getSelectedLayers  )  [slot]
 

Definition at line 181 of file omglayerselector.cpp.

References mSelectedLayersList.

Referenced by OmgGdalRasterContour::on_pbnSelectFile_clicked(), OmgGdalConverter::on_pbnSelectFile_clicked(), OmgLayerSetManager::on_toolAddLayers_clicked(), OmgExperimentDesigner::on_toolFormatLayer_clicked(), and OmgLayerSetManager::on_toolNewMaskLayer_clicked().

void OmgLayerSelector::on_toolDirectorySelector_clicked  )  [slot]
 

Definition at line 117 of file omglayerselector.cpp.

References buildTree(), mBaseDirName, and mpListParent.

Referenced by OmgLayerSelector().

void OmgLayerSelector::on_toolRefresh_clicked  )  [slot]
 

Definition at line 141 of file omglayerselector.cpp.

References buildTree(), mBaseDirName, and mpListParent.

void OmgLayerSelector::parseLayerGroup const QDomElement &  theElement,
QTreeWidgetItem *  theParentItem
[private]
 

Definition at line 279 of file omglayerselector.cpp.

References createItem(), mFolderIcon, mProjectionErrorIcon, and mProjectionOkIcon.

Referenced by buildTree().

Here is the call graph for this function:

void OmgLayerSelector::refresh  )  [slot]
 

Let plugins scanning directories send regular progress updates

Definition at line 339 of file omglayerselector.cpp.

Referenced by buildTree().

void OmgLayerSelector::reject  )  [slot]
 

Definition at line 174 of file omglayerselector.cpp.

References mSelectedLayersList.

void OmgLayerSelector::resizeEvent QResizeEvent *  event  )  [private]
 

Definition at line 113 of file omglayerselector.cpp.

void OmgLayerSelector::setSelectionMode QAbstractItemView::SelectionMode  theMode  )  [slot]
 

Set the select mode for the layer selector. Typically you will want to use either QAbstractItemView::ExtendedSelection or QAbstractItemView::SingleSelection

Parameters:
theBehavior the desired select behaviour as described above.

Definition at line 191 of file omglayerselector.cpp.

Referenced by OmgExperimentDesigner::on_toolFormatLayer_clicked(), and OmgLayerSetManager::on_toolNewMaskLayer_clicked().

void OmgLayerSelector::showInfo  )  [private]
 

Definition at line 344 of file omglayerselector.cpp.

References Omgui::defaultStyleSheet().

Referenced by OmgLayerSelector().

Here is the call graph for this function:

void OmgLayerSelector::updateFileList  )  [private]
 

Definition at line 152 of file omglayerselector.cpp.

References mSelectedLayersList.

Referenced by accept().


Member Data Documentation

QString OmgLayerSelector::mBaseDirName [private]
 

Definition at line 59 of file omglayerselector.h.

Referenced by getBaseDir(), OmgLayerSelector(), on_toolDirectorySelector_clicked(), and on_toolRefresh_clicked().

QIcon OmgLayerSelector::mFolderIcon [private]
 

Definition at line 66 of file omglayerselector.h.

Referenced by OmgLayerSelector(), and parseLayerGroup().

QTreeWidgetItem* OmgLayerSelector::mpListParent [private]
 

Definition at line 58 of file omglayerselector.h.

Referenced by OmgLayerSelector(), on_toolDirectorySelector_clicked(), and on_toolRefresh_clicked().

QIcon OmgLayerSelector::mProjectionErrorIcon [private]
 

Definition at line 68 of file omglayerselector.h.

Referenced by OmgLayerSelector(), and parseLayerGroup().

QIcon OmgLayerSelector::mProjectionOkIcon [private]
 

Definition at line 67 of file omglayerselector.h.

Referenced by OmgLayerSelector(), and parseLayerGroup().

QStringList OmgLayerSelector::mSelectedLayersList [private]
 

Definition at line 60 of file omglayerselector.h.

Referenced by getSelectedLayers(), reject(), and updateFileList().


The documentation for this class was generated from the following files:
Generated on Mon Apr 28 15:13:17 2008 for openModellerDesktop by  doxygen 1.4.1-20050210