dialogselectsegment2.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef DIALOGSELECTSEGMENT2_H
  2. #define DIALOGSELECTSEGMENT2_H
  3. #include <QDialog>
  4. #include <QtGui>
  5. #include "snchelpme.h"
  6. namespace Ui {
  7. class DialogSelectSegment2;
  8. }
  9. class SNCHELPMESHARED_EXPORT DialogSelectSegment2 : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit DialogSelectSegment2(QWidget *parent = 0);
  14. QList<QStringList> getSelectedSegmentsInfo();
  15. QMap<QString,QString> getSaveFileName();
  16. bool eventFilter(QObject *object, QEvent *event);
  17. bool isAppend();
  18. ~DialogSelectSegment2();
  19. private slots:
  20. void on_treeView_clicked(const QModelIndex &index);
  21. void on_allRB_clicked();
  22. void on_cmccRB_clicked();
  23. void on_cutcRB_clicked();
  24. void on_ctccRB_clicked();
  25. void on_selfRB_clicked();
  26. void on_startEdit_textChanged(const QString &arg1);
  27. void on_endEdit_textChanged(const QString &arg1);
  28. void on_pushButtonAppend_clicked();
  29. void on_pushButtonClose_clicked();
  30. void onUpdateMessage(QString mst,int rtCode);
  31. void onSlideValueChanged(int value);
  32. void onSegmentUpdateFinished();
  33. void sortByColumnOffset(int col);
  34. void on_tableWidget_itemSelectionChanged();
  35. void on_pushButtonClear_clicked();
  36. void on_pushButtonPosition_clicked();
  37. void on_startEdit_returnPressed();
  38. private:
  39. Ui::DialogSelectSegment2 *ui;
  40. QStandardItemModel *segmentModel ;
  41. QString currentCity;
  42. QString currentProvince;
  43. bool bAppend ;
  44. QMovie *movie;
  45. QMap<QString,QString> m_filename;
  46. private:
  47. void loadCity();
  48. void fetchSegmentData();
  49. void initTable(int rows);
  50. QLabel *createSampleLabel(double sampleIndex);
  51. QLabel *createNumberLabel(double numberIndex);
  52. void renderViewPort(int value);
  53. void showFetchAnimation();
  54. void setDefaultSegState();
  55. void saveToFile();
  56. };
  57. #endif // DIALOGSELECTSEGMENT2_H