Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
iview::CConsoleGui Class Reference

#include <CConsoleGui.h>

Inheritance diagram for iview::CConsoleGui:
iview::CConsoleBase ibase::ICommandsProvider istd::IChangeable istd::IPolymorphic

Public Types

enum  CommandGroupId {
  CGI_ZOOM = ibase::ICommand::GI_USER + 1, CGI_SHAPE_EDITOR, CGI_CALIBRATION, CGI_VIEW_CONTROL,
  CGI_SHAPE_TOOLS
}
 
typedef iview::CConsoleBase BaseClass
 
- Public Types inherited from iview::CConsoleBase
enum  FitMode {
  FM_RESET, FM_BOTH, FM_HORIZONTAL, FM_VERTICAL,
  FM_UNPROP, FM_COVER
}
 Control fitting mode, to fit area of interest (AOI) to display. More...
 
- Public Types inherited from ibase::ICommandsProvider
enum  ChangeFlags { CF_COMMANDS = 0x62b7e8 }
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 

Public Slots

void OnZoomIn ()
 
void OnZoomOut ()
 
void OnZoomReset ()
 
void OnZoomToFit (bool state)
 
void OnFitContentsToView ()
 
void OnPointsNone ()
 
void OnPoinsMove ()
 
void OnPointsAdd ()
 
void OnPointsSub ()
 
void OnShowScrollbars (bool state)
 
void OnShowGrid (bool state)
 
void OnShowRuler (bool state)
 
void OnShowGridInMm (bool state)
 
void OnHScrollbarChanged (int newPos)
 
void OnVScrollbarChanged (int newPos)
 
void UpdateView ()
 

Signals

bool selectionChanged (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state)
 
bool mouseClicked (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr)
 

Public Member Functions

 CConsoleGui (QWidget *parent=NULL)
 
void SetShapeStatusInfo (IShapeStatusInfo *shapeStatusInfoPtr)
 Set status info object for the console shapes. More...
 
bool IsFullScreenMode () const
 
void SetFullScreenMode (bool isFullScreen)
 
void RetranslateGui ()
 
virtual const CViewportGetView () const
 Get access to internal view implementation. More...
 
virtual CViewportGetViewRef ()
 Get access to internal view implementation. More...
 
virtual void UpdateCursorInfo (const QString &infoText)
 
virtual const
ibase::IHierarchicalCommand
GetCommands () const
 Get list of menu commands. More...
 
- Public Member Functions inherited from iview::CConsoleBase
 CConsoleBase (QWidget *parent)
 
bool IsZoomToFit () const
 
void SetZoomToFit (bool state=true)
 
FitMode GetFitMode () const
 
void SetFitMode (FitMode mode)
 
bool IsGridVisible () const
 
void SetGridVisible (bool state=true)
 
bool IsRulerVisible () const
 
void SetRulerVisible (bool state=true)
 
bool IsGridInMm () const
 
void SetGridInMm (bool state=true)
 
bool IsButtonsPanelVisible () const
 
void SetButtonsPanelVisible (bool state=true)
 
bool IsButtonsPanelVertical () const
 
void SetButtonsPanelVertical (bool state=true)
 
bool AreScrollbarsVisible () const
 
void SetScrollbarsVisible (bool state=true)
 
bool AreZoomsVisible () const
 
void SetZoomsVisible (bool state=true)
 
bool IsZoomToFitVisible () const
 
void SetZoomToFitVisible (bool state=true)
 
bool ArePolylineButtonsVisible () const
 
void SetPolylineButtonsVisible (bool state=true)
 
bool AreUserModeButtonsVisible () const
 
void SetUserModeButtonsVisible (bool state=true)
 
bool IsScrollbarsButtonVisible () const
 
void SetScrollbarsButtonVisible (bool state=true)
 
bool IsGridButtonVisible () const
 
void SetGridButtonVisible (bool state=true)
 
bool IsRulerButtonVisible () const
 
void SetRulerButtonVisible (bool state=true)
 
bool IsMmButtonVisible () const
 
void SetMmButtonVisible (bool state=true)
 
bool IsFullScreenAllowed () const
 
void SetFullScreenAllowed (bool allow=true)
 
bool IsBackgroundActive () const
 Check if background object is present and active. More...
 
void UpdateView ()
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state. More...
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

void UpdateZoomInOutState ()
 
void UpdateScrollbarsValues ()
 
virtual bool OnWheelEvent (QWheelEvent *eventPtr)
 
virtual bool OnMouseDoubleClickEvent (QEvent *eventPtr)
 
