iRoCS Toolbox  1.1.0
SelectDlg.hh
Go to the documentation of this file.
1 #ifndef SLCTDLG_H
2 #define SLCTDLG_H
3 
4 #ifdef HAVE_CONFIG_H
5 #include <config.hh>
6 #endif
7 
8 #include <QtGui/QMainWindow>
9 #include <QtGui/QWidget>
10 #include <QtGui/QLabel>
11 #include <QtGui/QScrollArea>
12 #include <QtGui/QDialog>
13 
14 #include <vector>
15 #include <map>
16 #include <iostream>
17 #include <sstream>
18 #include <fstream>
19 
20 //#include "defaultParameters.h"
21 
22 
23 class QAction;
24 class QListWidget;
25 class QMenu;
26 class QTextEdit;
27 class QPushButton;
28 class QCheckBox;
29 
30 
31 
32 class SelectDlg : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
37  SelectDlg(QWidget*, std::map<std::string, bool>&, QString = 0);
38 
40  void unselectAll();
41 
42 protected slots:
43  virtual void accept();
44 
45  void toggleAll();
46 
47  void selectOnlyOneVar();
48 
49 private:
50  QPushButton *_okButton;
51  QPushButton *_toggleAllButton;
52 
53  std::map<std::string, QCheckBox*> _checkBoxes;
54  std::map<std::string, bool> *_chooseFields;
55 };
56 
57 #endif
void unselectAll()
void makeOneSelectionDialog()
void selectOnlyOneVar()
virtual void accept()
void toggleAll()
SelectDlg(QWidget *, std::map< std::string, bool > &, QString=0)