OpenASIP 2.2
Loading...
Searching...
No Matches
CostEstimationDataDialog.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 CostEstimationDataDialog.hh
26 *
27 * Declaration of CostEstimationDataDialog class.
28 *
29 * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30 * @note rating: red
31 */
32
33#ifndef TTA_COST_ESTIMATION_DATA_DIALOG_HH
34#define TTA_COST_ESTIMATION_DATA_DIALOG_HH
35
36#include <wx/wx.h>
37#include "DBTypes.hh"
38
39namespace HDB {
40 class HDBManager;
41}
42
43/**
44 * Dialog for adding and modifying cost function plugin data.
45 */
46class CostEstimationDataDialog : public wxDialog {
47public:
49 wxWindow* parent, wxWindowID id, HDB::HDBManager& hdb, RowID pluginID,
50 RowID dataID);
51
53
54private:
55 virtual bool TransferDataToWindow();
56 void onOK(wxCommandEvent& event);
57 void onEntryTypeSelection(wxCommandEvent& event);
58
59 wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
60
61 /// widget IDs
62 enum {
69 };
70
71 /// HDB Containing the data.
73 /// ID of the data's parent plugin.
75 /// ID of the data to modify, or -1 if new data is being added.
77 /// Entry reference type choice widget.
78 wxChoice* typeChoice_;
79 /// Entry reference id choice widget.
80 wxChoice* idChoice_;
81 /// Name of the data.
82 wxString name_;
83 /// Value of the data.
84 wxString value_;
85
86 static const wxString ENTRY_TYPE_NONE;
87 static const wxString ENTRY_TYPE_FU;
88 static const wxString ENTRY_TYPE_RF;
89 static const wxString ENTRY_TYPE_BUS;
90 static const wxString ENTRY_TYPE_SOCKET;
91
92 DECLARE_EVENT_TABLE()
93};
94
95#endif
int RowID
Type definition of row ID in relational databases.
Definition DBTypes.hh:37
wxChoice * typeChoice_
Entry reference type choice widget.
static const wxString ENTRY_TYPE_SOCKET
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
static const wxString ENTRY_TYPE_NONE
void onOK(wxCommandEvent &event)
static const wxString ENTRY_TYPE_BUS
static const wxString ENTRY_TYPE_FU
RowID dataID_
ID of the data to modify, or -1 if new data is being added.
HDB::HDBManager & hdb_
HDB Containing the data.
wxString value_
Value of the data.
RowID pluginID_
ID of the data's parent plugin.
wxChoice * idChoice_
Entry reference id choice widget.
static const wxString ENTRY_TYPE_RF
wxString name_
Name of the data.
void onEntryTypeSelection(wxCommandEvent &event)