dialogselectsegment.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef DIALOGSELECTSEGMENT_H
  2. #define DIALOGSELECTSEGMENT_H
  3. #include "snccore.h"
  4. #include "customlistview.h"
  5. #include "numberreg.h"
  6. #include <QDialog>
  7. #include <QtGui>
  8. #include <QStandardItemModel>
  9. #include <QItemSelection>
  10. namespace Ui {
  11. class DialogSelectSegment;
  12. }
  13. class DialogSelectSegment : public QDialog
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit DialogSelectSegment(QWidget *parent = 0);
  18. ~DialogSelectSegment();
  19. QStringList getSelectedSegment();
  20. private slots:
  21. void on_treeView_clicked(const QModelIndex &index);
  22. void setSelectedLabel();
  23. void on_allRB_clicked();
  24. void on_cmccRB_clicked();
  25. void on_cutcRB_clicked();
  26. void on_ctccRB_clicked();
  27. void on_selfRB_clicked();
  28. void on_startEdit_textChanged(const QString &arg1);
  29. void on_endEdit_textChanged(const QString &arg1);
  30. private:
  31. Ui::DialogSelectSegment *ui;
  32. QStandardItemModel *segmentModel ;
  33. void loadSegment();
  34. CustomListView *customListView;
  35. QString currentCity;
  36. QStringList fetchData();
  37. };
  38. #endif // DIALOGSELECTSEGMENT_H