A dialog used to select a specific symbol. More...
#include <SymbolSelectorDialog.h>
  
 Public Member Functions | |
| Symbol * | getSymbol () const | 
| Gets the selected symbol.  More... | |
Initializer Methods  | |
Methods related to instantiation and destruction.  | |
| 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.  More... | |
| ~SymbolSelectorDialog () | |
| Destructor.  More... | |
Static Public Member Functions | |
| 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... | |
Private Types | |
| enum | NodeType { LIBRARY = 0, SYMBOL = 1 } | 
| Auxiliary internal enumeration to control the tree nodes.  More... | |
Private Slots | |
| void | onCurrentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) | 
| void | onLoadSymbolLibraryPushButtonPressed () | 
| void | onSearchLineEditTextChanged (const QString &text) | 
| void | onShowSymbolInfoPushButtonPressed () | 
Private Member Functions | |
| void | filter (const QList< QTreeWidgetItem * > &items) | 
| Auxiliary internal method to filter the symbols.  More... | |
| QString | formatSymbolInfo (const SymbolInfo &info) const | 
| Auxiliary internal method to format a symbol info to be used on tool tips.  More... | |
| Symbol * | getSelectedSymbol () const | 
| Auxiliary internal method that returns the selected symbol.  More... | |
| Symbol * | getSymbolFromItem (QTreeWidgetItem *item) const | 
| Auxiliary internal method that returns the symbol given a list widget item.  More... | |
| void | initialize () | 
| Initialize the dialog.  More... | |
Private Attributes | |
| SymbolPreviewWidget * | m_preview | 
| Preview Widget used to visualize the symbol.  More... | |
| std::auto_ptr < Ui::SymbolSelectorDialogForm >  | m_ui | 
| Dialog form.  More... | |
A dialog used to select a specific symbol.
Definition at line 58 of file SymbolSelectorDialog.h.
      
  | 
  private | 
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.
Definition at line 45 of file SymbolSelectorDialog.cpp.
References initialize(), m_preview, m_ui, onCurrentItemChanged(), onLoadSymbolLibraryPushButtonPressed(), onSearchLineEditTextChanged(), and onShowSymbolInfoPushButtonPressed().
| te::qt::widgets::SymbolSelectorDialog::~SymbolSelectorDialog | ( | ) | 
Destructor.
Definition at line 69 of file SymbolSelectorDialog.cpp.
      
  | 
  private | 
Auxiliary internal method to filter the symbols.
Definition at line 190 of file SymbolSelectorDialog.cpp.
      
  | 
  private | 
Auxiliary internal method to format a symbol info to be used on tool tips.
Definition at line 245 of file SymbolSelectorDialog.cpp.
References te::qt::widgets::SymbolInfo::m_author, te::qt::widgets::SymbolInfo::m_description, te::qt::widgets::SymbolInfo::m_name, and te::qt::widgets::SymbolInfo::m_tags.
      
  | 
  private | 
Auxiliary internal method that returns the selected symbol.
Definition at line 208 of file SymbolSelectorDialog.cpp.
      
  | 
  static | 
Pops up a modal symbol selector dialog with the given window title, lets the user select a symbol, and returns that symbol.
| parent | Dialog parent. | 
| title | Dialog title. | 
Definition at line 73 of file SymbolSelectorDialog.cpp.
References getSymbol().
Referenced by getSymbol().
| te::qt::widgets::Symbol * te::qt::widgets::SymbolSelectorDialog::getSymbol | ( | ) | const | 
Gets the selected symbol.
Definition at line 86 of file SymbolSelectorDialog.cpp.
References te::qt::widgets::Symbol::clone().
      
  | 
  private | 
Auxiliary internal method that returns the symbol given a list widget item.
Definition at line 218 of file SymbolSelectorDialog.cpp.
References te::qt::widgets::SymbolLibraryManager::findByName(), and te::common::Singleton< SymbolLibraryManager >::getInstance().
      
  | 
  private | 
Initialize the dialog.
Definition at line 148 of file SymbolSelectorDialog.cpp.
References te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::Symbol::getInfo(), te::common::Singleton< SymbolLibraryManager >::getInstance(), te::qt::widgets::SymbolLibraryManager::getIterator(), te::qt::widgets::Symbol::getSymbolizers(), te::qt::widgets::SymbolInfo::m_author, te::qt::widgets::SymbolInfo::m_description, te::qt::widgets::SymbolInfo::m_id, te::qt::widgets::SymbolInfo::m_name, and te::qt::widgets::SymbolInfo::m_tags.
Referenced by SymbolSelectorDialog().
      
  | 
  privateslot | 
Definition at line 96 of file SymbolSelectorDialog.cpp.
Referenced by SymbolSelectorDialog().
      
  | 
  privateslot | 
Definition at line 120 of file SymbolSelectorDialog.cpp.
References te::common::Exception::what().
Referenced by SymbolSelectorDialog().
      
  | 
  privateslot | 
Definition at line 139 of file SymbolSelectorDialog.cpp.
Referenced by SymbolSelectorDialog().
      
  | 
  privateslot | 
Definition at line 106 of file SymbolSelectorDialog.cpp.
References te::qt::widgets::Symbol::getInfo(), te::qt::widgets::SymbolInfoDialog::setReadMode(), and te::qt::widgets::SymbolInfoDialog::setSymbolInfo().
Referenced by SymbolSelectorDialog().
      
  | 
  private | 
Preview Widget used to visualize the symbol.
Definition at line 143 of file SymbolSelectorDialog.h.
Referenced by SymbolSelectorDialog().
      
  | 
  private | 
Dialog form.
Definition at line 142 of file SymbolSelectorDialog.h.
Referenced by SymbolSelectorDialog().