OpenASIP  2.0
AddWatchDialog.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 AddWatchDialog.hh
26  *
27  * Declaration of AddWatchDialog class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_WATCH_DIALOG_HH
34 #define TTA_WATCH_DIALOG_HH
35 
36 #include <wx/wx.h>
37 
38 class Watch;
39 
40 /**
41  * Dialog for creating watch points.
42  */
43 class AddWatchDialog : public wxDialog {
44 public:
45  AddWatchDialog(wxWindow* parent, wxWindowID id, Watch* watch = NULL);
46  virtual ~AddWatchDialog();
47 private:
48  void onWatchTypeChange(wxCommandEvent& event);
49  void onFUChoice(wxCommandEvent& event);
50  void onRFChoice(wxCommandEvent& event);
51  void onASChoice(wxCommandEvent& event);
52  void initialize();
53  void onOK(wxCommandEvent& event);
54  wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
55 
56  /// Widget ids.
57  enum {
63 
74 
85  };
86 
87  /// Address space choicer for memory watch.
88  wxChoice* asChoice_;
89  /// Function unit choicer for port watch.
90  wxChoice* fuChoice_;
91  /// Port choicer for port watch.
92  wxChoice* portChoice_;
93  /// Register file choicer for register watch.
94  wxChoice* rfChoice_;
95  /// Register index choicer for register watch.
96  wxChoice* indexChoice_;
97  /// Bus choicer for bus watch.
98  wxChoice* busChoice_;
99 
100  /// End adderss widget for memory watch.
101  wxSpinCtrl* endAddressCtrl_;
102  /// Start address widget for memory watch.
103  wxSpinCtrl* startAddressCtrl_;
104 
105  DECLARE_EVENT_TABLE()
106 };
107 #endif
AddWatchDialog::busChoice_
wxChoice * busChoice_
Bus choicer for bus watch.
Definition: AddWatchDialog.hh:98
AddWatchDialog::~AddWatchDialog
virtual ~AddWatchDialog()
Definition: AddWatchDialog.cc:104
AddWatchDialog::onRFChoice
void onRFChoice(wxCommandEvent &event)
Definition: AddWatchDialog.cc:240
AddWatchDialog::onASChoice
void onASChoice(wxCommandEvent &event)
Definition: AddWatchDialog.cc:268
AddWatchDialog::onOK
void onOK(wxCommandEvent &event)
Definition: AddWatchDialog.cc:291
AddWatchDialog::ID_RB_EXPRESSION
@ ID_RB_EXPRESSION
Definition: AddWatchDialog.hh:61
AddWatchDialog::ID_LABEL_AS
@ ID_LABEL_AS
Definition: AddWatchDialog.hh:64
Watch
Definition: Watch.hh:48
AddWatchDialog::ID_RB_BUS
@ ID_RB_BUS
Definition: AddWatchDialog.hh:62
AddWatchDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition: AddWatchDialog.cc:415
AddWatchDialog::ID_BUS_CHOICE
@ ID_BUS_CHOICE
Definition: AddWatchDialog.hh:77
AddWatchDialog::ID_ADDRESS_SPACE
@ ID_ADDRESS_SPACE
Definition: AddWatchDialog.hh:83
AddWatchDialog::fuChoice_
wxChoice * fuChoice_
Function unit choicer for port watch.
Definition: AddWatchDialog.hh:90
AddWatchDialog::ID_LABEL_PORT
@ ID_LABEL_PORT
Definition: AddWatchDialog.hh:66
AddWatchDialog::ID_LINE
@ ID_LINE
Definition: AddWatchDialog.hh:84
AddWatchDialog::rfChoice_
wxChoice * rfChoice_
Register file choicer for register watch.
Definition: AddWatchDialog.hh:94
AddWatchDialog::onWatchTypeChange
void onWatchTypeChange(wxCommandEvent &event)
Definition: AddWatchDialog.cc:157
AddWatchDialog::portChoice_
wxChoice * portChoice_
Port choicer for port watch.
Definition: AddWatchDialog.hh:92
AddWatchDialog::ID_FU_CHOICE
@ ID_FU_CHOICE
Definition: AddWatchDialog.hh:79
AddWatchDialog::ID_LABEL_EXPRESSION
@ ID_LABEL_EXPRESSION
Definition: AddWatchDialog.hh:69
AddWatchDialog::onFUChoice
void onFUChoice(wxCommandEvent &event)
Definition: AddWatchDialog.cc:213
AddWatchDialog::ID_LABEL_CONDITION
@ ID_LABEL_CONDITION
Definition: AddWatchDialog.hh:70
AddWatchDialog::ID_EXPRESSION
@ ID_EXPRESSION
Definition: AddWatchDialog.hh:82
AddWatchDialog::ID_LABEL_START_ADDRESS
@ ID_LABEL_START_ADDRESS
Definition: AddWatchDialog.hh:71
AddWatchDialog::ID_RB_PORT
@ ID_RB_PORT
Definition: AddWatchDialog.hh:59
AddWatchDialog::ID_RF_CHOICE
@ ID_RF_CHOICE
Definition: AddWatchDialog.hh:78
AddWatchDialog::initialize
void initialize()
Definition: AddWatchDialog.cc:111
AddWatchDialog::ID_LABEL_BUS
@ ID_LABEL_BUS
Definition: AddWatchDialog.hh:68
AddWatchDialog::ID_RB_MEMORY
@ ID_RB_MEMORY
Definition: AddWatchDialog.hh:58
AddWatchDialog::ID_END_ADDRESS
@ ID_END_ADDRESS
Definition: AddWatchDialog.hh:76
AddWatchDialog::AddWatchDialog
AddWatchDialog(wxWindow *parent, wxWindowID id, Watch *watch=NULL)
Definition: AddWatchDialog.cc:79
AddWatchDialog::ID_LABEL_INDEX
@ ID_LABEL_INDEX
Definition: AddWatchDialog.hh:73
AddWatchDialog::ID_LABEL_RF
@ ID_LABEL_RF
Definition: AddWatchDialog.hh:67
AddWatchDialog::startAddressCtrl_
wxSpinCtrl * startAddressCtrl_
Start address widget for memory watch.
Definition: AddWatchDialog.hh:103
AddWatchDialog::ID_LABEL_END_ADDRESS
@ ID_LABEL_END_ADDRESS
Definition: AddWatchDialog.hh:72
AddWatchDialog::ID_START_ADDRESS
@ ID_START_ADDRESS
Definition: AddWatchDialog.hh:75
AddWatchDialog::ID_LABEL_UNIT
@ ID_LABEL_UNIT
Definition: AddWatchDialog.hh:65
AddWatchDialog::ID_PORT_CHOICE
@ ID_PORT_CHOICE
Definition: AddWatchDialog.hh:80
AddWatchDialog::ID_INDEX_CHOICE
@ ID_INDEX_CHOICE
Definition: AddWatchDialog.hh:81
AddWatchDialog::asChoice_
wxChoice * asChoice_
Address space choicer for memory watch.
Definition: AddWatchDialog.hh:88
AddWatchDialog
Definition: AddWatchDialog.hh:43
AddWatchDialog::endAddressCtrl_
wxSpinCtrl * endAddressCtrl_
End adderss widget for memory watch.
Definition: AddWatchDialog.hh:101
AddWatchDialog::ID_RB_REGISTER
@ ID_RB_REGISTER
Definition: AddWatchDialog.hh:60
AddWatchDialog::indexChoice_
wxChoice * indexChoice_
Register index choicer for register watch.
Definition: AddWatchDialog.hh:96