Classes | Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
icmpstr::CSceneProviderGuiComp Class Reference

#include <CSceneProviderGuiComp.h>

Inheritance diagram for icmpstr::CSceneProviderGuiComp:
iqtgui::TDesignerGuiCompBase< Ui::CSceneProviderGuiComp > ibase::ICommandsProvider icmpstr::ISceneProvider i2d::ISceneController iqtgui::TGuiComponentBase< WidgetType > istd::IChangeable istd::IPolymorphic istd::IPolymorphic iqtgui::CGuiComponentBase istd::IPolymorphic iqtgui::IGuiObject istd::IPolymorphic

Classes

class  CScene
 Implementation of QGraphicsScene with own background drawing to provide rastered backgrounds. More...
 

Public Types

enum  BackgroundMode {
  BM_NORMAL, BM_SOLID, BM_GRID, BM_CHECKERBOARD,
  BM_DOT_GRID, BM_TRANSPARENT
}
 
typedef
iqtgui::TDesignerGuiCompBase
< Ui::CSceneProviderGuiComp > 
BaseClass
 
- Public Types inherited from ibase::ICommandsProvider
enum  ChangeFlags
 
- Public Types inherited from icmpstr::ISceneProvider
enum  SceneFlags { SF_FIXED_SIZE = 1, SF_ALIGNED = 2 }
 
- Public Types inherited from i2d::ISceneController
enum  RestrictionFlags
 
enum  FitMode
 
enum  ScaleMode
 

Signals

void zoomChanged (double)
 
void embeddedRegistrySelected (const QByteArray &)
 

Public Member Functions

 CSceneProviderGuiComp ()
 
double GetIsotropyFactor () const
 
void SetIsotropyFactor (double factor)
 
virtual const
ibase::IHierarchicalCommand
GetCommands () const
 
virtual int GetSceneId () const
 Get ID indentifing this scene. More...
 
virtual QGraphicsScene * GetScene () const
 Called when items should be removed from specified scene. More...
 
virtual bool GetSceneAlignment (double &distance) const
 Get parameters of grid alignment. More...
 
virtual int GetSceneFlags () const
 Get scene's paremeter info. More...
 
virtual int GetSceneRestrictionFlags () const
 
virtual FitMode GetFitMode () const
 
virtual bool SetFitMode (FitMode fitMode)
 
virtual bool IsFullScreenMode () const
 
virtual bool SetFullScreenMode (bool isFullScreen)
 
virtual double GetScale () const
 
virtual bool SetScale (int scaleMode=SM_SET, double value=1.0)
 
- Public Member Functions inherited from iqtgui::IGuiObject
virtual bool IsGuiCreated () const =0
 
virtual bool CreateGui (QWidget *parentPtr)=0
 
virtual bool DestroyGui ()=0
 
virtual QWidget * GetWidget () const =0
 
virtual void OnTryClose (bool *ignoredPtr=NULL)=0
 
- Public Member Functions inherited from i2d::ISceneController
virtual bool SetFitMode (FitMode fitMode)=0
 

Protected Slots

void OnPrint ()
 
void OnZoomIncrement ()
 
void OnZoomDecrement ()
 
void OnFitToView ()
 
void OnFitToShapes ()
 
void OnResetScale ()
 
void OnAutoFit (bool isAutoScale)
 
void OnSelectAllShapes ()
 

Protected Member Functions

virtual bool OnResize (QResizeEvent *eventPtr)
 
virtual bool OnWheelEvent (QGraphicsSceneWheelEvent *eventPtr)
 
virtual bool OnKeyReleaseEvent (QKeyEvent *eventPtr)
 
virtual bool OnMouseDoubleClickEvent (QEvent *eventPtr)
 
void ScaleView (double scaleFactor)
 
void SetFittedScale (FitMode mode)
 
iqtgui::CHierarchicalCommandGetCommandsRootRef ()
 
bool HasDropConsumerForFormat (const QStringList &formats) const
 
void DelegateDropEvent (const QMimeData &data, QGraphicsSceneDragDropEvent *eventPtr)
 
void ResetScene ()
 
virtual void OnGuiCreated ()
 
virtual void OnRetranslate ()
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 

Detailed Description

Definition at line 35 of file CSceneProviderGuiComp.h.

Member Typedef Documentation

Definition at line 43 of file CSceneProviderGuiComp.h.

Member Enumeration Documentation

Enumerator
BM_NORMAL 

Standard window backround.

BM_SOLID 

Filled with solid color.

BM_GRID 

Grid of horizontal and vertical lines.

BM_CHECKERBOARD 

Checkerboard pattern.

BM_DOT_GRID 

Dot grid.

BM_TRANSPARENT 

Transparent background.

Definition at line 45 of file CSceneProviderGuiComp.h.

Constructor & Destructor Documentation

icmpstr::CSceneProviderGuiComp::CSceneProviderGuiComp ( )

Member Function Documentation

