A dialog used to select a specific symbol.
More...
#include <SymbolSelectorDialog.h>
|
static Symbol * | getSymbol (QWidget *parent, const QString &title="") |
| Pops up a modal symbol selector dialog with the given window title, lets the user select a symbol, and returns that symbol. More...
|
|
A dialog used to select a specific symbol.
Definition at line 58 of file SymbolSelectorDialog.h.
Auxiliary internal enumeration to control the tree nodes.
Enumerator |
---|
LIBRARY |
Library root node.
|
SYMBOL |
Symbol node.
|
Definition at line 69 of file SymbolSelectorDialog.h.
te::qt::widgets::SymbolSelectorDialog::SymbolSelectorDialog |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
Constructs a symbol selector dialog which is a child of parent, with widget flags set to f.
te::qt::widgets::SymbolSelectorDialog::~SymbolSelectorDialog |
( |
| ) |
|
void te::qt::widgets::SymbolSelectorDialog::filter |
( |
const QList< QTreeWidgetItem * > & |
items | ) |
|
|
private |
Auxiliary internal method to filter the symbols.
QString te::qt::widgets::SymbolSelectorDialog::formatSymbolInfo |
( |
const SymbolInfo & |
info | ) |
const |
|
private |
Auxiliary internal method to format a symbol info to be used on tool tips.
Symbol* te::qt::widgets::SymbolSelectorDialog::getSelectedSymbol |
( |
| ) |
const |
|
private |
Auxiliary internal method that returns the selected symbol.
static Symbol* te::qt::widgets::SymbolSelectorDialog::getSymbol |
( |
QWidget * |
parent, |
|
|
const QString & |
title = "" |
|
) |
| |
|
static |
Pops up a modal symbol selector dialog with the given window title, lets the user select a symbol, and returns that symbol.
- Parameters
-
parent | Dialog parent. |
title | Dialog title. |
- Note
- The caller will take the ownership of the returned symbol.
-
It returns a NULL pointr if the user cancels the dialog.
-
It return a NULL pointer if there is not a selected symbol.
Symbol* te::qt::widgets::SymbolSelectorDialog::getSymbol |
( |
| ) |
const |
Gets the selected symbol.
- Returns
- The selected fill element.
- Note
- The caller will take the ownership of the returned symbol.
-
It return a NULL pointer if there is not a selected symbol.
Symbol* te::qt::widgets::SymbolSelectorDialog::getSymbolFromItem |
( |
QTreeWidgetItem * |
item | ) |
const |
|
private |
Auxiliary internal method that returns the symbol given a list widget item.
void te::qt::widgets::SymbolSelectorDialog::initialize |
( |
| ) |
|
|
private |
void te::qt::widgets::SymbolSelectorDialog::onCurrentItemChanged |
( |
QTreeWidgetItem * |
current, |
|
|
QTreeWidgetItem * |
previous |
|
) |
| |
|
privateslot |
void te::qt::widgets::SymbolSelectorDialog::onLoadSymbolLibraryPushButtonPressed |
( |
| ) |
|
|
privateslot |
void te::qt::widgets::SymbolSelectorDialog::onSearchLineEditTextChanged |
( |
const QString & |
text | ) |
|
|
privateslot |
void te::qt::widgets::SymbolSelectorDialog::onShowSymbolInfoPushButtonPressed |
( |
| ) |
|
|
privateslot |
std::auto_ptr<Ui::SymbolSelectorDialogForm> te::qt::widgets::SymbolSelectorDialog::m_ui |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/se/SymbolSelectorDialog.h