|
Minsky: 3.17.0
|
#include <variablePane.h>


Public Member Functions | |
| VariablePane () | |
| void | select (VariableType::Type x) |
| void | deselect (VariableType::Type x) |
| VariablePaneCell & | cell (unsigned row, unsigned col) override |
| return reference to cell row, col. Reference is valid until next call to cell() More... | |
| void | updateWithHeight (unsigned height) |
| update variables from model, given a window of height pixels More... | |
| void | update () |
| update variables from model, using previous height value More... | |
| unsigned | numRows () const override |
| unsigned | numCols () const override |
| bool | evenHeight () const override |
| whether cells all have the same height or not More... | |
| void | moveCursorTo (double, double) override |
| move current cursor to x,y More... | |
| void | mouseDown (float x, float y) override |
Public Member Functions inherited from minsky::Grid< VariablePaneCell > | |
| virtual | ~Grid ()=default |
| virtual JustificationStruct::Justification | justification (unsigned col) const |
| justification of col More... | |
| void | draw () |
| draw the grid More... | |
| int | colX (double x) const |
| column at x in unzoomed coordinates More... | |
| int | rowY (double y) const |
| row at y in unzoomed coordinates More... | |
Public Member Functions inherited from minsky::PannableTab< VariablePaneBase > | |
| PannableTab () | |
| PannableTab (A &arg) | |
| void | mouseDown (float x, float y) override |
| void | mouseUp (float x, float y) override |
| void | mouseMove (float x, float y) override |
| void | moveTo (float x, float y) override |
| std::vector< float > | position () const override |
| void | zoom (double x, double y, double z) override |
| double | zoomFactor () const override |
Public Member Functions inherited from minsky::RenderNativeWindow | |
| const RenderFrameArgs & | frameArgs () const |
| ~RenderNativeWindow () override | |
| virtual void | init () |
| perform any initialisation of any subclasses of this More... | |
| void | renderFrame (const RenderFrameArgs &args) |
| void | destroyFrame () |
| void | draw () |
| void | requestRedraw () |
| RenderNativeWindow & | operator= (const RenderNativeWindow &x) |
| RenderNativeWindow ()=default | |
| RenderNativeWindow (const RenderNativeWindow &)=default | |
| virtual bool | hasScrollBars () const |
| return whether this window has scrollbars (needed for MacOSX). More... | |
Public Member Functions inherited from minsky::EventInterface | |
| virtual void | controlMouseDown (float x, float y) |
| virtual bool | keyPress (const KeyPressArgs &) |
| handle key press over current itemFocus, More... | |
| virtual bool | getItemAt (float x, float y) |
| item or wire obtained by get*At() calls More... | |
| virtual bool | getWireAt (float x, float y) |
| item or wire obtained by get*At() calls More... | |
Public Attributes | |
| bool | shift =false |
| true if shift pressed More... | |
| std::set< Type > | selection |
Public Attributes inherited from minsky::Grid< VariablePaneCell > | |
| std::vector< double > | rightColMargin |
| coordinates of right and bottom margins of cells. Valid after draw() More... | |
| std::vector< double > | bottomRowMargin |
Public Attributes inherited from minsky::PannableTabBase | |
| float | offsx =0 |
| float | offsy =0 |
| double | m_zoomFactor =1 |
Public Attributes inherited from minsky::EventInterface | |
| ItemPtr | item |
| item or wire obtained by get*At() calls More... | |
| WirePtr | wire |
| item or wire obtained by get*At() calls More... | |
Private Member Functions | |
| CLASSDESC_ACCESS (VariablePane) | |
| bool | redraw (int, int, int width, int height) override |
Private Attributes | |
| unsigned | m_numRows =0 |
| unsigned | m_numCols =0 |
| classdesc::Exclude< std::vector< VariablePaneCell > > | vars |
Additional Inherited Members | |
Public Types inherited from minsky::JustificationStruct | |
| enum | Justification { left, right, centre } |
Public Types inherited from minsky::VariableType | |
| enum | Type { undefined, constant, parameter, flow, integral, stock, tempFlow, numVarTypes } |
Static Public Member Functions inherited from minsky::RenderNativeWindow | |
| static double | scaleFactor () |
Static Public Member Functions inherited from minsky::VariableType | |
| static std::string | typeName (int t) |
Static Public Attributes inherited from minsky::RenderNativeWindow | |
| static ecolab::cairo::Colour | backgroundColour {0.8,0.8,0.8,1} |
Definition at line 51 of file variablePane.h.
|
inline |
Definition at line 60 of file variablePane.h.
References minsky::VariableType::flow, minsky::VariableType::integral, minsky::VariableType::parameter, selection, and minsky::VariableType::stock.
|
overridevirtual |
return reference to cell row, col. Reference is valid until next call to cell()
Implements minsky::Grid< VariablePaneCell >.
Definition at line 70 of file variablePane.cc.
References m_numRows, and vars.
Referenced by mouseDown().

|
private |
|
inline |
|
inlineoverridevirtual |
whether cells all have the same height or not
Reimplemented from minsky::Grid< VariablePaneCell >.
Definition at line 70 of file variablePane.h.
|
inlineoverridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 72 of file variablePane.h.
References cell(), minsky::Grid< VariablePaneCell >::colX(), minsky::VariablePaneCell::emplace(), minsky::PannableTab< Base >::mouseDown(), minsky::PannableTabBase::offsx, minsky::PannableTabBase::offsy, minsky::Grid< VariablePaneCell >::rowY(), and shift.

|
overridevirtual |
move current cursor to x,y
Implements minsky::Grid< VariablePaneCell >.
Definition at line 116 of file variablePane.cc.
References minsky::PannableTabBase::offsx, and minsky::PannableTabBase::offsy.
|
inlineoverridevirtual |
Implements minsky::Grid< VariablePaneCell >.
Definition at line 69 of file variablePane.h.
References m_numCols.
|
inlineoverridevirtual |
Implements minsky::Grid< VariablePaneCell >.
Definition at line 68 of file variablePane.h.
References m_numRows.
|
overrideprivate |
Definition at line 105 of file variablePane.cc.
References minsky::Grid< Cell >::draw(), and vars.

|
inline |
| void minsky::VariablePane::update | ( | ) |
update variables from model, using previous height value
Definition at line 89 of file variablePane.cc.
References minsky::cminsky(), m_numCols, m_numRows, selection, and vars.
Referenced by updateWithHeight().


| void minsky::VariablePane::updateWithHeight | ( | unsigned | height | ) |
update variables from model, given a window of height pixels
Definition at line 81 of file variablePane.cc.
References m_numRows, and update().

|
private |
Definition at line 53 of file variablePane.h.
|
private |
Definition at line 53 of file variablePane.h.
Referenced by cell(), numRows(), update(), and updateWithHeight().
| std::set<Type> minsky::VariablePane::selection |
Definition at line 59 of file variablePane.h.
Referenced by deselect(), select(), update(), and VariablePane().
| bool minsky::VariablePane::shift =false |
|
private |
Definition at line 54 of file variablePane.h.