OpenASIP
2.2
Loading...
Searching...
No Matches
src
procgen
HDBEditor
BlockImplementationFileDialog.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 BlockImplementationFileDialog.hh
26
*
27
* Declaration of BlockImplementationFileDialog 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_BLOCK_IMPLEMENTATION_FILE_DIALOG_HH
34
#define TTA_BLOCK_IMPLEMENTATION_FILE_DIALOG_HH
35
36
#include <wx/wx.h>
37
38
#include "
FUImplementation.hh
"
39
40
41
/**
42
* Dialog for editing BlockImplementationFile objects.
43
*/
44
class
BlockImplementationFileDialog
:
public
wxDialog {
45
public
:
46
BlockImplementationFileDialog
(
47
wxWindow* parent, wxWindowID
id
,
48
HDB::BlockImplementationFile
& file);
49
50
virtual
~BlockImplementationFileDialog
();
51
private
:
52
void
onBrowse
(wxCommandEvent& event);
53
void
onOK
(wxCommandEvent& event);
54
55
/// Enumerated IDs for dialog widgets.
56
enum
{
57
ID_LABEL_PATH
= 10000,
58
ID_PATH
,
59
ID_LABEL_FORMAT
,
60
ID_FORMAT
,
61
ID_BROWSE
,
62
ID_LINE
63
};
64
65
/// Creates the dialog contents.
66
wxSizer*
createContents
(wxWindow* parent,
bool
call_fit,
bool
set_sizer);
67
68
/// BlockImplementationFile object to modify.
69
HDB::BlockImplementationFile
&
file_
;
70
71
/// Block implementation file path.
72
wxString
path_
;
73
/// Selected implementation file type.
74
int
format_
;
75
76
DECLARE_EVENT_TABLE()
77
};
78
79
#endif
FUImplementation.hh
BlockImplementationFileDialog
Definition
BlockImplementationFileDialog.hh:44
BlockImplementationFileDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Creates the dialog contents.
Definition
BlockImplementationFileDialog.cc:185
BlockImplementationFileDialog::onBrowse
void onBrowse(wxCommandEvent &event)
Definition
BlockImplementationFileDialog.cc:93
BlockImplementationFileDialog::path_
wxString path_
Block implementation file path.
Definition
BlockImplementationFileDialog.hh:72
BlockImplementationFileDialog::onOK
void onOK(wxCommandEvent &event)
Definition
BlockImplementationFileDialog.cc:134
BlockImplementationFileDialog::format_
int format_
Selected implementation file type.
Definition
BlockImplementationFileDialog.hh:74
BlockImplementationFileDialog::~BlockImplementationFileDialog
virtual ~BlockImplementationFileDialog()
Definition
BlockImplementationFileDialog.cc:84
BlockImplementationFileDialog::file_
HDB::BlockImplementationFile & file_
BlockImplementationFile object to modify.
Definition
BlockImplementationFileDialog.hh:69
BlockImplementationFileDialog::ID_LABEL_FORMAT
@ ID_LABEL_FORMAT
Definition
BlockImplementationFileDialog.hh:59
BlockImplementationFileDialog::ID_PATH
@ ID_PATH
Definition
BlockImplementationFileDialog.hh:58
BlockImplementationFileDialog::ID_LABEL_PATH
@ ID_LABEL_PATH
Definition
BlockImplementationFileDialog.hh:57
BlockImplementationFileDialog::ID_BROWSE
@ ID_BROWSE
Definition
BlockImplementationFileDialog.hh:61
BlockImplementationFileDialog::ID_FORMAT
@ ID_FORMAT
Definition
BlockImplementationFileDialog.hh:60
BlockImplementationFileDialog::ID_LINE
@ ID_LINE
Definition
BlockImplementationFileDialog.hh:62
HDB::BlockImplementationFile
Definition
BlockImplementationFile.hh:44
Generated by
1.9.8