OpenASIP 2.2
Loading...
Searching...
No Matches
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
38class Watch;
39
40/**
41 * Dialog for creating watch points.
42 */
43class AddWatchDialog : public wxDialog {
44public:
45 AddWatchDialog(wxWindow* parent, wxWindowID id, Watch* watch = NULL);
46 virtual ~AddWatchDialog();
47private:
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
wxSpinCtrl * endAddressCtrl_
End adderss widget for memory watch.
wxChoice * fuChoice_
Function unit choicer for port watch.
wxChoice * asChoice_
Address space choicer for memory watch.
void onASChoice(wxCommandEvent &event)
virtual ~AddWatchDialog()
void onOK(wxCommandEvent &event)
wxChoice * portChoice_
Port choicer for port watch.
void onWatchTypeChange(wxCommandEvent &event)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
wxSpinCtrl * startAddressCtrl_
Start address widget for memory watch.
void onRFChoice(wxCommandEvent &event)
void onFUChoice(wxCommandEvent &event)
wxChoice * rfChoice_
Register file choicer for register watch.
wxChoice * indexChoice_
Register index choicer for register watch.
wxChoice * busChoice_
Bus choicer for bus watch.
Definition Watch.hh:48