/mainwindow.h
C Header | 67 lines | 53 code | 14 blank | 0 comment | 0 complexity | a129e165c2123122a7e31eab2ff7651c MD5 | raw file
1#ifndef MAINWINDOW_H 2#define MAINWINDOW_H 3 4#include <QMainWindow> 5#include "projectmodel.h" 6#include "itimelineresponder.h" 7 8namespace Ui { 9class MainWindow; 10} 11 12class MainWindow : public QMainWindow 13{ 14 Q_OBJECT 15 16public: 17 explicit MainWindow(QWidget *parent = 0); 18 ~MainWindow(); 19 20 void setTimeliner(ITimelineResponder* t); // hopefully this is self explanatory haha 21 void setModer(IModeListResponder* m); 22 23 QAction* actionNewSprite; 24 QAction* actionNewImage; 25 QAction* actionNewComposite; 26 QAction* actionRemoveResource; 27 28private slots: 29 30 void newSprite(); 31 void newImage(); 32 void newComposite(); 33 void removeResource(); 34 35 void on_resView_tabCloseRequested(int index); 36 void on_resList_doubleClicked(const QModelIndex &index); 37 void on_resView_currentChanged(QWidget *arg1); 38 void on_playButton_clicked(); 39 void on_frameBackButton_clicked(); 40 void on_frameForwardButton_clicked(); 41 void on_frameFirst_clicked(); 42 void on_frameLast_clicked(); 43 void on_frameSlider_sliderMoved(int position); 44 void on_modeList_clicked(const QModelIndex &index); 45 void on_modeAdd_clicked(); 46 void on_modeRemove_clicked(); 47 void on_modeRename_clicked(); 48 void on_editJoints_clicked(); 49 void on_editAnchor_clicked(); 50 void on_editFrameImage_clicked(); 51 52 void on_resList_customContextMenuRequested(const QPoint &pos); 53 54 void on_addFrame_clicked(); 55 56 void on_removeFrame_clicked(); 57 58private: 59 Ui::MainWindow *ui; 60 Project* mProject; 61 ITimelineResponder* mTimeliner; 62 bool playing; 63 ModeModel* modeModel; 64 QWidget* curResTab; 65}; 66 67#endif // MAINWINDOW_H