Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel > Class Template Reference

#include <TPolygonBasedParamsGuiComp.h>

Inheritance diagram for iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >:
iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel > iqt2d::TViewExtenderCompBase< iqtgui::TDesignerGuiObserverCompBase< Ui, PolygonBasedModel > > iview::IShapeFactory iqtgui::TDesignerGuiObserverCompBase< Ui, PolygonBasedModel > iqt2d::IViewExtender istd::IPolymorphic ibase::TModelObserverCompBaseWrap< iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui, QWidget >, imod::TSingleModelObserverBase< PolygonBasedModel > > > istd::IPolymorphic iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui, QWidget >, imod::TSingleModelObserverBase< PolygonBasedModel > > iqtgui::TDesignerGuiCompBase< Ui, QWidget > imod::TSingleModelObserverBase< PolygonBasedModel > imod::IModelEditor iqtgui::TGuiComponentBase< QWidget > imod::CSingleModelObserverBase istd::IPolymorphic iqtgui::CGuiComponentBase imod::IObserver ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject istd::IPolymorphic icomp::CComponentBase istd::IPolymorphic icomp::IComponent istd::IPolymorphic

Classes

class  TableModel
 

Public Types

enum  CellIndex { CI_X, CI_Y, CI_LAST = CI_Y }
 Cell index. More...
 
typedef
iqt2d::TShapeParamsGuiCompBase
< Ui::CPolygonParamsGuiComp,
PolygonBasedShape,
PolygonBasedModel > 
BaseClass
 
- Public Types inherited from iqtgui::TGuiComponentBase< QWidget >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from imod::TSingleModelObserverBase< PolygonBasedModel >
typedef CSingleModelObserverBase BaseClass
 
typedef PolygonBasedModel ModelType
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- Public Types inherited from imod::IModelEditor
enum  ChangeFlags { CF_INIT_EDITOR = 0x3720694 }
 Data model change notification flags. More...
 
- Public Types inherited from iqt2d::IViewExtender
enum  SceneFlags { SF_BACKGROUND = 1, SF_DIRECT = 2 }
 Standard flags for items . More...
 

Public Member Functions

 TPolygonBasedParamsGuiComp ()
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< QWidget >
 TGuiComponentBase ()
 
virtual QWidget * GetQtWidget () const
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus)
 
 CGuiComponentBase ()
 
bool IsGuiShown () const
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual bool CreateGui (QWidget *parentPtr)
 Initialize GUI and connect it to the parent. More...
 
virtual bool DestroyGui ()
 Release GUI and disconnect it from parent. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< PolygonBasedModel >
 TSingleModelObserverBase ()
 
PolygonBasedModel * GetObservedObject () const
 Get instance of observed object. More...
 
PolygonBasedModel * GetObjectPtr () const
 Get instance of observed object. More...
 
bool AttachOrSetObject (PolygonBasedModel *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model. More...
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 This function will be called before update of the observer contents occures. More...
 

Protected Member Functions

QTableView * GetNodeTable ()
 Get the table with the node data. More...
 
virtual void OnInsertNode ()
 
virtual void OnRemoveNode ()
 
virtual void OnCopyData ()
 
virtual void OnPasteData ()
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiRetranslate ()
 Called from widget event filter when GUI should be retranslated. More...
 
virtual bool PopulateActions (QWidget &host, imod::IModel *modelPtr)
 
virtual void OnActionTriggered (QAction *actionPtr)
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 Do update of the GUI to reflect the state of model. More...
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< PolygonBasedModel >
virtual PolygonBasedModel * CastFromModel (imod::IModel *modelPtr) const
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet)
 Called on update of observed model. More...
 

Protected Attributes

QAction m_flipHorizontalAction
 
QAction m_flipVerticalAction
 
QAction m_rotateCwAction
 
QAction m_rotateCcwAction
 
QAction m_reversePolarityAction
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const
istd::IChangeable::ChangeSet 
s_undoChanges
 

Detailed Description

template<class PolygonBasedShape, class PolygonBasedModel>
class iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >

Definition at line 34 of file TPolygonBasedParamsGuiComp.h.

