A dialog used to build a graphic element. If you want to use this dialog, you can use commands like: te::se::Graphic* g = te::qt::widgets::GraphicDialog::getGraphic(0, parent, "Title"); ... delete g;
More...
#include <GraphicDialog.h>
Public Member Functions | |
te::se::Graphic * | getGraphic () const |
Gets the configured graphic element. More... | |
QIcon | getGraphicIcon (const QSize &size) |
Gets the current graphic icon. More... | |
void | setGraphic (const te::se::Graphic *graphic) |
Sets the graphic element. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
GraphicDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a graphic dialog which is a child of parent, with widget flags set to f. More... | |
~GraphicDialog () | |
Destructor. More... | |
Static Public Member Functions | |
static te::se::Graphic * | getGraphic (const te::se::Graphic *initial, QWidget *parent=0, const QString &title="") |
Pops up a modal graphic dialog with the given window title, lets the user configure the graphic, and returns that graphic. The graphic is initially set to initial. The dialog is a child of parent. More... | |
Private Attributes | |
GraphicSelectorWidget * | m_graphicSelector |
Graphic selector widget used to select the graphic. More... | |
std::auto_ptr< Ui::GraphicDialogForm > | m_ui |
Dialog form. More... | |
A dialog used to build a graphic element. If you want to use this dialog, you can use commands like: te::se::Graphic* g = te::qt::widgets::GraphicDialog::getGraphic(0, parent, "Title"); ... delete g;
Definition at line 69 of file GraphicDialog.h.
te::qt::widgets::GraphicDialog::GraphicDialog | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a graphic dialog which is a child of parent, with widget flags set to f.
te::qt::widgets::GraphicDialog::~GraphicDialog | ( | ) |
Destructor.
|
static |
Pops up a modal graphic dialog with the given window title, lets the user configure the graphic, and returns that graphic. The graphic is initially set to initial. The dialog is a child of parent.
initial | A initial graphic element that will be used. The dialog form will be update based on graphic element parameters. It can be NULL. |
parent | Dialog parent. |
title | Dialog title. |
te::se::Graphic* te::qt::widgets::GraphicDialog::getGraphic | ( | ) | const |
Gets the configured graphic element.
QIcon te::qt::widgets::GraphicDialog::getGraphicIcon | ( | const QSize & | size | ) |
Gets the current graphic icon.
size | The icon size that will be generated. |
void te::qt::widgets::GraphicDialog::setGraphic | ( | const te::se::Graphic * | graphic | ) |
Sets the graphic element.
|
private |
Graphic selector widget used to select the graphic.
Definition at line 133 of file GraphicDialog.h.
|
private |
Dialog form.
Definition at line 132 of file GraphicDialog.h.