virtual bool OnKeyPressEvent (QKeyEvent *eventPtr)
 
virtual void UpdateEditModeButtons ()
 Update state of edit mode buttons. More...
 
virtual void UpdateButtonsState ()
 Recalculates enabling flags for buttons. More...
 
virtual void UpdateComponentsPosition ()
 Recalculates position of all components. More...
 
virtual void UpdateCommands ()
 Recalculate menu commands. More...
 
virtual bool OnSelectChange (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state)
 
virtual bool OnViewMouseButton (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr)
 
virtual void OnBoundingBoxChanged ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event. More...
 

Protected Attributes

iview::CViewportm_viewPtr
 

Properties

bool ZoomToFit
 
bool GridVisible
 
bool RulerVisible
 
bool GridInMm
 
bool ShowButtonPanel
 
bool ButtonPanelVertical
 
bool ScrollbarsVisible
 
bool ZoomButtonsVisible
 
bool ZoomToFitButtonsVisible
 
bool PolylineButtonsVisible
 
bool UserModeButtonsVisible
 
bool ScrollbarsButtonVisible
 
bool GridButtonVisible
 
bool RulerButtonVisible
 
bool MmButtonVisible
 
FitMode FitMode
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 

Detailed Description

Definition at line 26 of file CConsoleGui.h.

Member Typedef Documentation

Definition at line 51 of file CConsoleGui.h.

Member Enumeration Documentation

Enumerator
CGI_ZOOM 
CGI_SHAPE_EDITOR 
CGI_CALIBRATION 
CGI_VIEW_CONTROL 
CGI_SHAPE_TOOLS 

Definition at line 53 of file CConsoleGui.h.

Constructor & Destructor Documentation

iview::CConsoleGui::CConsoleGui ( QWidget *  parent = NULL)
explicit

Member Function Documentation

virtual bool iview::CConsoleGui::eventFilter ( QObject *  sourcePtr,
QEvent *  eventPtr 
)
protectedvirtual
virtual const ibase::IHierarchicalCommand* iview::CConsoleGui::GetCommands ( ) const
virtual

Get list of menu commands.

These commands will be integrated in global menu system, independent from actual selected view. For support of normal pull down menu, depth of this tree structure should be at least 3.

Reimplemented from ibase::ICommandsProvider.

const CViewport & iview::CConsoleGui::GetView ( ) const
inlinevirtual

Get access to internal view implementation.

Implements iview::CConsoleBase.

Definition at line 168 of file CConsoleGui.h.

References m_viewPtr, and NULL.

CViewport & iview::CConsoleGui::GetViewRef ( )
inlinevirtual

Get access to internal view implementation.

Implements iview::CConsoleBase.

Definition at line 176 of file CConsoleGui.h.

References m_viewPtr, and NULL.

bool iview::CConsoleGui::IsFullScreenMode ( ) const
bool iview::CConsoleGui::mouseClicked ( const iview::IShapeView view,
const istd::CIndex2d position,
Qt::MouseButton  buttonType,
bool  state,
const iview::IInteractiveShape shapePtr 
)
signal
virtual void iview::CConsoleGui::OnBoundingBoxChanged ( )
protectedvirtual

Implements iview::CConsoleBase.

void iview::CConsoleGui::OnFitContentsToView ( )
slot
void iview::CConsoleGui::OnHScrollbarChanged ( int  newPos)
slot
virtual bool iview::CConsoleGui::OnKeyPressEvent ( QKeyEvent *  eventPtr)
protectedvirtual
virtual bool iview::CConsoleGui::OnMouseDoubleClickEvent ( QEvent *  eventPtr)
protectedvirtual
void iview::CConsoleGui::OnPoinsMove ( )
slot
void iview::CConsoleGui::OnPointsAdd ( )
slot
void iview::CConsoleGui::OnPointsNone ( )
slot
void iview::CConsoleGui::OnPointsSub ( )
slot
virtual bool iview::CConsoleGui::OnSelectChange ( const iview::IShapeView view,
const istd::CIndex2d position,
const iview::IInteractiveShape shape,
bool  state 
)
protectedvirtual

Implements iview::CConsoleBase.

void iview::CConsoleGui::OnShowGrid ( bool  state)
slot
void iview::CConsoleGui::OnShowGridInMm ( bool  state)
slot
void iview::CConsoleGui::OnShowRuler ( bool  state)
slot
void iview::CConsoleGui::OnShowScrollbars ( bool  state)
slot
virtual bool iview::CConsoleGui::OnViewMouseButton ( const iview::IShapeView view,
const istd::CIndex2d position,
Qt::MouseButton  buttonType,
bool  state,
const iview::IInteractiveShape shapePtr 
)
protectedvirtual

