OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / tests / manual / gdbdebugger / gui / mainwindow.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
8 **
9 **
10 ** GNU Lesser General Public License Usage
11 **
12 ** This file may be used under the terms of the GNU Lesser General Public
13 ** License version 2.1 as published by the Free Software Foundation and
14 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
15 ** Please review the following information to ensure the GNU Lesser General
16 ** Public License version 2.1 requirements will be met:
17 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 **
19 ** In addition, as a special exception, Nokia gives you certain additional
20 ** rights. These rights are described in the Nokia Qt LGPL Exception
21 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
22 **
23 ** Other Usage
24 **
25 ** Alternatively, this file may be used in accordance with the terms and
26 ** conditions contained in a signed written agreement between you and Nokia.
27 **
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
30 **
31 **************************************************************************/
32
33 #ifndef MAINWINDOW_H
34 #define MAINWINDOW_H
35
36 #include <QtGui/QMainWindow>
37
38 QT_BEGIN_NAMESPACE
39 class QThread;
40
41 namespace Ui{
42     class MainWindowClass;
43 }
44 QT_END_NAMESPACE
45
46 namespace Foo {
47 class MainWindow : public QMainWindow
48 {
49     Q_OBJECT
50
51 public:
52     MainWindow(QWidget *parent = 0);
53     ~MainWindow();
54
55 private:
56     Ui::MainWindowClass *ui;
57     void simpleBP(int c, const QString &x);
58     void complexBP(int *c, QString x);
59
60 private slots:
61     void on_actionLongString_triggered();
62     void on_actionScopes_triggered();
63     void on_actionAssert_triggered();
64     void on_actionForeach_triggered();
65     void on_actionExtTypes_triggered();
66     void on_actionDumperBP_triggered();
67     void on_actionUncaughtException_triggered();
68     void on_actionException_triggered();
69     void on_actionThread_triggered();
70     void on_actionIncr_watch_triggered();
71     void on_actionDialog_triggered();
72     void on_actionCrash_triggered();
73     void on_actionSimpleBP_triggered();
74
75     void on_actionStdTypes_triggered();
76
77     void on_actionVariousQtTypes_triggered();
78
79 private:
80     void terminateThread();
81     int m_w;
82     const char *m_wc;
83     QString m_wqs;
84     QThread *m_thread1, *m_thread2;
85     QThread *m_fastThread;
86 };
87
88 }
89 #endif // MAINWINDOW_H