CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUIRibbon.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxString.h"
20#include <IdArrays.h>
21
22#include "FxPragmaPush.h"
23
24//ribbon
25class CFxUIRibbonTab;
28class CFxUIRibbonRow;
36class QIcon;
37
39{
40public:
44 typedef enum _RibbonItemType
45 {
63
64protected:
65 virtual ~CFxUIRibbonItem(){};
66
67public:
73 virtual const CFxString& GetUID() const = 0;
74
80 virtual RibbonItemType GetType() const = 0;
81};
82
83template< class T >
85{
86public:
88
97 virtual bool InsertAfter( const T* pPosition, T* pItem ) = 0;
98
106 virtual bool Add( T* pItem ) = 0;
107
115 virtual bool Remove( T* pItem ) = 0;
116
122 virtual unsigned int GetCount() const = 0;
123
131 virtual T* GetItem( unsigned int index ) = 0;
132
138 virtual void Clear( bool bDeleteItems ) = 0;
139
147 virtual bool Has( const T* pItem ) const = 0;
148
156 virtual bool HasControl( const CFxString& strUID ) = 0;
157};
158
168
170{
171protected:
172 ~CFxUIRibbonTab() override{};
173
174public:
175
180 {
184
190 virtual const CFxString& GetName() const = 0;
191
197 virtual void SetName( const CFxString& name ) = 0;
198
204 virtual const CFxString& GetText() const = 0;
205
211 virtual void SetText( const CFxString& text ) = 0;
212
219
226
232 virtual void SetContextualDisplayType( ContextualDisplayType contextualType ) = 0;
233};
234
236{
237protected:
238 ~CFxUIRibbonPanel() override{};
239
240public:
246 virtual const CFxString& GetName() const = 0;
247
253 virtual void SetName( const CFxString& name ) = 0;
254
260 virtual const CFxString& GetText() const = 0;
261
267 virtual void SetText( const CFxString& text ) = 0;
268
274 virtual bool IsHiddenInEditor() const = 0;
275
281 virtual void SetHiddenInEditor( bool isHidden ) = 0;
282
288 virtual const CFxString& GetKeyTip() const = 0;
289
295 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
296
303};
304
305
307{
308protected:
309 ~CFxUIRibbonRow() override{};
310
311public:
318};
319
321{
322protected:
324
325public:
330 {
337
342 {
350
355 {
361
366 {
371
376 {
381
382
387 {
398 virtual const CFxString& GetText() const = 0;
399
405 virtual void SetText( const CFxString& text ) = 0;
406
412 virtual const CFxString& GetClassID() const = 0;
413
419 virtual void SetClassID( const CFxString& classID ) = 0;
420};
421
423{
424protected:
426
427public:
434
440 virtual void SetButtonStyle( RibbonButtonStyle buttonStyle ) = 0;
441
447 virtual const CFxString& GetKeyTip() const = 0;
448
454 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
455
462
468 virtual void SetDefinition( CFxUIItemDefinition* def ) = 0;
469};
470
472{
473protected:
475
476public:
482 virtual const CFxString& GetKeyTip() const = 0;
483
489 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
490
496 virtual QIcon& GetIcon( int iSize ) = 0;
497
504 virtual QIcon& GetDarkIcon( int iSize ) = 0;
505
512 virtual QIcon& GetLightIcon( int iSize ) = 0;
513
522 virtual const CFxString& GetDarkIconInfo( CFxString& iconResource ) const = 0;
523
531 virtual void SetDarkIconInfo( const CFxString& iconName, const CFxString& iconResource ) = 0;
532
541 virtual const CFxString& GetLightIconInfo( CFxString& iconResource ) const = 0;
542
550 virtual void SetLightIconInfo( const CFxString& iconName, const CFxString& iconResource ) = 0;
551
558
564 virtual void SetBehavior( RibbonSplitButtonBehavior behavior ) = 0;
565
572
578 virtual void SetListStyle( RibbonSplitButtonListStyle listStyle ) = 0;
579
586
592 virtual void SetButtonStyle( RibbonButtonStyle buttonStyle ) = 0;
593
599 virtual const bool IsGrouping() const = 0;
600
606 virtual void SetGrouping( const bool grouping ) = 0;
607
613};
614
615
617{
618protected:
620
621public:
622};
623
625{
626protected:
628
629public:
635 virtual void SetSeparatorStyle( RibbonSeparatorStyle seperatorStyle ) = 0;
636
643};
644
646{
647protected:
648 ~CFxUIRibbonButton() override{};
649
650public:
656 virtual const CFxString& GetKeyTip() const = 0;
657
663 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
664
671
677 virtual void SetButtonStyle( RibbonButtonStyle buttonStyle ) = 0;
678};
679
681{
682protected:
684
685public:
691 virtual const CFxString& GetKeyTip() const = 0;
692
698 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
699
706
712 virtual void SetButtonStyle( RibbonButtonStyle buttonStyle ) = 0;
713};
714
715//UID Id Text KeyTip DisplayMode
717{
718protected:
720
721public:
727 virtual const CFxString& GetKeyTip() const = 0;
728
734 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
735
742
748 virtual void SetDisplayMode( const RibbonGalleryControlDisplayMode displayMode ) = 0;
749};
750
752{
753protected:
755
756public:
762 virtual const CFxString& GetResizeStyle() const = 0;
763
769 virtual void SetResizeStyle( const CFxString& resizeStyle ) = 0;
770
776 virtual const int GetResizePriority() = 0;
777
783 virtual void SetResizePriority( const int resizePriority ) = 0;
784
790 virtual const bool& GetTopJustify() = 0;
791
797 virtual void SetTopJustify( const bool& topJustify ) = 0;
798
805};
806
808{
809protected:
811
812public:
818 virtual const CFxString& GetKeyTip() const = 0;
819
825 virtual void SetKeyTip( const CFxString& keyTip ) = 0;
826
833
839 virtual void SetButtonStyle( RibbonButtonStyle buttonStyle ) = 0;
840
847
853 virtual void SetListStyle( RibbonDataBoundDropDownListStyle listStyle ) = 0;
854};
855
856
858{
859protected:
861
862public:
868 virtual const CFxString& GetName() const = 0;
869
875 virtual void SetName( const CFxString& name ) = 0;
876
883};
884
886{
887
888protected:
890
891public:
892
898 virtual const CFxUIRibbonQuickAccessBar* GetParent() const = 0;
899
906
913
919 virtual void SetDefinition( CFxUIItemDefinition* pDefinition ) = 0;
920
926 virtual bool GetIsWorkspace() const = 0;
927
933 virtual bool IsVisible() const = 0;
934
940 virtual void SetIsVisible( bool isVisible ) = 0;
941
947 virtual const bool IsEnabled() const = 0;
948
954 virtual void SetEnabled( const bool value ) = 0;
955};
956
958{
959protected:
961
962public:
968 virtual const CFxString& GetName() const = 0;
969
975 virtual void SetName( const CFxString& name ) = 0;
976
983 virtual const CFxUIRibbonSystemMenuItem* GetParent() const = 0;
984
991
999
1006 virtual void SetDefinition( CFxUIItemDefinition* pDefinition ) = 0;
1007
1014 virtual bool IsSeparator() const = 0;
1015};
1016
1018{
1019protected:
1021
1022public:
1028 virtual const CFxString& GetName() const = 0;
1029
1035 virtual void SetName( const CFxString& name ) = 0;
1036
1043 virtual const CFxUIRibbonHelpMenuItem* GetParent() const = 0;
1044
1052
1059 virtual void SetDefinition( CFxUIItemDefinition* pDefinition ) = 0;
1060
1067 virtual bool IsSeparator() const = 0;
1068};
1069
1070#include "FxPragmaPop.h"
CFxUIRibbonItemCollection< CFxUIRibbonRowItem > CFxUIRibbonSplitButtonItemCollection
Definition: FxUIRibbon.h:163
CFxUIRibbonItemCollection< CFxUIRibbonSystemMenuItem > CFxUIRibbonSystemMenuItemCollection
Definition: FxUIRibbon.h:165
CFxUIRibbonItemCollection< CFxUIRibbonRowItem > CFxUIRibbonRowItemCollection
Definition: FxUIRibbon.h:162
CFxUIRibbonItemCollection< CFxUIRibbonPanel > CFxUIRibbonPanelCollection
Definition: FxUIRibbon.h:160
CFxUIRibbonItemCollection< CFxUIRibbonQuickAccessBar > CFxUIRibbonQuickAccessBarCollection
Definition: FxUIRibbon.h:164
CFxUIRibbonItemCollection< CFxUIRibbonQuickAccessBarItem > CFxUIRibbonQuickAccessBarItemCollection
Definition: FxUIRibbon.h:167
CFxUIRibbonItemCollection< CFxUIRibbonTab > CFxUIRibbonTabCollection
Definition: FxUIRibbon.h:159
CFxUIRibbonItemCollection< CFxUIRibbonHelpMenuItem > CFxUIRibbonHelpMenuItemCollection
Definition: FxUIRibbon.h:166
CFxUIRibbonItemCollection< CFxUIRibbonRow > CFxUIRibbonRowCollection
Definition: FxUIRibbon.h:161
virtual const CFxString & GetKeyTip() const =0
~CFxUIRibbonButton() override
Definition: FxUIRibbon.h:648
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual RibbonButtonStyle GetButtonStyle() const =0
virtual void SetButtonStyle(RibbonButtonStyle buttonStyle)=0
virtual void SetDefinition(CFxUIItemDefinition *def)=0
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual void SetButtonStyle(RibbonButtonStyle buttonStyle)=0
virtual RibbonButtonStyle GetButtonStyle() const =0
virtual CFxUIItemDefinition * GetDefinition()=0
virtual const CFxString & GetKeyTip() const =0
~CFxUIRibbonCommandButton() override
Definition: FxUIRibbon.h:425
~CFxUIRibbonControl() override
Definition: FxUIRibbon.h:619
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual const CFxString & GetKeyTip() const =0
virtual void SetListStyle(RibbonDataBoundDropDownListStyle listStyle)=0
~CFxUIRibbonDataBoundDropDown() override
Definition: FxUIRibbon.h:810
virtual RibbonDataBoundDropDownListStyle GetListStyle() const =0
virtual RibbonButtonStyle GetButtonStyle() const =0
virtual void SetButtonStyle(RibbonButtonStyle buttonStyle)=0
virtual const CFxUIRibbonHelpMenuItem * GetParent() const =0
virtual ~CFxUIRibbonHelpMenuItem()
Definition: FxUIRibbon.h:1020
virtual const CFxString & GetName() const =0
virtual CFxUIItemDefinition * GetDefinition()=0
virtual void SetDefinition(CFxUIItemDefinition *pDefinition)=0
virtual void SetName(const CFxString &name)=0
virtual bool IsSeparator() const =0
virtual ~CFxUIRibbonItemCollection()
Definition: FxUIRibbon.h:87
virtual unsigned int GetCount() const =0
virtual bool Add(T *pItem)=0
virtual T * GetItem(unsigned int index)=0
virtual bool Remove(T *pItem)=0
virtual void Clear(bool bDeleteItems)=0
virtual bool HasControl(const CFxString &strUID)=0
virtual bool InsertAfter(const T *pPosition, T *pItem)=0
virtual bool Has(const T *pItem) const =0
virtual RibbonItemType GetType() const =0
virtual const CFxString & GetUID() const =0
enum CFxUIRibbonItem::_RibbonItemType RibbonItemType
virtual ~CFxUIRibbonItem()
Definition: FxUIRibbon.h:65
@ eRibbonDataBoundDropDown
Definition: FxUIRibbon.h:57
@ eRibbonQuickAccessBarItem
Definition: FxUIRibbon.h:60
virtual void SetText(const CFxString &text)=0
virtual const CFxString & GetText() const =0
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual const CFxString & GetName() const =0
virtual bool IsHiddenInEditor() const =0
virtual CFxUIRibbonRowCollection * GetChildren()=0
virtual void SetHiddenInEditor(bool isHidden)=0
~CFxUIRibbonPanel() override
Definition: FxUIRibbon.h:238
virtual void SetName(const CFxString &name)=0
virtual const CFxString & GetKeyTip() const =0
virtual CFxUIRibbonQuickAccessBarItemCollection * GetChildren()=0
virtual void SetName(const CFxString &name)=0
virtual const CFxString & GetName() const =0
~CFxUIRibbonQuickAccessBar() override
Definition: FxUIRibbon.h:860
virtual void SetDefinition(CFxUIItemDefinition *pDefinition)=0
virtual ~CFxUIRibbonQuickAccessBarItem()
Definition: FxUIRibbon.h:889
virtual void SetIsVisible(bool isVisible)=0
virtual bool GetIsWorkspace() const =0
virtual CFxUIRibbonQuickAccessBarItemCollection * GetChildren()=0
virtual const CFxUIRibbonQuickAccessBar * GetParent() const =0
virtual CFxUIItemDefinition * GetDefinition()=0
virtual void SetEnabled(const bool value)=0
virtual const bool IsEnabled() const =0
virtual bool IsVisible() const =0
virtual CFxUIRibbonRowItemCollection * GetChildren()=0
~CFxUIRibbonRow() override
Definition: FxUIRibbon.h:309
virtual void SetText(const CFxString &text)=0
enum CFxUIRibbonRowItem::_RibbonDataBoundDropDownListStyle RibbonDataBoundDropDownListStyle
~CFxUIRibbonRowItem() override
Definition: FxUIRibbon.h:323
virtual void SetClassID(const CFxString &classID)=0
@ eSplitButtonListStyleDescriptive
Definition: FxUIRibbon.h:359
@ eSplitButtonBehaviorDropDownFollow
Definition: FxUIRibbon.h:347
@ eSplitButtonBehaviorSplitFollowStaticText
Definition: FxUIRibbon.h:346
@ eSplitButtonBehaviorSplitFollow
Definition: FxUIRibbon.h:345
@ eSplitButtonBehaviorDropDownNoFollow
Definition: FxUIRibbon.h:348
@ eSplitButtonBehaviorSplitNoFollow
Definition: FxUIRibbon.h:344
enum CFxUIRibbonRowItem::_RibbonSplitButtonBehavior RibbonSplitButtonBehavior
enum CFxUIRibbonRowItem::_RibbonSeparatorStyle RibbonSeparatorStyle
@ eGalleryControlDisplayModeWindow
Definition: FxUIRibbon.h:379
@ eGalleryControlDisplayModeUnknown
Definition: FxUIRibbon.h:377
@ eGalleryControlDisplayModeCombobox
Definition: FxUIRibbon.h:378
enum CFxUIRibbonRowItem::_RibbonSplitButtonListStyle RibbonSplitButtonListStyle
virtual const CFxString & GetText() const =0
virtual const CFxString & GetClassID() const =0
enum CFxUIRibbonRowItem::_RibbonButtonStyle RibbonButtonStyle
enum CFxUIRibbonRowItem::_RibbonGalleryControlDisplayMode RibbonGalleryControlDisplayMode
@ eDataBoundDropDownListStyleIconText
Definition: FxUIRibbon.h:390
@ eDataBoundDropDownListStyleDescriptive
Definition: FxUIRibbon.h:391
@ eDataBoundDropDownListStyleIcon
Definition: FxUIRibbon.h:389
@ eDataBoundDropDownListStyleUnknown
Definition: FxUIRibbon.h:388
virtual const int GetResizePriority()=0
virtual void SetResizePriority(const int resizePriority)=0
virtual const CFxString & GetResizeStyle() const =0
virtual CFxUIRibbonRowCollection * GetChildren()=0
virtual void SetTopJustify(const bool &topJustify)=0
virtual const bool & GetTopJustify()=0
virtual void SetResizeStyle(const CFxString &resizeStyle)=0
~CFxUIRibbonRowPanel() override
Definition: FxUIRibbon.h:754
~CFxUIRibbonSeparator() override
Definition: FxUIRibbon.h:627
virtual void SetSeparatorStyle(RibbonSeparatorStyle seperatorStyle)=0
virtual RibbonSeparatorStyle GetSeparatorStyle() const =0
virtual void SetLightIconInfo(const CFxString &iconName, const CFxString &iconResource)=0
virtual RibbonSplitButtonListStyle GetListStyle() const =0
virtual void SetListStyle(RibbonSplitButtonListStyle listStyle)=0
virtual const CFxString & GetDarkIconInfo(CFxString &iconResource) const =0
virtual QIcon & GetLightIcon(int iSize)=0
virtual const bool IsGrouping() const =0
~CFxUIRibbonSplitButton() override
Definition: FxUIRibbon.h:474
virtual const CFxString & GetKeyTip() const =0
virtual CFxUIRibbonSplitButtonItemCollection * GetChildren()=0
virtual RibbonButtonStyle GetButtonStyle() const =0
virtual void SetBehavior(RibbonSplitButtonBehavior behavior)=0
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual QIcon & GetDarkIcon(int iSize)=0
virtual RibbonSplitButtonBehavior GetBehavior() const =0
virtual void SetDarkIconInfo(const CFxString &iconName, const CFxString &iconResource)=0
virtual void SetButtonStyle(RibbonButtonStyle buttonStyle)=0
virtual void SetGrouping(const bool grouping)=0
virtual QIcon & GetIcon(int iSize)=0
virtual const CFxString & GetLightIconInfo(CFxString &iconResource) const =0
virtual void SetName(const CFxString &name)=0
virtual bool IsSeparator() const =0
virtual void SetDefinition(CFxUIItemDefinition *pDefinition)=0
virtual const CFxString & GetName() const =0
virtual const CFxUIRibbonSystemMenuItem * GetParent() const =0
virtual CFxUIRibbonSystemMenuItemCollection * GetChildren()=0
virtual ~CFxUIRibbonSystemMenuItem()
Definition: FxUIRibbon.h:960
virtual CFxUIItemDefinition * GetDefinition()=0
virtual ContextualDisplayType GetContextualDisplayType()=0
@ eContextualDisplayTypeFull
Definition: FxUIRibbon.h:181
@ eContextualDisplayTypeMerged
Definition: FxUIRibbon.h:182
enum CFxUIRibbonTab::_ContextualDisplayType ContextualDisplayType
virtual const CFxString & GetName() const =0
virtual const CFxString & GetText() const =0
virtual void SetName(const CFxString &name)=0
virtual CFxUIRibbonPanelCollection * GetChildren()=0
~CFxUIRibbonTab() override
Definition: FxUIRibbon.h:172
virtual void SetContextualDisplayType(ContextualDisplayType contextualType)=0
virtual void SetText(const CFxString &text)=0
~CFxUIRibbonToggleButton() override
Definition: FxUIRibbon.h:683
virtual void SetKeyTip(const CFxString &keyTip)=0
virtual const CFxString & GetKeyTip() const =0
virtual void SetButtonStyle(RibbonButtonStyle buttonStyle)=0
virtual RibbonButtonStyle GetButtonStyle() const =0
GLuint index
Definition: gles2_ext.h:265
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei const GLfloat * value
Definition: gles2_ext.h:302