|
ACF $AcfVersion:0$
|
#include <CConsoleGui.h>
Classes | |
| class | UiResourcesManager |
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... | |
| enum | BlockFlags { BF_COMMANDS = 1 , BF_VIEW = 2 , BF_ALL = 0xffff } |
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... | |
| typedef QMultiMap< QByteArray, QVariant > | ChangeInfoMap |
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 | OnActivateDistanceMeasureTool (bool state) |
| void | OnActivatePointMeasureTool (bool state) |
| void | OnShowGridInMm (bool state) |
| void | OnHScrollbarChanged (int newPos) |
| void | OnVScrollbarChanged (int newPos) |
| void | UpdateView () |
| void | OnStopFullScreen () |
| void | OnBoundingBoxChangedSlot () |
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) |
| void | OnCloseSignal () |
Public Member Functions | |
| CConsoleGui (QWidget *parent=NULL) | |
| void | SetExtraEditModeButtons (iview::IEditModeButtons *otherModeButtonsPtr) |
| void | SetShapeStatusInfo (IShapeStatusInfo *shapeStatusInfoPtr) |
| Set status info object for the console shapes. | |
| bool | IsFullScreenMode () const |
| void | SetFullScreenMode (bool isFullScreen) |
| void | RetranslateGui () |
| void | UpdateDesign () |
| virtual const CViewport & | GetView () const override |
| Get access to internal view implementation. | |
| virtual CViewport & | GetViewRef () override |
| Get access to internal view implementation. | |
| virtual void | UpdateCursorInfo (const QString &infoText) override |
| virtual const ibase::IHierarchicalCommand * | GetCommands () const override |
| Get list of menu commands. | |
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 | IsDistanceMeasureToolActive () const |
| void | SetDistanceMeasureToolActive (bool state=true) |
| bool | IsPointMeasureToolActive () const |
| void | SetPointMeasureToolActive (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 | IsDistanceMeasureButtonVisible () const |
| void | SetDistanceMeasureButtonVisible (bool state=true) |
| bool | IsPointMeasureButtonVisible () const |
| void | SetPointMeasureButtonVisible (bool state=true) |
| bool | IsFullScreenAllowed () const |
| void | SetFullScreenAllowed (bool allow=true) |
| bool | IsBackgroundActive () const |
| Check if background object is present and active. | |
| void | UpdateView () |
| void | SetUpdateBlocked (bool isBlocked, int flags=BF_ALL) |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Public Member Functions inherited from istd::IChangeable | |
| virtual int | GetSupportedOperations () const |
| Get set of flags for supported operations. | |
| virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
| Copy this object from another one. | |
| virtual bool | IsEqual (const IChangeable &object) const |
| Compare this object with another object. | |
| virtual istd::TUniqueInterfacePtr< istd::IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
| Make a copy of this object. | |
| virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
| Reset data to its default state. | |
| virtual void | BeginChanges (const ChangeSet &changeSet) |
| Starts the change transaction. | |
| virtual void | EndChanges (const ChangeSet &changeSet) |
| Ends the change transaction. | |
| virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
| Starts group of changes. | |
| virtual void | EndChangeGroup (const ChangeSet &changeSet) |
| Ends group of changes. | |
Protected Member Functions | |
| virtual void | UpdateZoomInOutState () |
| virtual void | UpdateScrollbarsValues () |
| virtual bool | OnKeyPressed (int key, Qt::KeyboardModifiers modifiers) |
| virtual bool | OnWheelEvent (QWheelEvent *eventPtr) |
| virtual bool | OnMouseDoubleClickEvent (QEvent *eventPtr) |
| virtual bool | OnKeyPressEvent (QKeyEvent *eventPtr) |
| virtual void | UpdateEditModeButtons (int mode) override |
| Called after edit mode got changed. | |
| virtual void | UpdateButtonsState () override |
| Recalculates enabling flags for buttons. | |
| virtual void | UpdateComponentsPosition () override |
| Recalculates position of all components. | |
| virtual void | UpdateCommands () override |
| Recalculate menu commands. | |
| virtual bool | OnSelectChange (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state) override |
| virtual bool | OnViewMouseButton (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr) override |
| virtual void | OnBoundingBoxChanged () override |
| virtual bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
| bool | ConnectSignalSlots () |
| void | CreateNavigator () |
Protected Member Functions inherited from istd::IChangeable | |
| virtual void | OnBeginChanges () |
| Callback function for begin change event. | |
| virtual void | OnEndChanges (const ChangeSet &changeSet) |
| Callback function for end change event. | |
Properties | |
| bool | ZoomToFit |
| bool | GridVisible |
| bool | RulerVisible |
| bool | DistanceMeasureToolActive |
| bool | PointMeasureToolActive |
| 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 ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
Definition at line 28 of file CConsoleGui.h.
Definition at line 55 of file CConsoleGui.h.
| Enumerator | |
|---|---|
| CGI_ZOOM | |
| CGI_SHAPE_EDITOR | |
| CGI_CALIBRATION | |
| CGI_VIEW_CONTROL | |
| CGI_SHAPE_TOOLS | |
Definition at line 57 of file CConsoleGui.h.
|
explicit |
|
protected |
|
protected |
|
overrideprotectedvirtual |
|
overridevirtual |
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.
|
inlineoverridevirtual |
Get access to internal view implementation.
Implements iview::CConsoleBase.
Definition at line 205 of file CConsoleGui.h.
|
inlineoverridevirtual |
Get access to internal view implementation.
Implements iview::CConsoleBase.
Definition at line 213 of file CConsoleGui.h.
| bool iview::CConsoleGui::IsFullScreenMode | ( | ) | const |
|
signal |
|
slot |
|
slot |
|
overrideprotectedvirtual |
Implements iview::CConsoleBase.
Referenced by OnBoundingBoxChangedSlot().
|
inlineslot |
Definition at line 109 of file CConsoleGui.h.
References OnBoundingBoxChanged().
|
signal |
|
slot |
|
slot |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
slot |
|
slot |
|
slot |
|
slot |
|
overrideprotectedvirtual |
Implements iview::CConsoleBase.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
overrideprotectedvirtual |
Implements iview::CConsoleBase.
|
slot |
|
protectedvirtual |
|
slot |
|
slot |
|
slot |
|
slot |
| void iview::CConsoleGui::RetranslateGui | ( | ) |
|
signal |
| void iview::CConsoleGui::SetExtraEditModeButtons | ( | iview::IEditModeButtons * | otherModeButtonsPtr | ) |
| void iview::CConsoleGui::SetFullScreenMode | ( | bool | isFullScreen | ) |
| void iview::CConsoleGui::SetShapeStatusInfo | ( | IShapeStatusInfo * | shapeStatusInfoPtr | ) |
Set status info object for the console shapes.
|
overrideprotectedvirtual |
Recalculates enabling flags for buttons.
Implements iview::CConsoleBase.
|
overrideprotectedvirtual |
Recalculate menu commands.
Implements iview::CConsoleBase.
|
overrideprotectedvirtual |
Recalculates position of all components.
Implements iview::CConsoleBase.
|
overridevirtual |
Implements iview::CConsoleBase.
| void iview::CConsoleGui::UpdateDesign | ( | ) |
|
overrideprotectedvirtual |
Called after edit mode got changed.
Implements iview::IEditModeButtons.
|
protectedvirtual |
|
slot |
|
protectedvirtual |
|
protected |
Definition at line 161 of file CConsoleGui.h.
|
protected |
Definition at line 169 of file CConsoleGui.h.
|
protected |
Definition at line 173 of file CConsoleGui.h.
|
protected |
Definition at line 175 of file CConsoleGui.h.
|
protected |
Definition at line 171 of file CConsoleGui.h.
|
protected |
Definition at line 164 of file CConsoleGui.h.
|
protected |
Definition at line 192 of file CConsoleGui.h.
|
protected |
Definition at line 193 of file CConsoleGui.h.
|
protected |
Definition at line 160 of file CConsoleGui.h.
|
protected |
Definition at line 165 of file CConsoleGui.h.
|
protected |
Definition at line 190 of file CConsoleGui.h.
|
protected |
Definition at line 174 of file CConsoleGui.h.
|
protected |
Definition at line 185 of file CConsoleGui.h.
|
protected |
Definition at line 184 of file CConsoleGui.h.
|
protected |
Definition at line 183 of file CConsoleGui.h.
|
protected |
Definition at line 186 of file CConsoleGui.h.
|
protected |
Definition at line 168 of file CConsoleGui.h.
|
protected |
Definition at line 172 of file CConsoleGui.h.
|
protected |
Definition at line 195 of file CConsoleGui.h.
|
protected |
Definition at line 176 of file CConsoleGui.h.
|
protected |
Definition at line 188 of file CConsoleGui.h.
|
protected |
Definition at line 197 of file CConsoleGui.h.
|
protected |
Definition at line 163 of file CConsoleGui.h.
|
protected |
Definition at line 154 of file CConsoleGui.h.
Referenced by GetView(), and GetViewRef().
|
protected |
Definition at line 194 of file CConsoleGui.h.
|
protected |
Definition at line 178 of file CConsoleGui.h.
|
protected |
Definition at line 179 of file CConsoleGui.h.
|
protected |
Definition at line 180 of file CConsoleGui.h.
|
protected |
Definition at line 181 of file CConsoleGui.h.
|
readwrite |
Definition at line 42 of file CConsoleGui.h.
|
readwrite |
Definition at line 38 of file CConsoleGui.h.
|
readwrite |
Definition at line 52 of file CConsoleGui.h.
|
readwrite |
Definition at line 49 of file CConsoleGui.h.
|
readwrite |
Definition at line 40 of file CConsoleGui.h.
|
readwrite |
Definition at line 36 of file CConsoleGui.h.
|
readwrite |
Definition at line 51 of file CConsoleGui.h.
|
readwrite |
Definition at line 39 of file CConsoleGui.h.
|
readwrite |
Definition at line 46 of file CConsoleGui.h.
|
readwrite |
Definition at line 50 of file CConsoleGui.h.
|
readwrite |
Definition at line 37 of file CConsoleGui.h.
|
readwrite |
Definition at line 48 of file CConsoleGui.h.
|
readwrite |
Definition at line 43 of file CConsoleGui.h.
|
readwrite |
Definition at line 41 of file CConsoleGui.h.
|
readwrite |
Definition at line 47 of file CConsoleGui.h.
|
readwrite |
Definition at line 44 of file CConsoleGui.h.
|
readwrite |
Definition at line 35 of file CConsoleGui.h.
|
readwrite |
Definition at line 45 of file CConsoleGui.h.