Member Typedef Documentation

template<class PolygonBasedShape, class PolygonBasedModel>
typedef iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel> iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::BaseClass

Definition at line 65 of file TPolygonBasedParamsGuiComp.h.

Member Enumeration Documentation

template<class PolygonBasedShape, class PolygonBasedModel>
enum iqt2d::TPolygonBasedParamsGuiComp::CellIndex

Cell index.

Enumerator
CI_X 

Index of the table cell for the X coordinate of the polygon node.

CI_Y 

Index of the table cell for the X coordinate of the polygon node.

CI_LAST 

Last used cell index.

Definition at line 44 of file TPolygonBasedParamsGuiComp.h.

Constructor & Destructor Documentation

template<class PolygonBasedShape , class PolygonBasedModel >
iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::TPolygonBasedParamsGuiComp ( )

Definition at line 154 of file TPolygonBasedParamsGuiComp.h.

Member Function Documentation

template<class PolygonBasedShape , class PolygonBasedModel >
int iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::columnCount ( const QModelIndex &  parent = QModelIndex()) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 268 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
QVariant iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 275 of file TPolygonBasedParamsGuiComp.h.

References i2d::CPolypoint::GetNodePos(), and NULL.

template<class PolygonBasedShape , class PolygonBasedModel >
Qt::ItemFlags iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::flags ( const QModelIndex &  index) const
protectedvirtual

Definition at line 332 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
QTableView * iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::GetNodeTable ( )
protected

Get the table with the node data.

Definition at line 168 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
QVariant iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 313 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnActionTriggered ( QAction *  actionPtr)
protectedvirtual
template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnCopyData ( )
protectedvirtual
template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnGuiCreated ( )
protectedvirtual

Called just after GUI is initialized.

Reimplemented from iqtgui::TDesignerGuiObserverCompBase< Ui, PolygonBasedModel >.

Definition at line 341 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnGuiRetranslate ( )
protectedvirtual

Called from widget event filter when GUI should be retranslated.

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui, QWidget >, imod::TSingleModelObserverBase< PolygonBasedModel > >.

Reimplemented in iqt2d::CPolylineParamsGuiComp.

Definition at line 376 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnInsertNode ( )
protectedvirtual
template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnPasteData ( )
protectedvirtual

Definition at line 215 of file TPolygonBasedParamsGuiComp.h.

References NULL.

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnRemoveNode ( )
protectedvirtual

Definition at line 236 of file TPolygonBasedParamsGuiComp.h.

References NULL, and i2d::CPolypoint::RemoveNode().

template<class PolygonBasedShape , class PolygonBasedModel >
bool iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::PopulateActions ( QWidget &  host,
imod::IModel modelPtr 
)
protectedvirtual
template<class PolygonBasedShape , class PolygonBasedModel >
int iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::rowCount ( const QModelIndex &  parent = QModelIndex()) const
protectedvirtual

Definition at line 254 of file TPolygonBasedParamsGuiComp.h.

References i2d::CPolypoint::GetNodesCount(), and NULL.

template<class PolygonBasedShape , class PolygonBasedModel >
bool iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
protectedvirtual
template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual

Do update of the GUI to reflect the state of model.

This method should be implmented by derived classes instead of imod::IModelEditor::UpdateEditor().

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui, QWidget >, imod::TSingleModelObserverBase< PolygonBasedModel > >.

Definition at line 449 of file TPolygonBasedParamsGuiComp.h.

Member Data Documentation

template<class PolygonBasedShape, class PolygonBasedModel>
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_flipHorizontalAction
protected

Definition at line 140 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape, class PolygonBasedModel>
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_flipVerticalAction
protected

Definition at line 141 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape, class PolygonBasedModel>
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_reversePolarityAction
protected

Definition at line 144 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape, class PolygonBasedModel>
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_rotateCcwAction
protected

Definition at line 143 of file TPolygonBasedParamsGuiComp.h.

template<class PolygonBasedShape, class PolygonBasedModel>
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_rotateCwAction
protected

Definition at line 142 of file TPolygonBasedParamsGuiComp.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy