A widget used to select a graphic element.  
 More...
#include <GraphicSelectorWidget.h>
 | 
| QStackedWidget *  | m_graphicWidgets | 
|   | Set of Graphic Widgets that can be used to configure the graphic element.  More...
  | 
|   | 
| std::unique_ptr< Ui::GraphicSelectorWidgetForm >  | m_ui | 
|   | Widget form.  More...
  | 
|   | 
A widget used to select a graphic element. 
Definition at line 61 of file GraphicSelectorWidget.h.
 
      
        
          | te::qt::widgets::GraphicSelectorWidget::GraphicSelectorWidget  | 
          ( | 
          QWidget *  | 
          parent = 0,  | 
        
        
           | 
           | 
          Qt::WindowFlags  | 
          f = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs a graphic selector widget dialog which is a child of parent, with widget flags set to f. 
 
 
      
        
          | te::qt::widgets::GraphicSelectorWidget::~GraphicSelectorWidget  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | te::se::Graphic* te::qt::widgets::GraphicSelectorWidget::getGraphic  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the configured graphic element. 
- Returns
 - The configured graphic element.
 
- Note
 - The caller will take the ownership of the returned graphic. 
 
 
 
      
        
          | QIcon te::qt::widgets::GraphicSelectorWidget::getGraphicIcon  | 
          ( | 
          const QSize &  | 
          size | ) | 
           | 
        
      
 
Gets the current graphic icon. 
- Parameters
 - 
  
    | size | The icon size that will be generated. | 
  
   
- Returns
 - An icon that represents the graphic. i.e. a simple preview. 
 
 
 
  
  
      
        
          | void te::qt::widgets::GraphicSelectorWidget::graphicChanged  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
This signal is emitted when the graphic element is changed. 
 
 
  
  
      
        
          | void te::qt::widgets::GraphicSelectorWidget::onGraphicChanged  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
 
  
  
      
        
          | void te::qt::widgets::GraphicSelectorWidget::onGraphicTypeComboBoxCurrentIndexChanged  | 
          ( | 
          int  | 
          index | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
 
      
        
          | void te::qt::widgets::GraphicSelectorWidget::setGraphic  | 
          ( | 
          const te::se::Graphic *  | 
          graphic | ) | 
           | 
        
      
 
Sets the graphic element. 
- Returns
 - The graphic element.
 
- Note
 - The widget will NOT take the ownership of the given graphic. 
 
 
 
  
  
      
        
          | QStackedWidget* te::qt::widgets::GraphicSelectorWidget::m_graphicWidgets | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | std::unique_ptr<Ui::GraphicSelectorWidgetForm> te::qt::widgets::GraphicSelectorWidget::m_ui | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: