OpenASIP  2.0
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:
47  wxWindow* parent, wxWindowID id,
49 
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,
63  };
64 
65  /// Creates the dialog contents.
66  wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
67 
68  /// BlockImplementationFile object to modify.
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
BlockImplementationFileDialog::ID_LABEL_FORMAT
@ ID_LABEL_FORMAT
Definition: BlockImplementationFileDialog.hh:59
BlockImplementationFileDialog::onBrowse
void onBrowse(wxCommandEvent &event)
Definition: BlockImplementationFileDialog.cc:93
BlockImplementationFileDialog::onOK
void onOK(wxCommandEvent &event)
Definition: BlockImplementationFileDialog.cc:134
BlockImplementationFileDialog::BlockImplementationFileDialog
BlockImplementationFileDialog(wxWindow *parent, wxWindowID id, HDB::BlockImplementationFile &file)
Definition: BlockImplementationFileDialog.cc:64
HDB::BlockImplementationFile
Definition: BlockImplementationFile.hh:44
BlockImplementationFileDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Creates the dialog contents.
Definition: BlockImplementationFileDialog.cc:185
BlockImplementationFileDialog::file_
HDB::BlockImplementationFile & file_
BlockImplementationFile object to modify.
Definition: BlockImplementationFileDialog.hh:69
BlockImplementationFileDialog::ID_PATH
@ ID_PATH
Definition: BlockImplementationFileDialog.hh:58
BlockImplementationFileDialog::~BlockImplementationFileDialog
virtual ~BlockImplementationFileDialog()
Definition: BlockImplementationFileDialog.cc:84
BlockImplementationFileDialog::ID_LINE
@ ID_LINE
Definition: BlockImplementationFileDialog.hh:62
BlockImplementationFileDialog::format_
int format_
Selected implementation file type.
Definition: BlockImplementationFileDialog.hh:74
FUImplementation.hh
BlockImplementationFileDialog::ID_BROWSE
@ ID_BROWSE
Definition: BlockImplementationFileDialog.hh:61
BlockImplementationFileDialog::ID_LABEL_PATH
@ ID_LABEL_PATH
Definition: BlockImplementationFileDialog.hh:57
BlockImplementationFileDialog::path_
wxString path_
Block implementation file path.
Definition: BlockImplementationFileDialog.hh:72
BlockImplementationFileDialog::ID_FORMAT
@ ID_FORMAT
Definition: BlockImplementationFileDialog.hh:60
BlockImplementationFileDialog
Definition: BlockImplementationFileDialog.hh:44