OSDN Git Service

The separator line in the Ruby Dialog was not working correctly.
[molby/Molby.git] / wxSources / RubyDialogFrame.h
1 /*
2  *  RubyDialogFrame.h
3  *  Molby
4  *
5  *  Created by Toshi Nagata on 08/12/05.
6  *  Copyright 2008 Toshi Nagata. All rights reserved.
7  *
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.
11  
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.
16  */
17
18 #ifndef __RubyDialogFrame_h__
19 #define __RubyDialogFrame_h__
20
21 #include "wx/dialog.h"
22 #include "wx/sizer.h"
23 #include "wx/panel.h"
24 #include "../Mollib/Ruby_bind/ruby_dialog.h"
25
26 class RubyDialogFrame: public wxDialog {        
27 public:
28         RDItem **ditems;
29         int nditems;
30         RubyValue dval;  /*  The Ruby value representing this object  */
31
32         wxPanel *contentPanel;
33         wxSizer *contentSizer;
34         wxSizer *buttonSizer;
35         wxBoxSizer *boxSizer;
36         
37         RubyDialogFrame(wxWindow* parent, wxWindowID wid, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
38         virtual ~RubyDialogFrame();
39
40         int AddDialogItem(RDItem *item);
41         RDItem *DialogItemAtIndex(int index);
42         int SearchDialogItem(RDItem *item);
43         void SetRubyObject(RubyValue val);
44         void CreateStandardButtons(const char *oktitle, const char *canceltitle);
45
46         void OnDialogItemAction(wxCommandEvent &event);
47         
48 private:
49         DECLARE_EVENT_TABLE()
50 };
51
52 #endif /* __RubyDialogFrame_h__ */