00001 #ifndef MANAGEPOSITIONSDIALOG_H 00002 #define MANAGEPOSITIONSDIALOG_H 00003 00004 #include <QtGui> 00005 #include "ui_ManagePositionsDialog.h" 00006 #include "../Models/costpositionmodel.h" 00007 00008 class ManagePositionsDialog : public QDialog, private Ui::ManagePositionsDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 ManagePositionsDialog(CostPositionModel *m, QWidget *parent = 0); 00013 void createControls(); 00014 00015 private slots: 00016 void addPosition(); 00017 void editPosition(); 00018 void enableButton(QModelIndex now); 00019 void deletePosition(); 00020 void isPosition(QModelIndex now); 00021 void ok(); 00022 void cancel(); 00023 private: 00024 void loadPositions(); 00025 CostPositionModel *model; 00026 bool isposition; 00027 }; 00028 00029 #endif