CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUIDialog.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 "FxUIObject.h"
20#include "FxUISignal.h"
21#include "FxUIEvent.h"
22
23class CFxUIBaseView;
24
30{
31public:
35 enum DialogCode { Rejected, Accepted };
36
37public:
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
94 bool isVisible();
95
101 void setResult( int iResult );
102
108 int result() const;
109
114
120 void setWindowTitle( const CFxUIString& strTitle );
121
125 void openHelp();
126
132 void setFloating( bool floating );
133
139 virtual void showEvent( CFxUIShowEvent* event );
140
146 virtual void hideEvent( CFxUIHideEvent* event );
147
151 virtual void accept();
152
156 virtual void reject();
157
163 virtual void done( int r );
164
171
178
185
186 //...
187};
#define COMMONUI_API
QString CFxUIString
Definition: FxUIObject.h:48
CFxUIBaseView * GetLayout()
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()
bool isVisible()
virtual const char * GetHelpURL() const
CFxUISignal< void(void)> & rejected()
CFxUIString windowTitle()
CFxUISignal< void(int)> & finished()
void setFloating(bool floating)
virtual void done(int r)
virtual void hideEvent(CFxUIHideEvent *event)
CFxUISignal< void(void)> & accepted()
void openHelp()
void setResult(int iResult)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)