PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/mainwindow.h

http://nscow.googlecode.com/
C++ Header | 49 lines | 38 code | 11 blank | 0 comment | 0 complexity | 5a9aa72ae2b3212701127d2bac283cad MD5 | raw file
 1#ifndef MAINWINDOW_H
 2#define MAINWINDOW_H
 3
 4#include <QMainWindow>
 5#include <QImage>
 6#include "renderthread.h"
 7
 8namespace Ui {
 9    class MainWindow;
10}
11
12class MainWindow : public QMainWindow {
13    Q_OBJECT
14public:
15    MainWindow(QWidget *parent = 0);
16    ~MainWindow();
17
18public slots:
19    void updatePixmap(const QImage &image);
20
21protected:
22    void changeEvent(QEvent *e);
23
24private slots:
25    void run();
26    void resetUi();
27    void on_actionAbout_triggered();
28
29    void on_nuSlider_valueChanged(int);
30    void on_dtSlider_valueChanged(int);
31    void on_dxSlider_valueChanged(int);
32    void on_eSlider_valueChanged(int);
33    void on_rToolSlider_valueChanged(int);
34    void on_magToolSlider_valueChanged(int);
35    void on_dcSlider_valueChanged(int);
36
37    void on_actionAdd_Force_triggered(bool);
38    void on_actionAdd_Dye_triggered(bool);
39    void on_actionOutward_Force_triggered(bool);
40    void on_actionInward_Force_triggered(bool);
41
42private:
43    Ui::MainWindow *ui;
44    RenderThread *thread;
45
46    void resetTools();
47};
48
49#endif // MAINWINDOW_H