28#include <wx/aui/aui.h>
31#include <wx/spinctrl.h>
44name=Results;caption=Results;state=2044;dir=1;layer=0;row=0;pos=1;prop=167270; \
45bestw=200;besth=184;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1| \
46name=Selection;caption=Trace selection;state=2044;dir=1;layer=0;row=0;pos=0;prop=32730; \
47bestw=128;besth=64;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1| \
48name=Traces;caption=Traces;state=18428;dir=5;layer=0;row=0;pos=0;prop=100000; \
49bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|");
51#if wxUSE_DRAG_AND_DROP
52class wxStfFileDrop :
public wxFileDropTarget {
54 virtual bool OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString& filenames);
85 long style = wxDEFAULT_FRAME_STYLE,
170 bool ShowAll()
const {
return pShowAll->IsChecked();}
185 wxAuiNotebook* m_notebook;
186 long m_notebook_style;
187 wxPanel *m_traceCounter;
188 wxPanel *m_channelCounter;
190 wxComboBox *pActChannel, *pInactChannel;
191 wxSpinCtrl *trace_spinctrl;
193 wxCheckBox *pZeroIndex, *pShowSelected, *pShowSecond, *pShowAll;
196 wxAuiNotebook* CreateNotebook();
197 wxPanel* CreateTraceCounter();
198 wxPanel* CreateChannelCounter();
200 void OnMenuHighlight(wxMenuEvent& event);
203 void OnSpinCtrlTraces(wxSpinEvent& event);
207 DECLARE_EVENT_TABLE()
WORD TSTime TpMarker WORD size
A table used for printing information.
See http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdocument.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxpoint.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxsize.html (wxWidgets documentation)
Handles drawing of traces and keyboard or mouse input.
Derived from wxGrid. Allows to copy cells to the clipboard.
Adapts stfnum::Table to be used by wxStfGrid.
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxview.html (wxWidgets documentation)
void ActivateGraph()
Activated the current graph.
void SetSelected(std::size_t value)
Refreshes the trace selection string.
void ShowTable(const stfnum::Table &table, const wxString &caption)
Adds a table to the results notebook.
const wxString defaultPersp
Default perspective string.
void SetChannels(std::size_t act, std::size_t inact)
Sets the channels in the combo boxes. Checks and corrects equal channels in both boxes.
std::size_t GetCurTrace() const
Retrieves the current trace from the trace selection combo box.
void Loadperspective()
Load the saved AUI perspective from the configuration.
bool ShowSelected() const
Indicates whether all selected traces should be plotted.
void CreateMenuTraces(std::size_t value)
Creates the trace selection menu.
void Restoreperspective()
Restore the default AUI perspective.
void UpdateResults()
Updates the results table.
bool ShowAll() const
Indicates whether all channels should be plotted.
void Saveperspective()
Write the current AUI perspective to the configuration.
~wxStfChildFrame()
Destructor.
void OnActivate(wxActivateEvent &event)
wxAuiManager * GetMgr()
Retrieve the wxAuiManager.
void SetCurTrace(std::size_t)
Sets the current trace from the trace selection combo box.
wxStfGrid * GetCopyGrid()
Retrieve the wxStfGrid that contains the results table.
wxStfChildFrame(wxDocument *doc, wxView *view, wxStfParentType *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxPoint(48, 48), const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("frame"))
Constructor.
void CreateComboChannels(const wxArrayString &channelNames)
Creates the channel selection combo boxes.
void UpdateChannels()
Updates the channels according to the current combo boy selection.
bool ShowSecond()
Indicates whether the second channel should be plotted.
virtual wxMenuBar * GetMenuBar() const
Override default GetMenuBar.
wxDocMDIParentFrame wxStfParentType
parent frame type; depends on whether aui is used for the doc/view interface
wxDocMDIChildFrame wxStfChildType
child frame type; depends on whether aui is used for the doc/view interface
#define StfDll
Defines dll export or import functions for Windows.