- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/QtQuery.hpp
rdae158 r33e801 17 17 #include <Qt/qwidget.h> 18 18 #include "Qt4/QtDialog.hpp" 19 #include "QtQueryList.hpp" 20 19 21 #include "Parameters/Parameter.hpp" 20 #include "QtQueryList.hpp"21 22 22 23 class QHBoxLayout; … … 300 301 }; 301 302 303 class QtDialog::KeyValuePairQtQuery : public QWidget, public QtQuery<KeyValuePair> { 304 Q_OBJECT 305 public: 306 KeyValuePairQtQuery(Parameter<KeyValuePair> &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog); 307 virtual ~KeyValuePairQtQuery(); 308 309 public slots: 310 void onUpdate(const QString&); 311 void onUpdateCombo(int index); 312 313 private: 314 QBoxLayout *parent; 315 QBoxLayout *thisLayout; 316 QLabel *titleLabel; 317 QLineEdit *inputBox; 318 QComboBox *comboBox; 319 Dialog *dialog; 320 }; 321 322 class QtDialog::KeyValuePairsQtQuery : public QWidget, public QtQuery<std::vector<KeyValuePair> >, public QtQueryList<KeyValuePair> { 323 Q_OBJECT 324 public: 325 KeyValuePairsQtQuery(Parameter<std::vector<KeyValuePair> > &, const std::string &_title, const std::string &description, QBoxLayout *_parent,Dialog *_dialog); 326 virtual ~KeyValuePairsQtQuery(); 327 328 virtual void onSubUpdate(); 329 330 public slots: 331 void onAddElement(); 332 void onRemoveElement(); 333 void onElementSelected(); 334 335 private: 336 KeyValuePairQtQuery *subQuery; 337 }; 338 302 339 class QtDialog::StringQtQuery : public QWidget, public QtQuery<std::string> { 303 340 Q_OBJECT … … 411 448 }; 412 449 413 class QtDialog::RandomNumberDistribution_ParametersQtQuery : public QWidget, public QtQuery<RandomNumberDistribution_Parameters> {414 Q_OBJECT415 public:416 RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, const std::string &_title, const std::string &_description,QBoxLayout *,Dialog *);417 virtual ~RandomNumberDistribution_ParametersQtQuery();418 419 public slots:420 void onUpdate();421 422 private:423 QBoxLayout *parent;424 QHBoxLayout *thisLayout;425 QLabel *titleLabel;426 QTextEdit *inputBox;427 QPushButton *okButton;428 Dialog *dialog;429 };430 431 450 #endif /* QTQUERY_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.