OpenASIP  2.0
MemoryDialog.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 MemoryDialog.hh
26  *
27  * Declaration of MemoryDialog class.
28  *
29  * @author Jussi Nykänen 2004 (nykanen-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_MEMORY_DIALOG_HH
34 #define TTA_MEMORY_DIALOG_HH
35 
36 
37 #include <wx/wx.h>
38 #include <wx/spinctrl.h>
39 #include <wx/choice.h>
40 #include <wx/textctrl.h>
41 
42 #include "BaseType.hh"
43 #include "OSEdListener.hh"
44 
45 class OperationContext;
46 class MemoryControl;
47 
48 /**
49  * Dialog for monitoring the contents of the memory.
50  */
51 class MemoryDialog : public wxDialog, public OSEdListener {
52 public:
53  MemoryDialog(wxWindow* window);
54  virtual ~MemoryDialog();
55 
56  virtual void handleEvent(OSEdInformer::EventId event);
57 
58 private:
59  /// Copying not allowed.
60  MemoryDialog(const MemoryDialog&);
61  /// Assignment not allowed.
63 
64  wxSizer* createContents(wxWindow* window, bool call_fit, bool set_sizer);
65  void setTexts();
66  void onClose(wxCommandEvent&);
67 
68  /**
69  * Component ids.
70  */
71  enum {
74  };
75 
76  /// Memory control of the dialog.
78 
79  DECLARE_EVENT_TABLE()
80 };
81 
82 #endif
MemoryDialog::ID_BUTTON_CLOSE
@ ID_BUTTON_CLOSE
Definition: MemoryDialog.hh:72
OSEdInformer::EventId
EventId
Definition: OSEdInformer.hh:52
BaseType.hh
OSEdListener.hh
OperationContext
Definition: OperationContext.hh:56
MemoryDialog::ID_CONTROL_MEMORY
@ ID_CONTROL_MEMORY
Definition: MemoryDialog.hh:73
MemoryDialog::setTexts
void setTexts()
Definition: MemoryDialog.cc:84
MemoryDialog::createContents
wxSizer * createContents(wxWindow *window, bool call_fit, bool set_sizer)
Definition: MemoryDialog.cc:130
MemoryDialog::onClose
void onClose(wxCommandEvent &)
Definition: MemoryDialog.cc:101
MemoryControl
Definition: MemoryControl.hh:53
MemoryDialog::operator=
MemoryDialog & operator=(const MemoryDialog &)
Assignment not allowed.
OSEdListener
Definition: OSEdListener.hh:42
MemoryDialog
Definition: MemoryDialog.hh:51
MemoryDialog::handleEvent
virtual void handleEvent(OSEdInformer::EventId event)
Definition: MemoryDialog.cc:111
MemoryDialog::MemoryDialog
MemoryDialog(wxWindow *window)
Definition: MemoryDialog.cc:58
MemoryDialog::~MemoryDialog
virtual ~MemoryDialog()
Definition: MemoryDialog.cc:73
MemoryDialog::memoryWindow_
MemoryControl * memoryWindow_
Memory control of the dialog.
Definition: MemoryDialog.hh:77