void icmpstr::CSceneProviderGuiComp::DelegateDropEvent ( const QMimeData &  data,
QGraphicsSceneDragDropEvent *  eventPtr 
)
protected
void icmpstr::CSceneProviderGuiComp::embeddedRegistrySelected ( const QByteArray &  )
signal
virtual bool icmpstr::CSceneProviderGuiComp::eventFilter ( QObject *  sourcePtr,
QEvent *  eventPtr 
)
protectedvirtual
virtual const ibase::IHierarchicalCommand* icmpstr::CSceneProviderGuiComp::GetCommands ( ) const
virtual

Reimplemented from ibase::ICommandsProvider.

iqtgui::CHierarchicalCommand & icmpstr::CSceneProviderGuiComp::GetCommandsRootRef ( )
inlineprotected

Definition at line 224 of file CSceneProviderGuiComp.h.

virtual FitMode icmpstr::CSceneProviderGuiComp::GetFitMode ( ) const
virtual

Implements i2d::ISceneController.

double icmpstr::CSceneProviderGuiComp::GetIsotropyFactor ( ) const
virtual double icmpstr::CSceneProviderGuiComp::GetScale ( ) const
virtual

Implements i2d::ISceneController.

virtual QGraphicsScene* icmpstr::CSceneProviderGuiComp::GetScene ( ) const
virtual

Called when items should be removed from specified scene.

Implements icmpstr::ISceneProvider.

virtual bool icmpstr::CSceneProviderGuiComp::GetSceneAlignment ( double &  distance) const
virtual

Get parameters of grid alignment.

Parameters
distancedistance between nearest alignment positions.
Returns
true if grid alignment is enabled.
See Also
SceneFlags

Implements icmpstr::ISceneProvider.

virtual int icmpstr::CSceneProviderGuiComp::GetSceneFlags ( ) const
virtual

Get scene's paremeter info.

See Also
SceneFlags

Implements icmpstr::ISceneProvider.

virtual int icmpstr::CSceneProviderGuiComp::GetSceneId ( ) const
virtual

Get ID indentifing this scene.

Typically this ID is 0 for first scene, 1 for the second etc.

Implements icmpstr::ISceneProvider.

virtual int icmpstr::CSceneProviderGuiComp::GetSceneRestrictionFlags ( ) const
virtual

Implements i2d::ISceneController.

bool icmpstr::CSceneProviderGuiComp::HasDropConsumerForFormat ( const QStringList &  formats) const
protected
virtual bool icmpstr::CSceneProviderGuiComp::IsFullScreenMode ( ) const
virtual

Implements i2d::ISceneController.

void icmpstr::CSceneProviderGuiComp::OnAutoFit ( bool  isAutoScale)
protectedslot
virtual void icmpstr::CSceneProviderGuiComp::OnComponentCreated ( )
protectedvirtual
virtual void icmpstr::CSceneProviderGuiComp::OnComponentDestroyed ( )
protectedvirtual
void icmpstr::CSceneProviderGuiComp::OnFitToShapes ( )
protectedslot
void icmpstr::CSceneProviderGuiComp::OnFitToView ( )
protectedslot
virtual void icmpstr::CSceneProviderGuiComp::OnGuiCreated ( )
protectedvirtual
virtual bool icmpstr::CSceneProviderGuiComp::OnKeyReleaseEvent ( QKeyEvent *  eventPtr)
protectedvirtual
virtual bool icmpstr::CSceneProviderGuiComp::OnMouseDoubleClickEvent ( QEvent *  eventPtr)
protectedvirtual
void icmpstr::CSceneProviderGuiComp::OnPrint ( )
protectedslot
void icmpstr::CSceneProviderGuiComp::OnResetScale ( )
protectedslot
virtual bool icmpstr::CSceneProviderGuiComp::OnResize ( QResizeEvent *  eventPtr)
protectedvirtual
virtual void icmpstr::CSceneProviderGuiComp::OnRetranslate ( )
protectedvirtual
void icmpstr::CSceneProviderGuiComp::OnSelectAllShapes ( )
protectedslot
virtual bool icmpstr::CSceneProviderGuiComp::OnWheelEvent ( QGraphicsSceneWheelEvent *  eventPtr)
protectedvirtual
void icmpstr::CSceneProviderGuiComp::OnZoomDecrement ( )
protectedslot
void icmpstr::CSceneProviderGuiComp::OnZoomIncrement ( )
protectedslot
void icmpstr::CSceneProviderGuiComp::ResetScene ( )
protected
void icmpstr::CSceneProviderGuiComp::ScaleView ( double  scaleFactor)
protected
virtual bool icmpstr::CSceneProviderGuiComp::SetFitMode ( FitMode  fitMode)
virtual
void icmpstr::CSceneProviderGuiComp::SetFittedScale ( FitMode  mode)
protected
virtual bool icmpstr::CSceneProviderGuiComp::SetFullScreenMode ( bool  isFullScreen)
virtual

Implements i2d::ISceneController.

void icmpstr::CSceneProviderGuiComp::SetIsotropyFactor ( double  factor)
virtual bool icmpstr::CSceneProviderGuiComp::SetScale ( int  scaleMode = SM_SET,
double  value = 1.0 
)
virtual

Implements i2d::ISceneController.

void icmpstr::CSceneProviderGuiComp::zoomChanged ( double  )
signal

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy