All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::BasicStrokeDialog Class Reference

A dialog used to build a basic stroke element. If you want to use this dialog, you can use commands like: te::se::Stroke* s = te::qt::widgets::BasicStrokeDialog::getStroke(0, parent, "Title"); te::se::Stroke* s = te::qt::widgets::BasicStrokeDialog::getStroke(initialStroke, parent, "Title"); ... delete s; More...

#include <BasicStrokeDialog.h>

Inheritance diagram for te::qt::widgets::BasicStrokeDialog:

Public Member Functions

te::se::StrokegetStroke () const
 Gets the configured stroke element. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 BasicStrokeDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a basic stroke dialog which is a child of parent, with widget flags set to f. More...
 
 ~BasicStrokeDialog ()
 Destructor. More...
 

Static Public Member Functions

static te::se::StrokegetStroke (const te::se::Stroke *initial, QWidget *parent=0, const QString &title="")
 Pops up a modal basic stroke dialog with the given window title, lets the user configure the stroke, and returns that stroke. The stroke is initially set to initial. The dialog is a child of parent. More...
 

Private Attributes

te::qt::widgets::BasicStrokeWidgetm_strokeWidget
 Basic Stroke Widget used to configure the stroke element. More...
 
std::auto_ptr
< Ui::BasicStrokeDialogForm > 
m_ui
 Dialog form. More...
 

Detailed Description

A dialog used to build a basic stroke element. If you want to use this dialog, you can use commands like: te::se::Stroke* s = te::qt::widgets::BasicStrokeDialog::getStroke(0, parent, "Title"); te::se::Stroke* s = te::qt::widgets::BasicStrokeDialog::getStroke(initialStroke, parent, "Title"); ... delete s;

Definition at line 68 of file BasicStrokeDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::BasicStrokeDialog::BasicStrokeDialog ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructs a basic stroke dialog which is a child of parent, with widget flags set to f.

Definition at line 31 of file BasicStrokeDialog.cpp.

References m_strokeWidget, and m_ui.

te::qt::widgets::BasicStrokeDialog::~BasicStrokeDialog ( )

Destructor.

Definition at line 45 of file BasicStrokeDialog.cpp.

Member Function Documentation

te::se::Stroke * te::qt::widgets::BasicStrokeDialog::getStroke ( const te::se::Stroke initial,
QWidget *  parent = 0,
const QString &  title = "" 
)
static

Pops up a modal basic stroke dialog with the given window title, lets the user configure the stroke, and returns that stroke. The stroke is initially set to initial. The dialog is a child of parent.

Parameters
initialA initial stroke element that will be used. The dialog form will be update based on stroke element parameters. It can be NULL.
parentDialog parent.
titleDialog title.
Note
The dialog will NOT take the ownership of the given initial stroke.
The caller will take the ownership of the returned stroke.
It returns a NULL stroke element if the user cancels the dialog.

Definition at line 49 of file BasicStrokeDialog.cpp.

References getStroke(), m_strokeWidget, and te::qt::widgets::BasicStrokeWidget::setStroke().

Referenced by getStroke().

te::se::Stroke * te::qt::widgets::BasicStrokeDialog::getStroke ( ) const

Gets the configured stroke element.

Returns
The configured stroke element.
Note
The caller will take the ownership of the returned stroke.

Definition at line 65 of file BasicStrokeDialog.cpp.

Referenced by te::qt::widgets::HistogramStyleWidget::onStrokePushButtonClicked().

Member Data Documentation

te::qt::widgets::BasicStrokeWidget* te::qt::widgets::BasicStrokeDialog::m_strokeWidget
private

Basic Stroke Widget used to configure the stroke element.

Definition at line 114 of file BasicStrokeDialog.h.

Referenced by BasicStrokeDialog(), and getStroke().

std::auto_ptr<Ui::BasicStrokeDialogForm> te::qt::widgets::BasicStrokeDialog::m_ui
private

Dialog form.

Definition at line 113 of file BasicStrokeDialog.h.

Referenced by BasicStrokeDialog().


The documentation for this class was generated from the following files: