~ubuntu-branches/ubuntu/quantal/checkbox/quantal

« back to all changes in this revision

Viewing changes to qt/frontend/qtfront.h

  • Committer: Daniel Holbach
  • Date: 2012-03-22 08:12:44 UTC
  • mfrom: (40.1.1 ubuntu-checkbox)
  • Revision ID: daniel.holbach@canonical.com-20120322081244-gl37cwl18ioexovv
Tags: 0.13.5
* New upstream release (LP: #960633)
* Automated translation file updates from Launchpad
* qt/frontend/qtfront.ui: If the test text is too long, then it is cut off
  (LP: #950111)
* checkbox_qt/qt_interface.py, qt/frontend/qtfront.cpp,
  qt/frontend/qtfront.h, qt/frontend/qtfront.ui: add a popup comment box
  for each test under the "Run" tab. (LP: #959452)
* checkbox/user_interface.py, qt/frontend/qtfront.cpp,
  qt/frontend/qtfront.h, checkbox_qt/qt_interface.py: Set
  interface.direction to NEXT if all the tests were executed and the user
  either analyzed or submitted the results. (LP: #956329)
* checkbox/user_interface.py, plugins/user_interface.py,
  qt/frontend/qtfront.cpp, qt/frontend/qtfront.h,
  checkbox_qt/qt_interface.py: Use the ui persistent storage to keep some ui
  configuration values. (LP: #937626)
* checkbox/user_interface.py: Avoid using fork() + call() to run a web
  browser. Use Popen instead.(LP: #956307)
* qt/frontend/qtfront.ui, qt/frontend/qtfront.cpp, qt/frontend/qtfront.h:
  Removed welcome tab (LP: #957090)
* Reset default checkbox log level to INFO from DEBUG to make logs less
  confusing and verbose. (LP: #949745) 
* Removed dependency on bluetooth/detect-output on the
  suspend/suspend_advanced job. (LP: #955375)
* jobs/mediacard.txt.in, scripts/removable_storage_test,
  scripts/removable_storage_watcher: Modified removable_storage_watcher and
  removable_storage_test to accept list of busses to watch to resolve
  problems on systems with MMC readers that present themselves as USB
  devices rather than SDIO (LP: #953160)
* jobs/optical.txt.in: Fixed the job descriptions for optical/read and
  optical/cdrom-audio-playback to account for changes in Precise and make
  them less confusing (LP: #954606)
* Linted qt_interface which had a few syntax errors (LP: #949957)
* plugins/apport_prompt.py: Fixed apport integration was producing a trace
  (LP: #959463)
* Bumped revision number to 0.13.5 in trunk
* jobs/keys.txt.in: Fix definition for keys/media-keys test which failed to
  run (LP: #954480)
* Show the UF invalidation warning if all test cases are unchecked from the
  right click menu (LP: #956757)
* checkbox_qt/qt_interface.py, qt/frontend/qtfront.cpp,
  qt/frontend/qtfront.h: Tests now select Yes on PASS status (LP: #954556)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <QWidget>
5
5
#include <QtDBus>
6
6
#include <QCloseEvent>
 
7
#include <QTextEdit>
7
8
 
8
9
#include "treemodel.h"
9
10
 
49
50
    void showEntry(QString text);
50
51
    QVariantMap getTestsToRun();
51
52
    QString getEmailAddress();
52
 
    void showTest(QString purpose, QString steps, QString verification, QString info, QString testType, QString testName, bool enableTestButton);
 
53
    QString getTestComment();
 
54
    void showTest(QString purpose, QString steps, QString verification, QString info, QString comment, QString testType, QString testName, bool enableTestButton);
 
55
    void showTestControls(bool enableTestControls);
 
56
    void setFocusTestYesNo(bool status);
53
57
    QString showInfo(QString text, QStringList options, QString defaultoption);
 
58
    void setUiFlags(QVariantMap flags);
54
59
 
55
60
private slots:
56
61
    void onFullTestsClicked();
62
67
    void onNoTestClicked();
63
68
    void onReviewTestsClicked();
64
69
 
65
 
    void onTabChanged(int index);
66
70
    void onJobItemChanged(QModelIndex index);
67
71
    void updateTestStatus(QString status = QString());
68
72
    void onSelectAllContextMenu(const QPoint& pos);
 
73
    void onClosedFrontend();
69
74
 
70
75
signals:
71
76
    void fullTestsClicked();
77
82
    void previousTestClicked();
78
83
    void submitTestsClicked();
79
84
    void reviewTestsClicked();
80
 
    // when the user clicks welcome during the tests
81
 
    void welcomeScreenRequested();
82
 
    // when the user clicks welcome from the tests selection tree
83
 
    void welcomeClicked();
84
 
    void closedFrontend();
 
85
    void closedFrontend(bool testsFinished);
 
86
    void welcomeCheckboxToggled(bool toogled);
85
87
 
86
88
private:
87
89
    bool registerService();
89
91
    QWidget *m_mainWindow;
90
92
    TreeModel * m_model;
91
93
    QStandardItemModel *m_statusModel;
 
94
    QTextEdit *m_currentTextComment;
92
95
    QMap<QString, QString> m_statusList;
93
96
    QMap <QString, QString> m_titleTestTypes;
94
97
    QMap <QString, QString> m_statusStrings;
95
98
    int m_currentTab;
96
99
    bool m_skipTestMessage;
97
100
    QString m_currentTestName;
 
101
    bool isFirstTimeWelcome;
 
102
    bool m_doneTesting;
98
103
};
99
104
 
100
105
#endif // QTFRONT_H