KiCad PCB EDA Suite
|
Common grid settings, available to every frame. More...
#include <grid_settings.h>
Public Member Functions | |
bool | operator== (const GRID &aOther) const |
wxString | MessageText (EDA_IU_SCALE aScale, EDA_UNITS aUnits, bool aDisplayUnits=true) const |
Returns a string representation of the grid in specified units. | |
wxString | UserUnitsMessageText (UNITS_PROVIDER *aProvider, bool aDisplayUnits=true) const |
Returns a string representation of the grid in the user's units. | |
VECTOR2D | ToDouble (EDA_IU_SCALE aScale) const |
Public Attributes | |
wxString | name |
wxString | x |
wxString | y |
Common grid settings, available to every frame.
Definition at line 33 of file grid_settings.h.
wxString GRID::MessageText | ( | EDA_IU_SCALE | aScale, |
EDA_UNITS | aUnits, | ||
bool | aDisplayUnits = true |
||
) | const |
Returns a string representation of the grid in specified units.
Will reduce to a single dimension if the grid is square.
Definition at line 28 of file grid_settings.cpp.
References EDA_UNIT_UTILS::UI::DoubleValueFromString(), EDA_UNIT_UTILS::UI::MessageTextFromValue(), x, and y.
Referenced by GRID_MENU::BuildChoiceList(), and UserUnitsMessageText().
bool GRID::operator== | ( | const GRID & | aOther | ) | const |
Definition at line 62 of file grid_settings.cpp.
VECTOR2D GRID::ToDouble | ( | EDA_IU_SCALE | aScale | ) | const |
Definition at line 53 of file grid_settings.cpp.
References EDA_UNIT_UTILS::UI::DoubleValueFromString(), x, and y.
Referenced by DIALOG_GRID_SETTINGS::TransferDataToWindow().
wxString GRID::UserUnitsMessageText | ( | UNITS_PROVIDER * | aProvider, |
bool | aDisplayUnits = true |
||
) | const |
Returns a string representation of the grid in the user's units.
Will reduce to a single dimension if the grid is square.
Definition at line 47 of file grid_settings.cpp.
References UNITS_PROVIDER::GetIuScale(), UNITS_PROVIDER::GetUserUnits(), and MessageText().
wxString GRID::name |
Definition at line 51 of file grid_settings.h.
Referenced by GRID_MENU::BuildChoiceList(), from_json(), operator<(), operator==(), to_json(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), and DIALOG_GRID_SETTINGS::TransferDataToWindow().
wxString GRID::x |
Definition at line 52 of file grid_settings.h.
Referenced by from_json(), MessageText(), operator==(), COMMON_TOOLS::Reset(), to_json(), ToDouble(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), and DIALOG_GRID_SETTINGS::TransferDataToWindow().
wxString GRID::y |
Definition at line 53 of file grid_settings.h.
Referenced by from_json(), MessageText(), operator==(), COMMON_TOOLS::Reset(), to_json(), ToDouble(), DIALOG_GRID_SETTINGS::TransferDataFromWindow(), and DIALOG_GRID_SETTINGS::TransferDataToWindow().