Implements iview::CConsoleBase.

void iview::CConsoleGui::OnVScrollbarChanged ( int  newPos)
slot
virtual bool iview::CConsoleGui::OnWheelEvent ( QWheelEvent *  eventPtr)
protectedvirtual
void iview::CConsoleGui::OnZoomIn ( )
slot
void iview::CConsoleGui::OnZoomOut ( )
slot
void iview::CConsoleGui::OnZoomReset ( )
slot
void iview::CConsoleGui::OnZoomToFit ( bool  state)
slot
void iview::CConsoleGui::RetranslateGui ( )
bool iview::CConsoleGui::selectionChanged ( const iview::IShapeView view,
const istd::CIndex2d position,
const iview::IInteractiveShape shape,
bool  state 
)
signal
void iview::CConsoleGui::SetFullScreenMode ( bool  isFullScreen)
void iview::CConsoleGui::SetShapeStatusInfo ( IShapeStatusInfo shapeStatusInfoPtr)

Set status info object for the console shapes.

virtual void iview::CConsoleGui::UpdateButtonsState ( )
protectedvirtual

Recalculates enabling flags for buttons.

Implements iview::CConsoleBase.

virtual void iview::CConsoleGui::UpdateCommands ( )
protectedvirtual

Recalculate menu commands.

Implements iview::CConsoleBase.

virtual void iview::CConsoleGui::UpdateComponentsPosition ( )
protectedvirtual

Recalculates position of all components.

Implements iview::CConsoleBase.

virtual void iview::CConsoleGui::UpdateCursorInfo ( const QString &  infoText)
virtual

Implements iview::CConsoleBase.

virtual void iview::CConsoleGui::UpdateEditModeButtons ( )
protectedvirtual

Update state of edit mode buttons.

Edit mode buttons controls the mode of interaction with objects. For example for polyline nodes: select, move, insert, remove.

See Also
iview::ISelectable::EditMode

Implements iview::CConsoleBase.

void iview::CConsoleGui::UpdateScrollbarsValues ( )
protected
void iview::CConsoleGui::UpdateView ( )
slot
void iview::CConsoleGui::UpdateZoomInOutState ( )
protected

Member Data Documentation

iview::CViewport* iview::CConsoleGui::m_viewPtr
protected

Definition at line 125 of file CConsoleGui.h.

Referenced by GetView(), and GetViewRef().

Property Documentation

bool iview::CConsoleGui::ButtonPanelVertical
readwrite

Definition at line 38 of file CConsoleGui.h.

Definition at line 48 of file CConsoleGui.h.

bool iview::CConsoleGui::GridButtonVisible
readwrite

Definition at line 45 of file CConsoleGui.h.

bool iview::CConsoleGui::GridInMm
readwrite

Definition at line 36 of file CConsoleGui.h.

bool iview::CConsoleGui::GridVisible
readwrite

Definition at line 34 of file CConsoleGui.h.

bool iview::CConsoleGui::MmButtonVisible
readwrite

Definition at line 47 of file CConsoleGui.h.

bool iview::CConsoleGui::PolylineButtonsVisible
readwrite

Definition at line 42 of file CConsoleGui.h.

bool iview::CConsoleGui::RulerButtonVisible
readwrite

Definition at line 46 of file CConsoleGui.h.

bool iview::CConsoleGui::RulerVisible
readwrite

Definition at line 35 of file CConsoleGui.h.

bool iview::CConsoleGui::ScrollbarsButtonVisible
readwrite

Definition at line 44 of file CConsoleGui.h.

bool iview::CConsoleGui::ScrollbarsVisible
readwrite

Definition at line 39 of file CConsoleGui.h.

bool iview::CConsoleGui::ShowButtonPanel
readwrite

Definition at line 37 of file CConsoleGui.h.

bool iview::CConsoleGui::UserModeButtonsVisible
readwrite

Definition at line 43 of file CConsoleGui.h.

bool iview::CConsoleGui::ZoomButtonsVisible
readwrite

Definition at line 40 of file CConsoleGui.h.

bool iview::CConsoleGui::ZoomToFit
readwrite

Definition at line 33 of file CConsoleGui.h.

bool iview::CConsoleGui::ZoomToFitButtonsVisible
readwrite

Definition at line 41 of file CConsoleGui.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy