/mainwindow.h

https://bitbucket.org/BlueSweatshirt/pixelmend · 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. #include <QMainWindow>
  4. #include "projectmodel.h"
  5. #include "itimelineresponder.h"
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit MainWindow(QWidget *parent = 0);
  14. ~MainWindow();
  15. void setTimeliner(ITimelineResponder* t); // hopefully this is self explanatory haha
  16. void setModer(IModeListResponder* m);
  17. QAction* actionNewSprite;
  18. QAction* actionNewImage;
  19. QAction* actionNewComposite;
  20. QAction* actionRemoveResource;
  21. private slots:
  22. void newSprite();
  23. void newImage();
  24. void newComposite();
  25. void removeResource();
  26. void on_resView_tabCloseRequested(int index);
  27. void on_resList_doubleClicked(const QModelIndex &index);
  28. void on_resView_currentChanged(QWidget *arg1);
  29. void on_playButton_clicked();
  30. void on_frameBackButton_clicked();
  31. void on_frameForwardButton_clicked();
  32. void on_frameFirst_clicked();
  33. void on_frameLast_clicked();
  34. void on_frameSlider_sliderMoved(int position);
  35. void on_modeList_clicked(const QModelIndex &index);
  36. void on_modeAdd_clicked();
  37. void on_modeRemove_clicked();
  38. void on_modeRename_clicked();
  39. void on_editJoints_clicked();
  40. void on_editAnchor_clicked();
  41. void on_editFrameImage_clicked();
  42. void on_resList_customContextMenuRequested(const QPoint &pos);
  43. void on_addFrame_clicked();
  44. void on_removeFrame_clicked();
  45. private:
  46. Ui::MainWindow *ui;
  47. Project* mProject;
  48. ITimelineResponder* mTimeliner;
  49. bool playing;
  50. ModeModel* modeModel;
  51. QWidget* curResTab;
  52. };
  53. #endif // MAINWINDOW_H