| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef DIALOGSELECTSEGMENT2_H
- #define DIALOGSELECTSEGMENT2_H
- #include <QDialog>
- #include <QtGui>
- #include "snchelpme.h"
- namespace Ui {
- class DialogSelectSegment2;
- }
- class SNCHELPMESHARED_EXPORT DialogSelectSegment2 : public QDialog
- {
- Q_OBJECT
-
- public:
- explicit DialogSelectSegment2(QWidget *parent = 0);
- QList<QStringList> getSelectedSegmentsInfo();
- QMap<QString,QString> getSaveFileName();
- bool eventFilter(QObject *object, QEvent *event);
- bool isAppend();
- ~DialogSelectSegment2();
-
- private slots:
- void on_treeView_clicked(const QModelIndex &index);
- void on_allRB_clicked();
- void on_cmccRB_clicked();
- void on_cutcRB_clicked();
- void on_ctccRB_clicked();
- void on_selfRB_clicked();
- void on_startEdit_textChanged(const QString &arg1);
- void on_endEdit_textChanged(const QString &arg1);
- void on_pushButtonAppend_clicked();
- void on_pushButtonClose_clicked();
- void onUpdateMessage(QString mst,int rtCode);
- void onSlideValueChanged(int value);
- void onSegmentUpdateFinished();
- void sortByColumnOffset(int col);
- void on_tableWidget_itemSelectionChanged();
- void on_pushButtonClear_clicked();
- void on_pushButtonPosition_clicked();
- void on_startEdit_returnPressed();
- private:
- Ui::DialogSelectSegment2 *ui;
- QStandardItemModel *segmentModel ;
- QString currentCity;
- QString currentProvince;
- bool bAppend ;
- QMovie *movie;
- QMap<QString,QString> m_filename;
- private:
- void loadCity();
- void fetchSegmentData();
- void initTable(int rows);
- QLabel *createSampleLabel(double sampleIndex);
- QLabel *createNumberLabel(double numberIndex);
- void renderViewPort(int value);
- void showFetchAnimation();
- void setDefaultSegState();
- void saveToFile();
- };
- #endif // DIALOGSELECTSEGMENT2_H
|