CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxMainFrame.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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 "FxPlatformSettings.h"
20#include "FxString.h"
21
22#include "FxPragmaPush.h"
23
24class CFxStatusBar;
25
26class QMdiArea;
27class QScrollBar;
28
29class CFxUIBaseView;
30class CFxUIDockWidget;
39{
40public:
42 typedef enum _DockWidgetArea
43 {
48 } DockableWidgetArea;
49
51 virtual ~CFxMainFrame();
52
54
58 virtual CFxStatusBar* GetStatusBar() = 0;
59
63 virtual CFxMenuBar* GetMenuBar() = 0;
64
68 virtual FxWId GetWindowHandle() const = 0;
69
74
78 virtual QMdiArea* GetWorkspace() = 0;
79
83 virtual CFxWidget* GetCommandLine() = 0;
84
89
94
98 virtual QScrollBar* GetHorizontalScroller() = 0;
99
103 virtual QScrollBar* GetVerticalScroller() = 0;
104
108 virtual CFxString GetInput() const = 0;
109
113 virtual void SetInput( const CFxString& str ) = 0;
114
118 virtual void ShowPropertiesWindow(bool bShow) = 0;
119
123 virtual void ShowCommandWindow( bool bShow ) = 0;
124
128 virtual void ShowMatrixToolbarWindow(bool bShow) = 0;
129
133 virtual bool IsTextWindowVisible() const = 0;
134
138 virtual void ClearCommandWindow() = 0;
139
143 virtual void ShowTextWindow(bool bShow) = 0;
144
150 virtual CFxUIDockWidget* AddDockableWidget( CFxUIBaseView* pWid, int iInitialArea, int allowedAreas,
151 const CFxString& dockFrameTitle = CFxString(),
152 const CFxString& objectName = CFxString(),
153 int iMinWidth = -1, int iMinHeight = -1,
154 int iMaxWidth = -1, int iMaxHeight = -1,
155 int iInitialWidth = -1, int iInitialHeight = -1,
156 bool bVisibleOnStartup = false, bool bForceVisibleRestart = false,
157 bool bVisibleOnNoDocument = false,
158 const CFxString& customIconResPath = CFxString(),
159 const CFxString& description = CFxString() ) = 0;
160
166 virtual CFxWidget* AddDockableWidget( CFxWidget* pWid, int iInitialArea, int allowedAreas,
167 const CFxString& dockFrameTitle = CFxString(),
168 const CFxString& objectName = CFxString(),
169 int iMinWidth = -1, int iMinHeight = -1,
170 int iMaxWidth = -1, int iMaxHeight = -1,
171 int iInitialWidth = -1, int iInitialHeight = -1,
172 bool bVisibleOnStartup = false,
173 bool bForceVisibleRestart = false,
174 bool bVisibleOnNoDocument = false,
175 const CFxString& customIconResPath = CFxString(),
176 const CFxString& description = CFxString() ) = 0;
177
182
183 virtual bool RemoveDockableWidget( CFxUIDockWidget* pDockingFrame ) = 0;
188 virtual bool RemoveDockableWidget( CFxWidget* pDockingFrame ) = 0;
189
193
202
205 virtual int GetCommandWindowInfo( CFxCommandWindowInfo& info ) const = 0;
206
210 virtual void hideApplicationWindows(bool hide) = 0;
211
215 virtual void SetTitleSuffix( const CFxString& suffix ) = 0;
216
218 {
219 public:
220 virtual bool IsVisible( CFxUIToolbarItem* pToolbarDef ) = 0;
221 virtual void SetVisible( CFxUIToolbarItem* pToolbarDef, bool bVisible ) = 0;
222 virtual void SetVisible( CFxUIToolbarItemCollection* pToolbars, bool show ) = 0;
223 virtual void SaveState( CFxUIToolbarItem* pToolbarDef ) = 0;
224 };
225
226 virtual CFxToolBars* GetToolBars() = 0;
227};
228
230
231#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition DDKERNEL.h:32
DDKERNEL_API CFxMainFrame::CFxToolBars * fxToolBars()
int FxWId
#define CFxWidget
#define CFxContainerWidget
#define CFxMenuBar
virtual void SetVisible(CFxUIToolbarItemCollection *pToolbars, bool show)=0
virtual void SaveState(CFxUIToolbarItem *pToolbarDef)=0
virtual bool IsVisible(CFxUIToolbarItem *pToolbarDef)=0
virtual void SetVisible(CFxUIToolbarItem *pToolbarDef, bool bVisible)=0
virtual CFxWidget * GetCommandLine()=0
virtual void ShowMatrixToolbarWindow(bool bShow)=0
virtual void hideApplicationWindows(bool hide)=0
virtual void ClearCommandWindow()=0
virtual bool RemoveDockableWidget(CFxWidget *pDockingFrame)=0
virtual int GetCommandWindowInfo(CFxCommandWindowInfo &info) const =0
virtual ~CFxMainFrame()
virtual CFxMenuBar * GetMenuBar()=0
virtual CFxString GetInput() const =0
virtual bool IsTextWindowVisible() const =0
virtual QScrollBar * GetHorizontalScroller()=0
virtual FxWId GetWindowHandle() const =0
virtual bool RemoveDockableWidget(CFxUIDockWidget *pDockingFrame)=0
virtual void ShowCommandWindow(bool bShow)=0
virtual void SetInput(const CFxString &str)=0
virtual void ShowTextWindow(bool bShow)=0
static CFxWidget * GetMainFrameWidget()
virtual FxWId GetCommandLineWindowHandle()=0
virtual CFxStatusBar * GetStatusBar()=0
virtual CFxWidget * AddDockableWidget(CFxWidget *pWid, int iInitialArea, int allowedAreas, const CFxString &dockFrameTitle=CFxString(), const CFxString &objectName=CFxString(), int iMinWidth=-1, int iMinHeight=-1, int iMaxWidth=-1, int iMaxHeight=-1, int iInitialWidth=-1, int iInitialHeight=-1, bool bVisibleOnStartup=false, bool bForceVisibleRestart=false, bool bVisibleOnNoDocument=false, const CFxString &customIconResPath=CFxString(), const CFxString &description=CFxString())=0
virtual CFxContainerWidget * GetFxWidget()=0
virtual void SetTitleSuffix(const CFxString &suffix)=0
virtual CFxToolBars * GetToolBars()=0
virtual void ShowPropertiesWindow(bool bShow)=0
virtual CFxUIDockWidget * AddDockableWidget(CFxUIBaseView *pWid, int iInitialArea, int allowedAreas, const CFxString &dockFrameTitle=CFxString(), const CFxString &objectName=CFxString(), int iMinWidth=-1, int iMinHeight=-1, int iMaxWidth=-1, int iMaxHeight=-1, int iInitialWidth=-1, int iInitialHeight=-1, bool bVisibleOnStartup=false, bool bForceVisibleRestart=false, bool bVisibleOnNoDocument=false, const CFxString &customIconResPath=CFxString(), const CFxString &description=CFxString())=0
virtual QScrollBar * GetVerticalScroller()=0
virtual QMdiArea * GetWorkspace()=0
virtual FxWId GetCommandHistoryWindowHandle()=0