PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/safeFatPrinter/trunk/src/asktheuser.h

http://cupsfilter.googlecode.com/
C++ Header | 75 lines | 63 code | 9 blank | 3 comment | 0 complexity | 047dd706c77200dedfc29efc395771c1 MD5 | raw file
 1#ifndef ASKTHEUSER_H
 2#define ASKTHEUSER_H
 3#include <QDebug>
 4#include <QtGui/QDialog>
 5#include <QDate>
 6#include <QCompleter>
 7#include <QStringListModel>
 8#include <QMessageBox>
 9#include <QRegExp>
10#include <QDataWidgetMapper>
11#include <QStandardItemModel>
12#include <QRegExp>
13#include <QLineEdit>
14#include <QTimer>
15#include <QDateEdit>
16#include <QSignalMapper>
17#include <QPushButton>
18 #include <QTimer>
19
20
21
22namespace Ui {
23    class askTheUser;
24}
25
26class askTheUser : public QDialog {
27    Q_OBJECT
28public:
29    askTheUser(QWidget *parent = 0);
30    ~askTheUser();
31    void setViewMode (int work_mode);
32    void setModel (QStandardItemModel * model);
33signals:
34    void isMBExist(QString mb);
35    void save2base(QString msg);
36    void printOverSidePage(int RowId);
37    void printWithTemplate(int RowId);
38public slots:
39    //void MBExist(bool state);
40    void extenedAnswerMB(int RowId);
41    void parserDocData(QString doc_data);
42    void confirmMB(QString &mb);
43
44    void setMBCompleter(QStringList &cmp);
45    void selectWorkPage();
46    void selectInfoPage();
47    void enablePrintButton();
48private slots:
49    void checkMBdublicat();
50    // ???????? ??? ???? ?? ??????
51    void isFileldNotEmpty(int sender_id);
52protected:
53    void changeEvent(QEvent *e);
54
55    void createConnections();
56    void enableInputFields(bool state);
57
58protected slots:
59  void accept();
60  //void reject();
61
62private:
63    Ui::askTheUser *m_ui;
64     QTimer *timer;
65    QDataWidgetMapper *mapper;
66    int currentMode;
67    QString  currentMB;
68    bool isDocChecked; // ?????? ????????? ?????????? ?? ?? ?? ???? ??????
69    QLineEdit documentStatus;
70    QCompleter *MBcompleter;
71    QStandardItemModel * mainModel;
72    QSignalMapper *signalMapper;
73};
74
75#endif // ASKTHEUSER_H