OpenASIP 2.2
Loading...
Searching...
No Matches
ProximBreakpointWindow.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 ProximBreakpointWindow.hh
26 *
27 * Declaration of PorixmBreakpointWindow 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_PROXIM_BREAKPOINT_WINDOW
34#define TTA_PROXIM_BREAKPOINT_WINDOW
35
36#include <wx/wx.h>
37#include <wx/listctrl.h>
38#include <map>
40
41class SimulatorEvent;
43
44/**
45 * Proxim window for managing simulation breakpoints and watches.
46 */
48public:
49 ProximBreakpointWindow(ProximMainFrame* parent, wxWindowID id);
51 virtual void reset();
52
53private:
54 wxSizer* createContents(wxWindow* parent, bool call_fit, bool set_sizer);
55 wxSizer* createBreakpointTab(
56 wxWindow* parent, bool call_fit = true, bool set_sizer = true);
57 wxSizer* createWatchTab(
58 wxWindow* parent, bool call_fit = true, bool set_sizer = true);
59 void refreshStopPoints();
60 void onClose(wxCommandEvent& event);
61
63 void onDeleteBreakpoint(wxCommandEvent& event);
64 void onDeleteWatch(wxCommandEvent& event);
65 void onBreakpointLookup(wxCommandEvent& event);
66 void onBreakpointProperties(wxCommandEvent& event);
67 void onBreakpointSelection(wxListEvent& event);
68 void onAddBreakpoint(wxCommandEvent& event);
69 void onAddWatch(wxCommandEvent& event);
70 void onWatchProperties(wxCommandEvent& event);
71
72 /// List widget for breakpoints.
73 wxListCtrl* breakpointList_;
74 /// List widget for watches.
75 wxListCtrl* watchList_;
76
77 /// Map for translating breakpoint list item numbers to stop point handles.
78 std::map<unsigned, unsigned> bpListItemHandle_;
79 /// Map for translating watch list item numbers to stop point handles.
80 std::map<unsigned, unsigned> watchListItemHandle_;
81
82 /// Widget IDs.
83 enum {
84 ID_NOTEBOOK = 10000,
99 };
100
101 DECLARE_EVENT_TABLE()
102
103};
104#endif
void onBreakpointSelection(wxListEvent &event)
wxSizer * createBreakpointTab(wxWindow *parent, bool call_fit=true, bool set_sizer=true)
void onClose(wxCommandEvent &event)
void onAddWatch(wxCommandEvent &event)
std::map< unsigned, unsigned > watchListItemHandle_
Map for translating watch list item numbers to stop point handles.
void onBreakpointsModified(SimulatorEvent &event)
void onBreakpointProperties(wxCommandEvent &event)
void onAddBreakpoint(wxCommandEvent &event)
wxListCtrl * breakpointList_
List widget for breakpoints.
void onDeleteBreakpoint(wxCommandEvent &event)
wxSizer * createWatchTab(wxWindow *parent, bool call_fit=true, bool set_sizer=true)
void onWatchProperties(wxCommandEvent &event)
void onBreakpointLookup(wxCommandEvent &event)
std::map< unsigned, unsigned > bpListItemHandle_
Map for translating breakpoint list item numbers to stop point handles.
void onDeleteWatch(wxCommandEvent &event)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
wxListCtrl * watchList_
List widget for watches.