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 
13 class pqFileDialogTestUtility : public pqTestUtility
14 {
15  Q_OBJECT
16 public:
19  virtual bool playTests(const QStringList& filenames);
20 public slots:
21  void playTheTests(const QStringList&);
22 
23 protected:
24  void setupFiles();
25  void cleanupFiles();
26 };
27 
28 // our main window
29 class pqFileDialogTestWidget : public QWidget
30 {
31  Q_OBJECT
32 public:
34 
35  pqTestUtility* Tester() { return &this->TestUtility; }
36 
37 public slots:
38  void record();
39  void openFileDialog();
40  void emittedFiles(const QList<QStringList>& files);
41 
42 protected:
43  QComboBox* FileMode;
44  QComboBox* ConnectionMode;
45  QLineEdit* FileFilter;
46  QPushButton* OpenButton;
47  QLabel* EmitLabel;
48  QLabel* ReturnLabel;
49  QPointer<pqServer> Server;
51 };
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:62