bbtkWxGUICommand.h

Go to the documentation of this file.
00001 /*=========================================================================                                                                               
00002   Program:   bbtk
00003   Module:    $RCSfile: bbtkWxGUICommand.h,v $
00004   Language:  C++
00005   Date:      $Date: 2008/10/17 08:18:15 $
00006   Version:   $Revision: 1.5 $
00007 =========================================================================*/
00008 
00009 /* ---------------------------------------------------------------------
00010 
00011 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
00012 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
00013 *
00014 *  This software is governed by the CeCILL-B license under French law and 
00015 *  abiding by the rules of distribution of free software. You can  use, 
00016 *  modify and/ or redistribute the software under the terms of the CeCILL-B 
00017 *  license as circulated by CEA, CNRS and INRIA at the following URL 
00018 *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
00019 *  or in the file LICENSE.txt.
00020 *
00021 *  As a counterpart to the access to the source code and  rights to copy,
00022 *  modify and redistribute granted by the license, users are provided only
00023 *  with a limited warranty  and the software's author,  the holder of the
00024 *  economic rights,  and the successive licensors  have only  limited
00025 *  liability. 
00026 *
00027 *  The fact that you are presently reading this means that you have had
00028 *  knowledge of the CeCILL-B license and that you accept its terms.
00029 * ------------------------------------------------------------------------ */                                                                         
00030 
00031 
00048 #ifdef _USE_WXWIDGETS_
00049 
00050         
00051 #ifndef __bbtkWxGUICommand_h__
00052 #define __bbtkWxGUICommand_h__
00053 
00054 #include "bbtkWx.h"
00055  
00056 
00057 namespace bbtk
00058 {
00060   class BBTK_EXPORT WxGUICommandUser
00061   {
00062   public:
00063     WxGUICommandUser() {}
00064     virtual ~WxGUICommandUser() {}
00066     virtual void WxGUICommandEnter(const std::string& command) {}
00067   };
00068 
00070   class BBTK_EXPORT WxGUICommand : public wxPanel
00071   {
00072   public:
00073     WxGUICommand(wxWindow *parent, WxGUICommandUser* user = 0);
00074     ~WxGUICommand();
00075     
00076     void OnBtnGo(wxCommandEvent& event);
00077     void OnCommandEnter(wxCommandEvent& event);
00078     void OnCommandChar(wxCommandEvent& event);
00079     
00080     void OnBtnInclude(wxCommandEvent& event);
00081     void OnBtnReset(wxCommandEvent& event);
00082     void OnBtnConfig(wxCommandEvent& event);
00083     void OnBtnGraphS(wxCommandEvent& event);
00084     void OnBtnGraphD(wxCommandEvent& event);
00085     void OnBtnHelp(wxCommandEvent& event);
00086     void OnBtnPackageBrowser(wxCommandEvent& event);
00087     
00088     void SendCommand(const std::string& command);
00089   private :
00090     WxGUICommandUser* mUser;
00091     wxComboBox* mwxTextCommand;
00092     //    wxTextAttr* mwxTextCommandAttr;
00093     
00094   public:
00095     enum
00096       {
00097         ID_Text_Command,
00098         ID_Btn_Go,
00099         ID_Btn_Include,
00100         ID_Btn_Reset,
00101         ID_Btn_Config,
00102         ID_Btn_GraphS,
00103         ID_Btn_GraphD,
00104         ID_Btn_Help,
00105         ID_Btn_PackageBrowser
00106       };
00107     
00108     DECLARE_EVENT_TABLE()
00109       
00110       };
00111   
00112   
00113 } // namespace bbtk
00114 
00115 
00116 #endif // __bbtkWxGUICommand_h__
00117 
00118 #endif //_USE_WXWIDGETS_

Generated on Wed Nov 12 11:37:08 2008 for BBTK by  doxygen 1.5.6