Go to the documentation of this file.00001 #ifndef OPERATEFORM_H
00002 #define OPERATEFORM_H
00003
00004 #include "DGVGlobal.h"
00005 #include "ui_operate.h"
00012 class DGV_EXPORT OperateForm : public QDialog
00013 {
00014 Q_OBJECT
00015
00016 public:
00017 OperateForm(QWidget *parent = 0);
00018 virtual ~OperateForm();
00019
00020 inline QComboBox* getComboBoxSource1()
00021 { return ui.cbxDataSource1; }
00022 inline QComboBox* getComboBoxSource2()
00023 { return ui.cbxDataSource2; }
00024 inline QComboBox* getComboBoxOperation()
00025 { return ui.cbxOperation; }
00026 inline bool getOperationType()
00027 { return ui.cbxOperationType->isChecked(); }
00028 inline bool onlyViewedData()
00029 { return ui.cbxOperationType->isChecked(); }
00030 inline bool isAFunction()
00031 { return function; }
00032
00033 public slots:
00034 void updateComboBoxStates(const QString &selectedOp);
00035
00036 protected:
00037 bool function;
00038
00039 Ui::Operation ui;
00040
00041 void setOperations();
00042 void createConnections();
00043 };
00044
00045 #endif // OPERATEFORM_H