Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
drwnOptionsEditor.h
1 /*****************************************************************************
2 ** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
3 ** Distributed under the terms of the BSD license (see the LICENSE file)
4 ** Copyright (c) 2007-2015, Stephen Gould
5 ** All rights reserved.
6 **
7 ******************************************************************************
8 ** FILENAME: drwnOptionsEditor.h
9 ** AUTHOR(S): Stephen Gould <stephen.gould@anu.edu.au>
10 ** DESCRIPTION:
11 ** Darwin GUI editor for derived drwnProperties classes.
12 **
13 *****************************************************************************/
14 
15 #pragma once
16 
17 #include "drwnBase.h"
18 
19 #include "wx/wx.h"
20 #include "wx/utils.h"
21 #include "wx/dialog.h"
22 #include "wx/grid.h"
23 
24 // drwnOptionsEditor ---------------------------------------------------------
25 
26 class drwnOptionsEditor : public wxDialog
27 {
28  protected:
29  drwnProperties *_properties;
30  drwnPropertiesCopy _copy;
31  wxGrid *_grid;
32 
33  public:
34  drwnOptionsEditor(wxWindow *parent, drwnProperties *properties);
36 
37  // event callbacks
38  void onSize(wxSizeEvent &event);
39  void onBtnOkay(wxCommandEvent& event);
40  void onDClick(wxGridEvent& event);
41 
42  protected:
43  DECLARE_EVENT_TABLE()
44 };
Provides an abstract interface for dynamic properties.
Definition: drwnProperties.h:338
Definition: drwnOptionsEditor.h:26
Definition: drwnProperties.h:443