CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxDialog.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 "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22#include "FxString.h"
23
24#include <QtWidgets/QDialog>
25
26class CFxDialogImpl;
27
33class DDKERNEL_API CFxDialog : public QDialog
34{
35 Q_OBJECT
36
37public:
41 static void applySubtitleWidgetStyle(QWidget *dialog, ...);
42
43 CFxDialog( QWidget * parent = 0, bool bFixed = true, Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint );
44 virtual ~CFxDialog();
45
49 void show();
50
55
59 virtual int exec();
60
64 virtual unsigned int GetHelpId() const;
65
69 void OpenHelp();
70
74 virtual void accept();
75
79 virtual void reject();
80
84 virtual void done ( int r );
85
89 virtual void BeginEditorCommand();
90
94 virtual void CancelEditorCommand();
95
99 virtual void CompleteEditorCommand();
100
104 static bool IsDialogRunning();
105
110
111public Q_SLOTS:
112 virtual void Help();
113
114protected:
119
120protected:
124 //void keyPressEvent( QKeyEvent * event );
125
131 void showEvent(QShowEvent *) override;
132
138 void hideEvent(QHideEvent *) override;
139
147 bool event ( QEvent * ev ) override;
148 bool nativeEvent( const QByteArray& eventType, void *msg, long *result ) override;
149
150private:
151 void restoreSavedGeometry( const CFxString & sClassName );
152
153private:
154 CFxDialogImpl* m_pImpl;
155
156};
157
158#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
virtual ~CFxDialog()
static bool IsDialogRunning()
void OpenHelp()
void setCurrentSizeToMinMax()
virtual void BeginEditorCommand()
CFxDialog(QWidget *parent=0, bool bFixed=true, Qt::WindowFlags f=Qt::WindowTitleHint|Qt::WindowSystemMenuHint|Qt::WindowCloseButtonHint)
virtual void CompleteEditorCommand()
bool event(QEvent *ev) override
virtual void reject()
static void applySubtitleWidgetStyle(QWidget *dialog,...)
void hideEvent(QHideEvent *) override
virtual void accept()
CFxString GetGroupName()
void show()
virtual unsigned int GetHelpId() const
bool nativeEvent(const QByteArray &eventType, void *msg, long *result) override
virtual int exec()
void showEvent(QShowEvent *) override
virtual void Help()
void adjustSize()
virtual void done(int r)
virtual void CancelEditorCommand()
GLfloat f
Definition: gles2_ext.h:564