2
0

PolycodeIDEApp.h 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * PolycodeIDEApp.h
  3. * Polycode
  4. *
  5. * Created by Ivan Safrin on 11/29/10.
  6. * Copyright 2010 Local Projects. All rights reserved.
  7. *
  8. */
  9. #import "PolycodeView.h"
  10. #include "PolycodeGlobals.h"
  11. #include "PolycodeProjectManager.h"
  12. #include "PolycodeEditorManager.h"
  13. #include "Polycode.h"
  14. #include "PolyCocoaCore.h"
  15. #include "PolycodeUI.h"
  16. #include "PolycodeFrame.h"
  17. #include "PolycodeImageEditor.h"
  18. #include "PolycodeFontEditor.h"
  19. #include "PolycodeTextEditor.h"
  20. using namespace Polycode;
  21. class PolycodeIDEApp : public EventDispatcher {
  22. public:
  23. PolycodeIDEApp(PolycodeView *view);
  24. ~PolycodeIDEApp();
  25. void handleEvent(Event *event);
  26. bool Update();
  27. void saveConfigFile();
  28. void loadConfigFile();
  29. // menu commands
  30. void newProject();
  31. void newFile();
  32. void openProject();
  33. void closeProject();
  34. void saveFile();
  35. const static int EVENT_SHOW_MENU = 1;
  36. protected:
  37. PolycodeFrame *frame;
  38. CocoaCore *core;
  39. PolycodeEditorManager *editorManager;
  40. PolycodeProjectManager *projectManager;
  41. };