CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIDialog.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 "FxUIObject.h"
20#include "FxUISignal.h"
21#include "FxUIEvent.h"
22
23class CFxUIBaseView;
24class CFxUIColor;
26class CFxUIPoint;
27
31
33{
34public:
39
41 {
42 Left=0x03,
44 Right=0x05,
45 Top=0x30,
47 Bottom=0x50,
48 Center=0x11,
49
52 };
53
54public:
57
60
64 virtual void setupUi() = 0;
65
73 virtual unsigned int GetHelpId() const;
74
80 virtual const char* GetHelpURL() const;
81
88
97 virtual int exec( bool bEnableViewOperation = false );
98
102 void hide();
103
110
117
124
132 void move( int x, int y );
133
140
147
151 void raise();
152
161 virtual void resizeEvent( CFxUIResizeEvent* event );
162
168 void setBorderWidth( float width );
169
176
182 void setCornerRadius( float radius );
183
186 virtual void show( );
187
193 void setDragging( const bool& bDragging );
194
200 void setMask( const CFxUIPainterPath& path );
201
207 void setSizeGripEnabled( bool bEnable );
208
214 void setMinimumWidth( int iWidth );
215
221 void setMinimumHeight( int iHeight );
222
228 void setMaximumHeight( int iHeight );
229
235 void setMaximumWidth( int iWidth );
236
242 void setVisible( bool bVisible );
243
244 bool isVisible();
245
251 void setResult( int iResult );
252
258 int result() const;
259
264
270 void setWindowTitle( const CFxUIString& strTitle );
271
275 void openHelp();
276
282 void setFloating( bool floating );
283
294 void setGeometry( int x, int y, int width, int height, int gravity = Gravity::Left | Gravity::Top );
295
301 virtual void showEvent( CFxUIShowEvent* event );
302
308 virtual void hideEvent( CFxUIHideEvent* event );
309
313 virtual void accept();
314
318 virtual void reject();
319
325 virtual void done( int r );
326
334 void resize( int w, int h );
335
340
345
352
359
366
367 //...
368};
#define COMMONUI_API
CFxString CFxUIString
CFxUIPoint mapToGlobal(CFxUIPoint &pos)
void resize(int w, int h)
CFxUIBaseView * GetLayout()
virtual void accept()
int maximumWidth()
virtual void showEvent(CFxUIShowEvent *event)
void setMaximumHeight(int iHeight)
virtual int exec(bool bEnableViewOperation=false)
void adjustDialogPosition()
virtual unsigned int GetHelpId() const
void move(int x, int y)
void adjustSize()
void setWindowTitle(const CFxUIString &strTitle)
int minimumWidth()
void setVisible(bool bVisible)
void setGeometry(int x, int y, int width, int height, int gravity=Gravity::Left|Gravity::Top)
int result() const
@ CenterVertical
Vertically gravitate to the center between upper and lower window borders.
Definition FxUIDialog.h:46
@ Left
Horizontally gravitate to left window border.
Definition FxUIDialog.h:42
@ HorizontalMask
Bit mask for extracting horizontal gravity.
Definition FxUIDialog.h:50
@ Top
Vertically gravitate to upper window border.
Definition FxUIDialog.h:45
@ Center
Gravitate to the center of the window.
Definition FxUIDialog.h:48
@ Right
Horizontally gravitate to right window border.
Definition FxUIDialog.h:44
@ VerticalMask
Bit mask for extracting vertical gravity.
Definition FxUIDialog.h:51
@ Bottom
Vertically gravitate to lower window border.
Definition FxUIDialog.h:47
@ CenterHorizontal
Horizontally gravitate to the center between left and right window borders.
Definition FxUIDialog.h:43
int minimumHeight()
virtual void setupUi()=0
void setBorderColor(CFxUIColor &color)
virtual void reject()
bool isVisible()
virtual const char * GetHelpURL() const
void setDragging(const bool &bDragging)
void setMask(const CFxUIPainterPath &path)
void setBorderWidth(float width)
void setCornerRadius(float radius)
void setMaximumWidth(int iWidth)
CFxUISignal< void(void)> & rejected()
CFxUIString windowTitle()
CFxUISignal< void(int)> & finished()
void setFloating(bool floating)
virtual void done(int r)
void setMinimumWidth(int iWidth)
virtual void show()
virtual void hideEvent(CFxUIHideEvent *event)
int maximumHeight()
CFxUISignal< void(void)> & accepted()
void setSizeGripEnabled(bool bEnable)
virtual void resizeEvent(CFxUIResizeEvent *event)
void setMinimumHeight(int iHeight)
void openHelp()
void setResult(int iResult)
void raise()
GLfloat GLfloat GLfloat GLfloat w
Definition gles2_ext.h:320
GLint GLenum GLsizei width
Definition gles2_ext.h:110
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLfloat x
Definition gles2_ext.h:314
GLint GLenum GLsizei GLsizei height
Definition gles2_ext.h:110
GLfloat GLfloat y
Definition gles2_ext.h:316