00001 //LabPlot : OperationsListDialog.h 00002 00003 #ifndef OPERATIONSLISTDIALOG_H 00004 #define OPERATIONSLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class OperationsListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 OperationsListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setOperation(int o) { type->setCurrentItem(o); } 00015 void setType(int o) { setOperation(o); } 00016 void setFirst(int a) {set1ni->setValue(a); } 00017 void setSecond(int b) {set2ni->setValue(b); } 00018 int Apply() { return apply_clicked(); } 00019 private: 00020 KIntNumInput *set1ni, *set2ni; 00021 KComboBox *type; 00022 private slots: 00023 void saveSettings(); 00024 int apply_clicked(); 00025 }; 00026 00027 #endif // OPERATIONSLISTDIALOG_H