2 * GlobalParameterFrame.h
5 * Created by Toshi Nagata on 09/11/05.
6 * Copyright 2009 Toshi Nagata. All rights reserved.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
18 #ifndef __GlobalParameterFrame_h__
19 #define __GlobalParameterFrame_h__
22 #include "MyListCtrl.h"
26 class GlobalParameterFrame: public wxFrame, public MyListCtrlDataSource
31 wxMenu *file_history_menu;
34 GlobalParameterFrame(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size, long type);
35 virtual ~GlobalParameterFrame();
37 MyListCtrl *GetListCtrl() { return listCtrl; }
41 static GlobalParameterFrame *CreateGlobalParameterFrame(wxWindow *parent);
43 void OnCloseWindow(wxCloseEvent &event);
44 void OnClose(wxCommandEvent &event);
45 void OnUpdateUI(wxUpdateUIEvent& event);
47 /* MyListCtrlDataSource functions */
48 virtual int GetItemCount(MyListCtrl *ctrl);
49 virtual wxString GetItemText(MyListCtrl *ctrl, long row, long column) const;
50 virtual int SetItemText(MyListCtrl *ctrl, long row, long column, const wxString &value);
51 virtual void DragSelectionToRow(MyListCtrl *ctrl, long row);
52 virtual bool IsItemEditable(MyListCtrl *ctrl, long row, long column);
53 virtual bool IsDragAndDropEnabled(MyListCtrl *ctrl, long row);
54 virtual void OnSelectionChanged(MyListCtrl *ctrl);
55 virtual int SetItemColor(MyListCtrl *ctrl, long row, long col, float *fg, float *bg);
61 #endif /* __GlobalParameterFrame_h__ */