![]() |
KiCad PCB EDA Suite
|
#include <sim_workbook.h>
Public Member Functions | |
SIM_WORKBOOK () | |
SIM_WORKBOOK (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxAUI_NB_DEFAULT_STYLE) | |
bool | AddPage (wxWindow *aPage, const wxString &aCaption, bool aSelect=false, const wxBitmap &aBitmap=wxNullBitmap) |
bool | AddPage (wxWindow *aPage, const wxString &aText, bool aSelect, int aImageId) override |
bool | DeleteAllPages () override |
bool | DeletePage (size_t aPage) override |
bool | AddTrace (SIM_PLOT_PANEL *aPlotPanel, const wxString &aTitle, const wxString &aName, int aPoints, const double *aX, const double *aY, SIM_PLOT_TYPE aType, const wxString &aParam) |
bool | DeleteTrace (SIM_PLOT_PANEL *aPlotPanel, const wxString &aName) |
void | SetSimCommand (SIM_PANEL_BASE *aPlotPanel, const wxString &aSimCommand) |
const wxString & | GetSimCommand (const SIM_PANEL_BASE *aPlotPanel) |
void | ClrModified () |
bool | IsModified () const |
Private Member Functions | |
void | setModified (bool value=true) |
Dirty bit, indicates something in the workbook has changed. More... | |
Private Attributes | |
bool | m_modified |
Definition at line 33 of file sim_workbook.h.
SIM_WORKBOOK::SIM_WORKBOOK | ( | ) |
SIM_WORKBOOK::SIM_WORKBOOK | ( | wxWindow * | aParent, |
wxWindowID | aId = wxID_ANY , |
||
const wxPoint & | aPos = wxDefaultPosition , |
||
const wxSize & | aSize = wxDefaultSize , |
||
long | aStyle = wxAUI_NB_DEFAULT_STYLE |
||
) |
bool SIM_WORKBOOK::AddPage | ( | wxWindow * | aPage, |
const wxString & | aCaption, | ||
bool | aSelect = false , |
||
const wxBitmap & | aBitmap = wxNullBitmap |
||
) |
Definition at line 41 of file sim_workbook.cpp.
References setModified().
Referenced by SIM_PLOT_FRAME::NewPlotPanel().
|
override |
Definition at line 49 of file sim_workbook.cpp.
References setModified(), and text.
bool SIM_WORKBOOK::AddTrace | ( | SIM_PLOT_PANEL * | aPlotPanel, |
const wxString & | aTitle, | ||
const wxString & | aName, | ||
int | aPoints, | ||
const double * | aX, | ||
const double * | aY, | ||
SIM_PLOT_TYPE | aType, | ||
const wxString & | aParam | ||
) |
Definition at line 73 of file sim_workbook.cpp.
References SIM_PLOT_PANEL::addTrace(), and setModified().
Referenced by SIM_PLOT_FRAME::updatePlot().
void SIM_WORKBOOK::ClrModified | ( | ) |
Definition at line 90 of file sim_workbook.cpp.
References m_modified.
Referenced by SIM_PLOT_FRAME::loadWorkbook(), and SIM_PLOT_FRAME::saveWorkbook().
|
override |
Definition at line 57 of file sim_workbook.cpp.
References setModified().
Referenced by SIM_PLOT_FRAME::loadWorkbook().
|
override |
Definition at line 65 of file sim_workbook.cpp.
References setModified().
bool SIM_WORKBOOK::DeleteTrace | ( | SIM_PLOT_PANEL * | aPlotPanel, |
const wxString & | aName | ||
) |
Definition at line 83 of file sim_workbook.cpp.
References SIM_PLOT_PANEL::deleteTrace(), and setModified().
Referenced by SIM_PLOT_FRAME::removePlot().
|
inline |
Definition at line 62 of file sim_workbook.h.
References SIM_PANEL_BASE::getSimCommand().
Referenced by SIM_PLOT_FRAME::getCurrentSimCommand(), SIM_PLOT_FRAME::onSettings(), and SIM_PLOT_FRAME::saveWorkbook().
|
inline |
Definition at line 68 of file sim_workbook.h.
References m_modified.
Referenced by SIM_PLOT_FRAME::canCloseWindow(), SIM_PLOT_FRAME::menuSaveWorkbook(), and SIM_PLOT_FRAME::updateTitle().
|
private |
Dirty bit, indicates something in the workbook has changed.
Definition at line 96 of file sim_workbook.cpp.
References m_modified.
Referenced by AddPage(), AddTrace(), DeleteAllPages(), DeletePage(), DeleteTrace(), and SetSimCommand().
|
inline |
Definition at line 56 of file sim_workbook.h.
References setModified(), and SIM_PANEL_BASE::setSimCommand().
Referenced by SIM_PLOT_FRAME::onSettings().
|
private |
Definition at line 74 of file sim_workbook.h.
Referenced by ClrModified(), IsModified(), setModified(), and SIM_WORKBOOK().