CFx SDK Documentation  2020SP3
FxDialog.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 "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"
FxPragmaPop.h
CFxDialog::event
virtual bool event(QEvent *ev)
CFxDialog::OpenHelp
void OpenHelp()
CFxDialog::hideEvent
virtual void hideEvent(QHideEvent *)
CFxDialog::applySubtitleWidgetStyle
static void applySubtitleWidgetStyle(QWidget *dialog,...)
DDKERNEL.h
FxString.h
CFxDialog
Definition: FxDialog.h:32
CFxString
Definition: FxString.h:48
CFxDialog::BeginEditorCommand
virtual void BeginEditorCommand()
CFxDialog::showEvent
virtual void showEvent(QShowEvent *)
CFxDialog::GetHelpId
virtual unsigned int GetHelpId() const
CFxDialog::reject
virtual void reject()
CFxDialog::CFxDialog
CFxDialog(QWidget *parent=0, bool bFixed=true, Qt::WindowFlags f=Qt::WindowTitleHint|Qt::WindowSystemMenuHint|Qt::WindowCloseButtonHint)
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxDialog::done
virtual void done(int r)
CFxDialog::Help
virtual void Help()
CFxDialog::GetGroupName
CFxString GetGroupName()
CFxDialog::show
void show()
CFxDialog::~CFxDialog
virtual ~CFxDialog()
CFxDialog::CompleteEditorCommand
virtual void CompleteEditorCommand()
f
GLfloat f
Definition: gles2_ext.h:564
CFxDialog::accept
virtual void accept()
CFxDialog::IsDialogRunning
static bool IsDialogRunning()
CFxDialog::exec
virtual int exec()
FxPragmaPush.h
CFxDialog::setCurrentSizeToMinMax
void setCurrentSizeToMinMax()
CFxDialog::CancelEditorCommand
virtual void CancelEditorCommand()