OpenASIP  2.0
EditParameterDialog.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file EditParameterDialog.hh
26  *
27  * Declaration of EditParameterDialog class.
28  *
29  * @author Viljami Korhonen 2008 (viljami.korhonen-no.spam-.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef EDIT_PARAMETER_DIALOG_HH
34 #define EDIT_PARAMETER_DIALOG_HH
35 
36 #include <wx/wx.h>
37 #include "DesignSpaceExplorer.hh"
39 
40 namespace TTAMachine {
41  class Machine;
42 }
43 
45 
46 /**
47  * Explorer plugin call window.
48  */
49 class EditParameterDialog : public wxDialog {
50 public:
52  wxWindow* parent, ExplorerPluginParameter* parameter);
53 
54  virtual ~EditParameterDialog();
55 
56 private:
57 
58  virtual bool TransferDataToWindow();
59  void onClose(wxCommandEvent& event);
60  void onOk(wxCommandEvent& event);
61  void setTexts();
62 
63  wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
64 
65  /// name
66  wxStaticText* paramName_;
67  /// name
68  wxStaticText* paramType_;
69  /// name
70  wxTextCtrl* paramValue_;
71 
73 
74  enum {
81  };
82 
83  DECLARE_EVENT_TABLE()
84 };
85 
86 #endif
EditParameterDialog::~EditParameterDialog
virtual ~EditParameterDialog()
Definition: EditParameterDialog.cc:93
EditParameterDialog::onClose
void onClose(wxCommandEvent &event)
Definition: EditParameterDialog.cc:131
EditParameterDialog::parameter_
ExplorerPluginParameter * parameter_
Definition: EditParameterDialog.hh:72
ExplorerPluginParameter.hh
EditParameterDialog::paramType_
wxStaticText * paramType_
name
Definition: EditParameterDialog.hh:68
DesignSpaceExplorerPlugin
Definition: DesignSpaceExplorerPlugin.hh:55
EditParameterDialog::ID_VALUE
@ ID_VALUE
Definition: EditParameterDialog.hh:78
EditParameterDialog::onOk
void onOk(wxCommandEvent &event)
Definition: EditParameterDialog.cc:140
EditParameterDialog::paramValue_
wxTextCtrl * paramValue_
name
Definition: EditParameterDialog.hh:70
ExplorerPluginParameter
Definition: ExplorerPluginParameter.hh:46
EditParameterDialog::ID_NAME
@ ID_NAME
Definition: EditParameterDialog.hh:76
EditParameterDialog
Definition: EditParameterDialog.hh:49
EditParameterDialog::setTexts
void setTexts()
Definition: EditParameterDialog.cc:101
EditParameterDialog::ID_CANCEL
@ ID_CANCEL
Definition: EditParameterDialog.hh:80
EditParameterDialog::ID_TYPE
@ ID_TYPE
Definition: EditParameterDialog.hh:77
DesignSpaceExplorer.hh
EditParameterDialog::ID_TEXT
@ ID_TEXT
Definition: EditParameterDialog.hh:75
EditParameterDialog::EditParameterDialog
EditParameterDialog(wxWindow *parent, ExplorerPluginParameter *parameter)
Definition: EditParameterDialog.cc:72
EditParameterDialog::TransferDataToWindow
virtual bool TransferDataToWindow()
Definition: EditParameterDialog.cc:122
TTAMachine
Definition: Assembler.hh:48
EditParameterDialog::paramName_
wxStaticText * paramName_
name
Definition: EditParameterDialog.hh:66
EditParameterDialog::ID_OK
@ ID_OK
Definition: EditParameterDialog.hh:79
EditParameterDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition: EditParameterDialog.cc:162