OpenASIP  2.0
WatchPropertiesDialog.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 WatchPropertiesDialog.hh
26  *
27  * Declaration of WatchPropertiesDialog 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_PROPERTIES_DIALOG_HH
34 #define TTA_WATCH_PROPERTIES_DIALOG_HH
35 
36 #include <wx/wx.h>
37 
38 class StopPointManager;
39 
40 /**
41  * Dialog for modifying watchpoint properties.
42  */
43 class WatchPropertiesDialog : public wxDialog {
44 public:
46  wxWindow* parent, wxWindowID id,
47  StopPointManager& manager, int handle);
49 private:
50  wxSizer* createContents(wxWindow* parent, bool call_fit, bool call_sizer);
51  virtual bool TransferDataToWindow();
52  void onOK(wxCommandEvent& event);
53 
54  /// Widget IDs.
55  enum {
56  ID_LABEL_WATCH = 10000,
60 
66  };
67 
68  /// Stop point manager of the simulator.
70  /// Handle of the watch to modify.
71  int handle_;
72 
73  /// Text widget for the watch expression script.
74  wxTextCtrl* expressionCtrl_;
75  /// Text widget fot the watch condition script.
76  wxTextCtrl* conditionCtrl_;
77  /// Spin button widget for the watch ignore count.
78  wxSpinCtrl* ignoreCtrl_;
79 
80  DECLARE_EVENT_TABLE()
81 };
82 #endif
WatchPropertiesDialog::ID_EXPRESSION
@ ID_EXPRESSION
Definition: WatchPropertiesDialog.hh:62
WatchPropertiesDialog::handle_
int handle_
Handle of the watch to modify.
Definition: WatchPropertiesDialog.hh:71
WatchPropertiesDialog
Definition: WatchPropertiesDialog.hh:43
WatchPropertiesDialog::ID_LABEL_IGNORE_COUNT
@ ID_LABEL_IGNORE_COUNT
Definition: WatchPropertiesDialog.hh:59
WatchPropertiesDialog::ID_CONDITION
@ ID_CONDITION
Definition: WatchPropertiesDialog.hh:63
WatchPropertiesDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool call_sizer)
Definition: WatchPropertiesDialog.cc:156
WatchPropertiesDialog::WatchPropertiesDialog
WatchPropertiesDialog(wxWindow *parent, wxWindowID id, StopPointManager &manager, int handle)
Definition: WatchPropertiesDialog.cc:58
WatchPropertiesDialog::ID_WATCH_HANDLE
@ ID_WATCH_HANDLE
Definition: WatchPropertiesDialog.hh:61
WatchPropertiesDialog::onOK
void onOK(wxCommandEvent &event)
Definition: WatchPropertiesDialog.cc:113
StopPointManager
Definition: StopPointManager.hh:50
WatchPropertiesDialog::expressionCtrl_
wxTextCtrl * expressionCtrl_
Text widget for the watch expression script.
Definition: WatchPropertiesDialog.hh:74
WatchPropertiesDialog::ID_IGNORE_COUNT
@ ID_IGNORE_COUNT
Definition: WatchPropertiesDialog.hh:64
WatchPropertiesDialog::ID_LABEL_CONDITION
@ ID_LABEL_CONDITION
Definition: WatchPropertiesDialog.hh:58
WatchPropertiesDialog::ID_LABEL_EXPRESSION
@ ID_LABEL_EXPRESSION
Definition: WatchPropertiesDialog.hh:57
WatchPropertiesDialog::manager_
StopPointManager & manager_
Stop point manager of the simulator.
Definition: WatchPropertiesDialog.hh:69
WatchPropertiesDialog::TransferDataToWindow
virtual bool TransferDataToWindow()
Definition: WatchPropertiesDialog.cc:85
WatchPropertiesDialog::ID_LABEL_WATCH
@ ID_LABEL_WATCH
Definition: WatchPropertiesDialog.hh:56
WatchPropertiesDialog::conditionCtrl_
wxTextCtrl * conditionCtrl_
Text widget fot the watch condition script.
Definition: WatchPropertiesDialog.hh:76
WatchPropertiesDialog::~WatchPropertiesDialog
~WatchPropertiesDialog()
Definition: WatchPropertiesDialog.cc:74
WatchPropertiesDialog::ignoreCtrl_
wxSpinCtrl * ignoreCtrl_
Spin button widget for the watch ignore count.
Definition: WatchPropertiesDialog.hh:78
WatchPropertiesDialog::ID_LINE
@ ID_LINE
Definition: WatchPropertiesDialog.hh:65