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

A widget used to build a well known mark element. More...

#include <WellKnownMarkWidget.h>

Inheritance diagram for te::qt::widgets::WellKnownMarkWidget:

Signals

void markChanged ()
 

Public Member Functions

te::se::MarkgetMark () const
 Gets the configured mark element. More...
 
void setMark (const te::se::Mark *mark)
 Sets a mark element to this widget. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 WellKnownMarkWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a well known mark widget which is a child of parent, with widget flags set to f. More...
 
 ~WellKnownMarkWidget ()
 Destructor. More...
 

Protected Slots

void onFillChanged ()
 
void onFillGroupBoxToggled (bool on)
 
void onMarkTypeComboBoxCurrentIndexChanged (const QString &currentText)
 
void onStrokeChanged ()
 
void onStrokeGroupBoxToggled (bool on)
 

Protected Member Functions

void updateUi ()
 Updates the widget form based on internal mark element. More...
 

Private Attributes

te::qt::widgets::BasicFillWidgetm_fillWidget
 Basic Fill Widget used to configure the mark fill element. More...
 
te::se::Markm_mark
 Mark element that will be configured by this widget. More...
 
te::qt::widgets::BasicStrokeWidgetm_strokeWidget
 Basic Stroke Widget used to configure the mark stroke element. More...
 
std::vector< std::string > m_supportedMarks
 Names of supported marks. More...
 
std::auto_ptr
< Ui::WellKnownMarkWidgetForm > 
m_ui
 Widget form. More...
 

Detailed Description

A widget used to build a well known mark element.

Definition at line 64 of file WellKnownMarkWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::WellKnownMarkWidget::~WellKnownMarkWidget ( )

Destructor.

Definition at line 76 of file WellKnownMarkWidget.cpp.

Member Function Documentation

te::se::Mark * te::qt::widgets::WellKnownMarkWidget::getMark ( ) const

Gets the configured mark element.

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

Definition at line 92 of file WellKnownMarkWidget.cpp.

References te::se::Mark::clone().

Referenced by te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget().

void te::qt::widgets::WellKnownMarkWidget::markChanged ( )
signal

This signal is emitted when the internal mark element is changed.

void te::qt::widgets::WellKnownMarkWidget::onFillChanged ( )
protectedslot

Definition at line 147 of file WellKnownMarkWidget.cpp.

Referenced by WellKnownMarkWidget().

void te::qt::widgets::WellKnownMarkWidget::onFillGroupBoxToggled ( bool  on)
protectedslot

Definition at line 153 of file WellKnownMarkWidget.cpp.

Referenced by WellKnownMarkWidget().

void te::qt::widgets::WellKnownMarkWidget::onMarkTypeComboBoxCurrentIndexChanged ( const QString &  currentText)
protectedslot

Definition at line 126 of file WellKnownMarkWidget.cpp.

Referenced by WellKnownMarkWidget().

void te::qt::widgets::WellKnownMarkWidget::onStrokeChanged ( )
protectedslot

Definition at line 132 of file WellKnownMarkWidget.cpp.

Referenced by WellKnownMarkWidget().

void te::qt::widgets::WellKnownMarkWidget::onStrokeGroupBoxToggled ( bool  on)
protectedslot

Definition at line 138 of file WellKnownMarkWidget.cpp.

Referenced by WellKnownMarkWidget().

void te::qt::widgets::WellKnownMarkWidget::setMark ( const te::se::Mark mark)

Sets a mark element to this widget.

Parameters
markA valid mark element.
Note
The widget will NOT take the ownership of the given mark.
The widget form will be update based on given mark parameters.

Definition at line 81 of file WellKnownMarkWidget.cpp.

References te::se::Mark::clone().

Referenced by te::qt::widgets::WellKnownMarkDialog::getMark().

void te::qt::widgets::WellKnownMarkWidget::updateUi ( )
protected

Updates the widget form based on internal mark element.

Definition at line 97 of file WellKnownMarkWidget.cpp.

Member Data Documentation

te::qt::widgets::BasicFillWidget* te::qt::widgets::WellKnownMarkWidget::m_fillWidget
private

Basic Fill Widget used to configure the mark fill element.

Definition at line 129 of file WellKnownMarkWidget.h.

Referenced by WellKnownMarkWidget().

te::se::Mark* te::qt::widgets::WellKnownMarkWidget::m_mark
private

Mark element that will be configured by this widget.

Definition at line 131 of file WellKnownMarkWidget.h.

Referenced by WellKnownMarkWidget().

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

Basic Stroke Widget used to configure the mark stroke element.

Definition at line 130 of file WellKnownMarkWidget.h.

Referenced by WellKnownMarkWidget().

std::vector<std::string> te::qt::widgets::WellKnownMarkWidget::m_supportedMarks
private

Names of supported marks.

Definition at line 132 of file WellKnownMarkWidget.h.

Referenced by WellKnownMarkWidget().

std::auto_ptr<Ui::WellKnownMarkWidgetForm> te::qt::widgets::WellKnownMarkWidget::m_ui
private

Widget form.

Definition at line 128 of file WellKnownMarkWidget.h.

Referenced by WellKnownMarkWidget().


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