CFx SDK Documentation  2020SP3
FxUIDialog.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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 };
CFxUIDialog::CFxUIDialog
CFxUIDialog()
CFxUIDialog
Definition: FxUIDialog.h:30
CFxUIDialog::GetHelpURL
virtual const char * GetHelpURL() const
CFxUIBaseView
Definition: FxUIBaseView.h:30
CFxUIDialog::exec
virtual int exec(bool bEnableViewOperation=false)
CFxUIDialog::GetLayout
CFxUIBaseView * GetLayout()
CFxUISignal
Definition: FxUISignal.h:74
CFxUIDialog::GetHelpId
virtual unsigned int GetHelpId() const
CFxUIDialog::setVisible
void setVisible(bool bVisible)
CFxUIDialog::reject
virtual void reject()
CFxUIShowEvent
Definition: FxUIEvent.h:57
CFxUIDialog::windowTitle
CFxUIString windowTitle()
CFxUIDialog::rejected
CFxUISignal< void(void)> & rejected()
FxUIEvent.h
CFxUIDialog::result
int result() const
CFxUIDialog::~CFxUIDialog
~CFxUIDialog()
CFxUIDialog::showEvent
virtual void showEvent(CFxUIShowEvent *event)
CFxUIString
QString CFxUIString
Definition: FxUIObject.h:46
CFxUIDialog::hideEvent
virtual void hideEvent(CFxUIHideEvent *event)
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxUIDialog::hide
void hide()
CFxUIDialog::setResult
void setResult(int iResult)
CFxUIDialog::done
virtual void done(int r)
CFxUIDialog::setupUi
virtual void setupUi()=0
CFxUIDialog::finished
CFxUISignal< void(int)> & finished()
CFxUIDialog::openHelp
void openHelp()
CFxUIDialog::accept
virtual void accept()
CFxUIDialog::Rejected
@ Rejected
Definition: FxUIDialog.h:35
CFxUIObject
Definition: FxUIObject.h:101
CFxUIDialog::setWindowTitle
void setWindowTitle(const CFxUIString &strTitle)
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
FxUIObject.h
CFxUIDialog::DialogCode
DialogCode
Definition: FxUIDialog.h:35
FxUISignal.h
CFxUIHideEvent
Definition: FxUIEvent.h:73
CFxUIDialog::setFloating
void setFloating(bool floating)
CFxUIDialog::accepted
CFxUISignal< void(void)> & accepted()