Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (43 sloc) 1.37 KB
* Copyright (C) 2009, Alexander Stigsen,
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
#ifndef __INPUTPANEL_H__
#define __INPUTPANEL_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/panel.h>
#include <wx/textctrl.h>
#include <wx/stattext.h>
#include <wx/string.h>
// pre-definitions
class EditorFrame;
class InputPanel : public wxPanel {
InputPanel(EditorFrame& parentFrame, wxWindow* parent);
~InputPanel() {};
void Set(unsigned int notifier_id, const wxString& cmd);
unsigned int GetNotifierId() const {return m_notifier_id;};
// Event handlers
void OnCloseButton(wxCommandEvent& evt);
void OnInputChanged(wxCommandEvent& evt);
void OnInputEnter(wxCommandEvent& evt);
// Member Ctrls
wxTextCtrl* m_inputbox;
wxStaticText* m_caption;
// Member variables
EditorFrame& m_parentFrame;
unsigned int m_notifier_id;
#endif //__INPUTPANEL_H