A widget used to explore a style.  
 More...
#include <StyleExplorer.h>
A widget used to explore a style. 
Definition at line 60 of file StyleExplorer.h.
 
Auxiliary internal enumeration to control the StyleExplorer tree nodes. 
| Enumerator | 
|---|
| STYLE  | 
 Style root node.  
 | 
| RULE  | 
 Rule node.  
 | 
| SYMBOLIZER  | 
 Symbolizer node.  
 | 
Definition at line 71 of file StyleExplorer.h.
 
 
      
        
          | te::qt::widgets::StyleExplorer::StyleExplorer  | 
          ( | 
          QWidget *  | 
          parent = 0 | ) | 
           | 
        
      
 
Constructs a style explorer widget which is a child of parent. 
 
 
      
        
          | te::qt::widgets::StyleExplorer::~StyleExplorer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | te::se::Rule* te::qt::widgets::StyleExplorer::getCurrentRule  | 
          ( | 
           | ) | 
           | 
        
      
 
Gets the current rule. 
- Returns
 - The current rule on Style Explorer.
 
- Note
 - If there is not a current rule a NULL point will be returned. 
 
 
 
Gets the current symbolizer. 
- Returns
 - The current symbolizer on Style Explorer.
 
- Note
 - If there is not a current symbolizer a NULL point will be returned. 
 
 
 
  
  
      
        
          | te::se::Rule* te::qt::widgets::StyleExplorer::getRule  | 
          ( | 
          QTreeWidgetItem *  | 
          item | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Auxiliary internal method to retrieve a rule from a QTreeWidgetItem. 
 
 
  
  
      
        
          | QTreeWidgetItem* te::qt::widgets::StyleExplorer::getSelectedItem  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
Auxiliary internal method to retrieve the selected item on Style Explorer. 
- Returns
 - The selected QTreeWidgetItem on Style Explorer.
 
- Note
 - If there is not a selected QTreeWidgetItem a NULL point will be returned. 
 
 
 
  
  
      
        
          | te::se::Symbolizer* te::qt::widgets::StyleExplorer::getSymbolizer  | 
          ( | 
          QTreeWidgetItem *  | 
          item | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Auxiliary internal method to retrieve a symbolizer from a QTreeWidgetItem. 
 
 
      
        
          | void te::qt::widgets::StyleExplorer::goDownSymbolizer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | void te::qt::widgets::StyleExplorer::goUpSymbolizer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | void te::qt::widgets::StyleExplorer::importStyle  | 
          ( | 
          te::se::Style *  | 
          style,  | 
        
        
           | 
           | 
          bool  | 
          isVisual  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | void te::qt::widgets::StyleExplorer::onItemClicked  | 
          ( | 
          QTreeWidgetItem *  | 
          item,  | 
         
        
           | 
           | 
          int  | 
          column  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
privateslot   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::StyleExplorer::ruleClicked  | 
          ( | 
          te::se::Rule *  | 
          rule | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
This signal is emitted when a rule is clicked. 
 
 
      
        
          | void te::qt::widgets::StyleExplorer::setLegendIconSize  | 
          ( | 
          int  | 
          size | ) | 
           | 
        
      
 
 
      
        
          | void te::qt::widgets::StyleExplorer::setStyle  | 
          ( | 
          te::se::Style *  | 
          style | ) | 
           | 
        
      
 
Sets a style element to this widget. 
- Parameters
 - 
  
    | style | A valid style element. | 
  
   
- Note
 - The widget will NOT take the ownership of the given style. 
 
- 
The widget will be update based on given style parameters. 
 
 
 
  
  
      
        
          | void te::qt::widgets::StyleExplorer::styleImported  | 
          ( | 
          te::se::Style *  | 
          style,  | 
         
        
           | 
           | 
          bool  | 
          isVisual  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
signal   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::StyleExplorer::swapSymbolizers  | 
          ( | 
          te::se::Rule *  | 
          r,  | 
         
        
           | 
           | 
          int  | 
          indexFirst,  | 
         
        
           | 
           | 
          int  | 
          indexSecond  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
This signal is emitted when a symbolizer is clicked. 
 
 
      
        
          | void te::qt::widgets::StyleExplorer::updateStyleTree  | 
          ( | 
           | ) | 
           | 
        
      
 
This method updates the Style Explorer. 
 
 
Style element that will be explored by this widget. 
Definition at line 173 of file StyleExplorer.h.
 
 
  
  
      
        
          | std::map<QString, QString> te::qt::widgets::StyleExplorer::m_symbolizerNames | 
         
       
   | 
  
private   | 
  
 
A map of symbolizers names to user interface names. 
Definition at line 174 of file StyleExplorer.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/se/StyleExplorer.h