Program: bbtk
Module: $RCSfile: bbtkWxGUITextEditor.h,v $
Language: C++
- Date: $Date: 2008/03/21 14:59:39 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/03/25 15:47:54 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
const std::string& GetPageName() const { return mName; }
bool AskFilename() const { return mAskFilename; }
+ void SetAskFilename(bool a) { mAskFilename=a; }
WxTextCtrlGettingKeyEvents* GetTextCtrl() { return mwxInputText; }
void OnButtonNew(wxCommandEvent& event);
void OnButtonOpen(wxCommandEvent& event);
+ void OnButtonClose(wxCommandEvent& event);
void OnButtonSave(wxCommandEvent& event);
+ void OnButtonSaveAs(wxCommandEvent& event);
void OnButtonRun(wxCommandEvent& event);
// void OnButtonQuit(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();
wxButton * mwxButtonNew;
wxButton * mwxButtonOpen;
+ wxButton * mwxButtonClose;
wxButton * mwxButtonSave;
+ wxButton * mwxButtonSaveAs;
wxButton * mwxButtonRun;
// wxButton * mwxButtonQuit;
wxStaticText* mwxPosition;
{
ID_ButtonNew,
ID_ButtonOpen,
+ ID_ButtonClose,
ID_ButtonSave,
+ ID_ButtonSaveAs,
ID_ButtonRun
// ID_ButtonQuit
};