29 #include "ui_GraphicDialogForm.h"
33 m_ui(new Ui::GraphicDialogForm)
41 QGridLayout* layout =
new QGridLayout(
m_ui->m_graphicSelectorFrame);
42 layout->setSizeConstraint(QLayout::SetFixedSize);
55 dlg.setWindowTitle(title);
60 if(dlg.exec() == QDialog::Accepted)
68 m_graphicSelector->setGraphic(graphic);
73 return m_graphicSelector->getGraphic();
78 return m_graphicSelector->getGraphicIcon(size);
~GraphicDialog()
Destructor.
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...
QIcon getGraphicIcon(const QSize &size)
Gets the current graphic icon.
GraphicSelectorWidget * m_graphicSelector
Graphic selector widget used to select the graphic.
A widget used to select a graphic element.
std::auto_ptr< Ui::GraphicDialogForm > m_ui
Dialog form.
A widget used to select a graphic element.
void setGraphic(const te::se::Graphic *graphic)
Sets the graphic element.
void setGraphic(const te::se::Graphic *graphic)
Sets the graphic element.
GraphicDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a graphic dialog which is a child of parent, with widget flags set to f.
A dialog used to build a graphic element. If you want to use this dialog, you can use commands like: ...
te::se::Graphic * getGraphic() const
Gets the configured graphic element.
A dialog used to build a graphic element.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.