CFx SDK Documentation  2022 SP0
FxDialog.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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 
31 class DDKERNEL_API CFxDialog : public QDialog
32 {
33  Q_OBJECT
34 
35 public:
39  static void applySubtitleWidgetStyle(QWidget *dialog, ...);
40 
41  CFxDialog( QWidget * parent = 0, bool bFixed = true, Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint );
42  virtual ~CFxDialog();
43 
47  void show();
48 
53 
57  virtual int exec();
58 
62  virtual unsigned int GetHelpId() const;
63 
67  void OpenHelp();
68 
72  virtual void accept();
73 
77  virtual void reject();
78 
82  virtual void done ( int r );
83 
87  virtual void BeginEditorCommand();
88 
92  virtual void CancelEditorCommand();
93 
97  virtual void CompleteEditorCommand();
98 
102  static bool IsDialogRunning();
103 
104 public Q_SLOTS:
105  virtual void Help();
106 
107 protected:
112 
113 protected:
117  //void keyPressEvent( QKeyEvent * event );
118 
124  virtual void showEvent(QShowEvent *);
125 
131  virtual void hideEvent(QHideEvent *);
132 
140  virtual bool event ( QEvent * ev );
141 
142 private:
143  void restoreSavedGeometry( const CFxString & sClassName );
144 
145  bool m_bInsideExec;
146  bool m_bFixedSize;
147  QCursor m_PreviousCursor;
148 };
149 
150 #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()
virtual void hideEvent(QHideEvent *)
virtual void showEvent(QShowEvent *)
virtual void reject()
static void applySubtitleWidgetStyle(QWidget *dialog,...)
virtual void accept()
CFxString GetGroupName()
void show()
virtual unsigned int GetHelpId() const
virtual int exec()
virtual bool event(QEvent *ev)
virtual void Help()
virtual void done(int r)
virtual void CancelEditorCommand()
GLfloat f
Definition: gles2_ext.h:564