No Description

mainwindow.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QString>
  4. #include <QModelIndex>
  5. #include <QMainWindow>
  6. #include <QGraphicsPixmapItem>
  7. #include <QGraphicsItemGroup>
  8. #include <QGraphicsSceneMouseEvent>
  9. #include <QAbstractItemModel>
  10. #include "project.h"
  11. #include "map.h"
  12. #include "editor.h"
  13. namespace Ui {
  14. class MainWindow;
  15. }
  16. class MainWindow : public QMainWindow
  17. {
  18. Q_OBJECT
  19. public:
  20. explicit MainWindow(QWidget *parent = 0);
  21. ~MainWindow();
  22. private slots:
  23. void on_action_Open_Project_triggered();
  24. void on_mapList_activated(const QModelIndex &index);
  25. void on_action_Save_Project_triggered();
  26. void undo();
  27. void redo();
  28. void onMapChanged(Map *map);
  29. void on_action_Save_triggered();
  30. void on_tabWidget_2_currentChanged(int index);
  31. void on_action_Exit_triggered();
  32. void on_comboBox_Song_activated(const QString &arg1);
  33. void on_comboBox_Location_activated(const QString &arg1);
  34. void on_comboBox_Visibility_activated(const QString &arg1);
  35. void on_comboBox_Weather_activated(const QString &arg1);
  36. void on_comboBox_Type_activated(const QString &arg1);
  37. void on_comboBox_BattleScene_activated(const QString &arg1);
  38. void on_checkBox_ShowLocation_clicked(bool checked);
  39. void on_tabWidget_currentChanged(int index);
  40. void on_actionUndo_triggered();
  41. void on_actionRedo_triggered();
  42. void on_toolButton_newObject_clicked();
  43. void on_toolButton_deleteObject_clicked();
  44. void updateSelectedObjects();
  45. void on_toolButton_Paint_clicked();
  46. void on_toolButton_Select_clicked();
  47. void on_toolButton_Fill_clicked();
  48. void on_toolButton_Dropper_clicked();
  49. private:
  50. Ui::MainWindow *ui;
  51. Editor *editor = NULL;
  52. void setMap(QString);
  53. void populateMapList();
  54. QString getExistingDirectory(QString);
  55. void openProject(QString dir);
  56. QString getDefaultMap();
  57. void setRecentMap(QString map_name);
  58. void markAllEdited(QAbstractItemModel *model);
  59. void markEdited(QModelIndex index);
  60. void updateMapList();
  61. void displayMapProperties();
  62. void checkToolButtons();
  63. };
  64. #endif // MAINWINDOW_H