#ifndef EE_TOOLS_CODEEDITOR_HPP #define EE_TOOLS_CODEEDITOR_HPP #include class App { public: ~App(); void init( const std::string& file = "" ); void loadFileFromPath( const std::string& path, UICodeEditor* codeEditor = NULL ); void setAppTitle( const std::string& title ); void openFileDialog(); void findText( String text = "" ); void closeApp(); void mainLoop(); void findTextMessageBox(); UICodeEditor* createCodeEditor(); UISplitter* createEditorWithSplitter( Node* parent ); UITabWidget* tabWidgetFromEditor( UICodeEditor* editor ); std::pair createCodeEditorInTabWidget( UITabWidget* tabWidget ); UITabWidget* createEditorWithTabWidget( UISplitter* splitter ); void splitEditor( const UIOrientation& orientation ); protected: EE::Window::Window* mWindow{NULL}; UISceneNode* mUISceneNode{NULL}; UICodeEditor* mCurEditor{NULL}; Console* mConsole{NULL}; std::string mWindowTitle{"eepp - Code Editor"}; UIMessageBox* mMsgBox{NULL}; String mLastSearch; UILayout* mBaseLayout{NULL}; void onFileDropped( String file ); void onTextDropped( String text ); void updateEditorTitle( UICodeEditor* editor ); std::string titleFromEditor( UICodeEditor* editor ); bool onTabCloseRequestCallback( EE::Window::Window* ); bool onCloseRequestCallback( EE::Window::Window* ); void closeCurrrentTab(); }; #endif // EE_TOOLS_CODEEDITOR_HPP