ParaView
pqFileDialogTest.h
Go to the documentation of this file.
1 
2 #include <QPointer>
3 #include <QWidget>
4 class QPushButton;
5 class QLabel;
6 class QComboBox;
7 class QLineEdit;
8 
9 class pqServer;
10 #include "pqTestUtility.h"
11 
12 class pqFileDialogTestUtility : public pqTestUtility
13 {
14  Q_OBJECT
15 public:
18  virtual bool playTests(const QStringList& filenames);
19 public slots:
20  void playTheTests(const QStringList&);
21 
22 protected:
23  void setupFiles();
24  void cleanupFiles();
25 };
26 
27 // our main window
28 class pqFileDialogTestWidget : public QWidget
29 {
30  Q_OBJECT
31 public:
33 
34  pqTestUtility* Tester() { return &this->TestUtility; }
35 
36 public slots:
37  void record();
38  void openFileDialog();
39  void emittedFiles(const QList<QStringList>& files);
40 
41 protected:
42  QComboBox* FileMode;
43  QComboBox* ConnectionMode;
44  QLineEdit* FileFilter;
45  QPushButton* OpenButton;
46  QLabel* EmitLabel;
47  QLabel* ReturnLabel;
48  QPointer<pqServer> Server;
50 };
void playTheTests(const QStringList &)
pqTestUtility * Tester()
pqFileDialogTestUtility TestUtility
virtual bool playTests(const QStringList &filenames)
QPointer< pqServer > Server
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:64