X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUITextEditor.h;h=2bc6efb78e0796465add621fd53be07db8288f74;hb=f993478d7df1d9688c4ab93c617688c84cf2d424;hp=0f08e15c7b09d2c5aa3ee2bb5e3fce3fa3c06325;hpb=fc399c5aab38ad24ea5d57552701411b4d805181;p=bbtk.git diff --git a/kernel/src/bbtkWxGUITextEditor.h b/kernel/src/bbtkWxGUITextEditor.h index 0f08e15..2bc6efb 100644 --- a/kernel/src/bbtkWxGUITextEditor.h +++ b/kernel/src/bbtkWxGUITextEditor.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUITextEditor.h,v $ Language: C++ - Date: $Date: 2008/03/21 14:59:39 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/05/14 12:32:26 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -73,6 +73,7 @@ namespace bbtk const std::string& GetPageName() const { return mName; } bool AskFilename() const { return mAskFilename; } + void SetAskFilename(bool a) { mAskFilename=a; } WxTextCtrlGettingKeyEvents* GetTextCtrl() { return mwxInputText; } @@ -113,17 +114,17 @@ namespace bbtk void OnKeyDown(wxKeyEvent& event); void OnKeyUp(wxKeyEvent& event); - void OnButtonNew(wxCommandEvent& event); - void OnButtonOpen(wxCommandEvent& event); - void OnButtonSave(wxCommandEvent& event); - void OnButtonRun(wxCommandEvent& event); - // void OnButtonQuit(wxCommandEvent& event); + void OnToolLeftClick(wxCommandEvent& event); + void OnToolRightClick(wxCommandEvent& event); + void OnPageClose(wxAuiNotebookEvent& evt); void New(); void Open(); void Open(const std::string& filename); - void Save(); + void SaveCurrentPage(); + bool CloseCurrentPage(); + bool CloseAllPages(); // void Run(); // void Quit(); @@ -143,14 +144,8 @@ namespace bbtk wxAuiManager m_mgr; wxAuiNotebook* mwxNotebook; - // Interpreter* mInterpreter; - // wxSplitterWindow* mwxSplit; - - wxButton * mwxButtonNew; - wxButton * mwxButtonOpen; - wxButton * mwxButtonSave; - wxButton * mwxButtonRun; - // wxButton * mwxButtonQuit; + wxToolBar* mwxToolBar; + wxStaticText* mwxPosition; std::string mFileNameFilter; @@ -161,7 +156,9 @@ namespace bbtk { ID_ButtonNew, ID_ButtonOpen, + ID_ButtonClose, ID_ButtonSave, + ID_ButtonSaveAs, ID_ButtonRun // ID_ButtonQuit };