OpenASIP 2.2
Loading...
Searching...
No Matches
CallExplorerPlugin.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 CallExplorerPlugin.hh
26 *
27 * Declaration of CallExplorerPluginWindow class.
28 *
29 * @author Viljami Korhonen 2008 (viljami.korhonen-no.spam-.tut.fi)
30 * @note rating: red
31 */
32
33#ifndef CALL_EXPLORER_PLUGIN_WINDOW_HH
34#define CALL_EXPLORER_PLUGIN_WINDOW_HH
35
36#include <wx/wx.h>
37#include <wx/listctrl.h>
38#include "PluginTools.hh"
41
42namespace TTAMachine {
43 class Machine;
44}
45
47class Model;
48
49/**
50 * Explorer plugin call window.
51 */
52class CallExplorerPluginWindow : public wxDialog {
53public:
55 wxWindow* parent, TTAMachine::Machine& machine, Model& model);
56
58
59private:
60
61 virtual bool TransferDataToWindow();
62 void onClose(wxCommandEvent& event);
63 void onEdit(wxCommandEvent&);
64 void onRun(wxCommandEvent& event);
65 void onSelectPlugin(wxCommandEvent& event);
66 void onParamActivate(wxListEvent& event);
67 void onParamSelect(wxListEvent& event);
68 void onParamDeSelect(wxListEvent& event);
69
70 void doEdit();
72 void setTexts();
74
75 wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
76
77
78
79 /// Machine that is being modified.
81 /// The model
83
84 /// Plugin names combo box
85 wxComboBox* pluginNames_;
86 /// description text field
87 wxTextCtrl* pluginDescription_;
88 /// Parameter list;
89 wxListCtrl* parameterList_;
90 /// Edit button
91 wxButton* editButton;
92 /// Run button
93 wxButton* runButton;
94 /// Selected parameter, or -1
96
97 // Widget IDs.
98 enum {
99 ID_TEXT = 10000,
104 ID_RUN
105 };
106
108 std::vector<DesignSpaceExplorerPlugin*> plugins_;
110
111 DECLARE_EVENT_TABLE()
112};
113
114#endif
TTAMachine::Machine * machine
the architecture definition of the estimated processor
void onEdit(wxCommandEvent &)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
void onParamDeSelect(wxListEvent &event)
void onParamSelect(wxListEvent &event)
void onParamActivate(wxListEvent &event)
DesignSpaceExplorer explorer_
wxComboBox * pluginNames_
Plugin names combo box.
void onClose(wxCommandEvent &event)
wxButton * editButton
Edit button.
wxTextCtrl * pluginDescription_
description text field
DesignSpaceExplorerPlugin * selectedPlugin_
std::vector< DesignSpaceExplorerPlugin * > plugins_
ExplorerPluginParameter getParam(int paramNum)
void onRun(wxCommandEvent &event)
TTAMachine::Machine & machine_
Machine that is being modified.
void onSelectPlugin(wxCommandEvent &event)
int selectedParam_
Selected parameter, or -1.
wxListCtrl * parameterList_
Parameter list;.
wxButton * runButton
Run button.
Definition Model.hh:50