CFx SDK Documentation  2023 SP0
FxUIDialog.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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 
23 class CFxUIBaseView;
24 
30 {
31 public:
35  enum DialogCode { Rejected, Accepted };
36 
37 public:
40 
43 
47  virtual void setupUi() = 0;
48 
56  virtual unsigned int GetHelpId() const;
57 
63  virtual const char* GetHelpURL() const;
64 
71 
80  virtual int exec( bool bEnableViewOperation = false );
81 
85  void hide();
86 
92  void setVisible( bool bVisible );
93 
99  void setResult( int iResult );
100 
106  int result() const;
107 
112 
118  void setWindowTitle( const CFxUIString& strTitle );
119 
123  void openHelp();
124 
130  void setFloating( bool floating );
131 
137  virtual void showEvent( CFxUIShowEvent* event );
138 
144  virtual void hideEvent( CFxUIHideEvent* event );
145 
149  virtual void accept();
150 
154  virtual void reject();
155 
161  virtual void done( int r );
162 
168  CFxUISignal<void( void )>& accepted();
169 
175  CFxUISignal<void( void )>& rejected();
176 
183 
184  //...
185 };
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
virtual void accept()
virtual void showEvent(CFxUIShowEvent *event)
virtual int exec(bool bEnableViewOperation=false)
virtual unsigned int GetHelpId() const
void setWindowTitle(const CFxUIString &strTitle)
void setVisible(bool bVisible)
int result() const
virtual void setupUi()=0
virtual void reject()
CFxUISignal< void(int)> & finished()
CFxUIBaseView * GetLayout()
CFxUIString windowTitle()
CFxUISignal< void(void)> & rejected()
void setFloating(bool floating)
virtual void done(int r)
virtual void hideEvent(CFxUIHideEvent *event)
CFxUISignal< void(void)> & accepted()
virtual const char * GetHelpURL() const
void openHelp()
void setResult(int iResult)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)