scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ExtensibleFileDialog.h
Go to the documentation of this file.
1 
11 
29 #ifndef EXTENSIBLE_FILE_DIALOG_H
30 #define EXTENSIBLE_FILE_DIALOG_H
31 
32 #include <QFileDialog>
33 #include <QPushButton>
34 
36 
44 class ExtensibleFileDialog : public QFileDialog
45 {
46  Q_OBJECT
47 
48  public:
50 
55  ExtensibleFileDialog(QWidget *parent=0, bool extended = true, Qt::WindowFlags flags=0);
57  void setExtensionWidget(QWidget *extension);
58 
60  bool isExtendable(){return d_extension != NULL;};
61  bool isExtended(){return d_extension_toggle->isChecked();};
62  void setExtended(bool extended){ d_extension_toggle->setChecked(extended);};
63 
64  protected:
66  QPushButton *d_extension_toggle;
67 
68  private slots:
70  void resize(bool extension_on);
71 
72  private:
74  QWidget *d_extension;
77 };
78 
79 #endif // ifndef EXTENSIBLE_FILE_DIALOG_H
ExtensibleFileDialog::d_extension_row
int d_extension_row
The layout row (of the assumed QGridLayout) used for extensions.
Definition: ExtensibleFileDialog.h:76
ExtensibleFileDialog::isExtendable
bool isExtendable()
Tells weather the dialog has a valid extension widget.
Definition: ExtensibleFileDialog.h:60
ExtensibleFileDialog::setExtensionWidget
void setExtensionWidget(QWidget *extension)
Set the extension widget to be displayed when the user presses the toggle button.
Definition: ExtensibleFileDialog.cpp:66
ExtensibleFileDialog::d_extension
QWidget * d_extension
The extension widget.
Definition: ExtensibleFileDialog.h:74
ExtensibleFileDialog::ExtensibleFileDialog
ExtensibleFileDialog(QWidget *parent=0, bool extended=true, Qt::WindowFlags flags=0)
Constructor.
Definition: ExtensibleFileDialog.cpp:33
ExtensibleFileDialog::d_extension_toggle
QPushButton * d_extension_toggle
Button for toggling display of extension on/off.
Definition: ExtensibleFileDialog.h:62
ExtensibleFileDialog::setExtended
void setExtended(bool extended)
Definition: ExtensibleFileDialog.h:62
python-sipcmd.flags
list flags
Definition: python-sipcmd.py:61
ExtensibleFileDialog
QFileDialog plus generic extension support.
Definition: ExtensibleFileDialog.h:45
ExtensibleFileDialog::resize
void resize(bool extension_on)
Resize to make/take space for the extension widget.
Definition: ExtensibleFileDialog.cpp:91
ExtensibleFileDialog::isExtended
bool isExtended()
Definition: ExtensibleFileDialog.h:61