| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #ifndef FORMCUBE_H
- #define FORMCUBE_H
- #include <QtGui>
- #include <QWidget>
- #include <QMovie>
- #include "SNCCube_global.h"
- #include "snccore.h"
- #include "numberlistmodel.h"
- #include "advertisement.h"
- #include "cachewebview.h"
- #include "importproxy.h"
- #include "numbercreate.h"
- #include "numberoutorder.h"
- #include "numberprocessorproxy.h"
- #include "numberexport.h"
- #include "numbercopy.h"
- #include "numbermoveproxy.h"
- #include "dragdroplistview.h"
- #include "imagebutton.h"
- namespace Ui {
- class FormCube;
- }
- class SNCCUBESHARED_EXPORT FormCube : public QWidget
- {
- Q_OBJECT
-
- public:
- explicit FormCube(QWidget *parent = 0);
- ~FormCube();
- private:
- Ui::FormCube *ui;
- NumberListModel *sourceModel;
- NumberListModel *destModel;
- NumberListModel *blackListModel;
- Advertisement *ad;
- QTime execTime;
- QMutex mutex;
- bool threadsFinished;
- NumberMoveDirection moveDirection;
- NumberModelType modelType;
- QMovie *movie;
- CacheWebView *cacheViewSource;
- CacheWebView *cacheViewDest;
- NumberCreate* numberCreate;
- ImportProxy* fileImportProxy;
- NumberOutOrder* outOrder;
- NumberProcessorProxy* numberProcess;
- NumberExport* numberExport;
- NumberCopy* numberCopy;
- NumberMoveProxy* numberMove;
- DragDropListView* ddListView;
- QMenu *menuPopup;
- //QList<ImageButton*> buttons;
- QList<QPushButton*> buttons;
- QMap<QString,QString> page_ads;
- protected:
- void dragEnterEvent(QDragEnterEvent *event);
- private:
- void buildFromFile(NumberBuildType buildType);
- void buildFromSegments(QStringList segments);
- void buildFromExtract();
- void buildFromInputSegment();
- void buildFromImportSegment();
- void buildFromPaste();
- QStringList extractSegmentFromTxtFile(QString fileName);
- void copy();
- void copy2();
- void clearNumberListModel(NumberListModel *model);
- void processNumbers(NumberListModel *model,NumberProcessType processType);
- void moveNumberByValue(NumberListModel *fromModel,NumberListModel *toModel,NumberMoveDirection moveDirection);
- void moveNumberByType(NumberListModel *fromModel,NumberListModel *toModel,NumberMoveDirection moveDirection);
- void moveNumerByAll(NumberListModel *fromModel,NumberListModel *toModel,NumberMoveDirection moveDirection);
- void moveNumberByCombo(NumberListModel *fromModel,NumberListModel *toModel,NumberMoveDirection moveDirection);
- void filterNumberByRegExp(NumberListModel *fromModel,NumberListModel *toModel,QList<QRegExp> regExpList);
- void filterNumberByRange(NumberListModel *fromModel,NumberListModel *toModel,QString start,QString end);
- void exportNumbersByALL(NumberListModel *model);
- void exportNumbersByBatch(NumberListModel *model);
- void exportNumbersByCorp(NumberListModel *model);
- void exportNumbersBySegment(NumberListModel *model);
- void exportNumbersByTimes(NumberListModel *model);
- void exportNumbersByCity(NumberListModel *model);
- QString number2Thousandth(int number);
- void displayStatistics();
- bool checkThreadFinished();
- bool checkModel(NumberListModel *model);
- void initAD();
- void initListView();
- void initButton();
- bool checkCurrentSystemAvailable(int todo);
- bool checkCurrentSystemAvailable(QStringList files);
- bool checkCurrentSystemAvailable(QString content);
- QString getOpenFileName();
- QStringList getOpenFileNames();
- QString getSaveFileNamePrefix();
- QStringList extractNumbers(QString content);
- void createPopmenu();
- protected:
- void resizeEvent(QResizeEvent *);
- private slots:
- void onFileDnD(QStringList files);
- void onNumberProcessed(NumberListModel *model);
- void onNumberCopy(QString content);
- void onNumberBuilt(NumberListModel *model);
- void onBlackListNumberBuilt(NumberListModel *model);
- void onNumberMoved(NumberListModel *fromModel,NumberListModel *toModel);
- void onExportFinished();
- void onJoinSource(QStringList files);
- void onProgressMaxUpdated(int max);
- void onProgressUpdated(int current);
- void onBlackListProgressMaxUpdated(int max);
- void onBlackProgressUpdated(int current);
- void onAdUpdated(QString adText,QString adUrl);
- void onLinkActivated(QString url);
- void onLinkClicked(QUrl url);
- void on_inputnumsegPB_clicked();
- void slot_downbyallPB_clicked();
- void slot_upbyallPB_clicked();
- void slot_upbycomboPB_clicked();
- void slot_downbycomboPB_clicked();
- void on_clearoriPB_clicked();
- void on_cleardestPB_clicked();
- void slot_downbyvaluePB_clicked();
- void slot_downbytypePB_clicked();
- void slot_upbyvaluePB_clicked();
- void slot_upbytypePB_clicked();
- void on_sortPB_clicked();
- void on_noorderPB_clicked();
- void on_removeDuplicatesPB_clicked();
- void on_importSegmentsPB_clicked();
- void on_exportByALLPB_clicked();
- void on_exportByBatchPB_clicked();
- void on_exportByCorpPB_clicked();
- void on_exportBySegmentPB_clicked();
- void on_importFilePB_clicked();
- void on_extractPB_clicked();
- void on_blacklistPB_clicked();
- void on_copyPB_clicked();
- void on_pastePB_clicked();
- void on_sort2PB_clicked();
- void on_dissort2PB_clicked();
- void on_blacklist2PB_clicked();
- void on_removeDuplicate2PB_clicked();
- void on_exportByTimesPB_clicked();
- void on_exportByRegionPB_clicked();
- void on_comparePB_clicked();
- void on_removeNotPhonePB_clicked();
- void on_pushButtonCopy2_clicked();
- void onImportNumFileActionTriggered();
- void onImportSegFileActionTriggered();
- void onPreFileActionTriggered();
- void on_pushButtonHelpme_clicked();
- };
- #endif // FORMCUBE_H
|