KiCad PCB EDA Suite
|
#include <dialog_color_picker.h>
Public Types | |
enum | HOLDER_TYPE { DIALOG , FRAME , PANEL } |
Public Member Functions | |
DIALOG_COLOR_PICKER (wxWindow *aParent, const KIGFX::COLOR4D &aCurrentColor, bool aAllowOpacityControl, CUSTOM_COLORS_LIST *aUserColors=nullptr, const KIGFX::COLOR4D &aDefaultColor=KIGFX::COLOR4D::UNSPECIFIED) | |
Dialog constructor. More... | |
~DIALOG_COLOR_PICKER () | |
KIGFX::COLOR4D | GetColor () |
void | SetInitialFocus (wxWindow *aWindow) |
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown. More... | |
int | ShowQuasiModal () |
void | EndQuasiModal (int retCode) |
bool | IsQuasiModal () const |
bool | Show (bool show) override |
bool | Enable (bool enable) override |
void | OnPaint (wxPaintEvent &event) |
void | OnModify () |
void | SetPosition (const wxPoint &aNewPosition) |
Force the position of the dialog to a new position. More... | |
EDA_UNITS | GetUserUnits () const |
void | SelectAllInTextCtrls (wxWindowList &children) |
void | SetupStandardButtons (std::map< int, wxString > aLabels={}) |
HOLDER_TYPE | GetType () const |
KIWAY & | Kiway () const |
Return a reference to the KIWAY that this object has an opportunity to participate in. More... | |
bool | HasKiway () const |
Safety check before asking for the Kiway reference. More... | |
PROJECT & | Prj () const |
Return a reference to the PROJECT associated with this KIWAY. More... | |
void | SetKiway (wxWindow *aDest, KIWAY *aKiway) |
It is only used for debugging, since "this" is not a wxWindow*. More... | |
Static Public Member Functions | |
static bool | IsCtrl (int aChar, const wxKeyEvent &e) |
static bool | IsShiftCtrl (int aChar, const wxKeyEvent &e) |
Protected Member Functions | |
void | finishDialogSettings () |
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls. More... | |
void | setSizeInDU (int x, int y) |
Set the dialog to the given dimensions in "dialog units". More... | |
int | horizPixelsFromDU (int x) const |
Convert an integer number of dialog units to pixels, horizontally. More... | |
int | vertPixelsFromDU (int y) const |
Convert an integer number of dialog units to pixels, vertically. More... | |
void | resetSize () |
Clear the existing dialog size and position. More... | |
virtual void | OnCharHook (wxKeyEvent &aEvt) |
Private Member Functions | |
void | SetEditVals (CHANGED_COLOR aChanged, bool aCheckTransparency) |
void | drawAll () |
void | createHSVBitmap () |
generate the bitmap that shows the HSV color circle More... | |
void | drawHSVPalette () |
draws the HSV color circle More... | |
void | createRGBBitmap () |
generate the bitmap that shows the RVB color space More... | |
void | drawRGBPalette () |
draws the RVB color space More... | |
void | updatePreview (wxStaticBitmap *aStaticBitmap, KIGFX::COLOR4D &aColor4D) |
Event handler from wxSlider: brightness (value) control. More... | |
void | OnChangeBrightness (wxScrollEvent &event) override |
Event handler from wxSlider: alpha (transparency) control. More... | |
void | OnChangeAlpha (wxScrollEvent &event) override |
Event handlers from wxSpinControl. More... | |
void | OnChangeEditRed (wxSpinEvent &event) override |
void | OnChangeEditGreen (wxSpinEvent &event) override |
void | OnChangeEditBlue (wxSpinEvent &event) override |
void | OnChangeEditHue (wxSpinEvent &event) override |
void | OnChangeEditSat (wxSpinEvent &event) override |
mouse handlers, when clicking on a palette bitmap More... | |
void | onRGBMouseClick (wxMouseEvent &event) override |
void | onRGBMouseDrag (wxMouseEvent &event) override |
void | onHSVMouseClick (wxMouseEvent &event) override |
void | onHSVMouseDrag (wxMouseEvent &event) override |
void | OnColorValueText (wxCommandEvent &event) override |
Event handler for the reset button press. More... | |
void | OnResetButton (wxCommandEvent &aEvent) override |
bool | setHSvaluesFromCursor (const wxPoint &aMouseCursor) |
Manage the Hue and Saturation settings when the mouse cursor is at aMouseCursor. More... | |
void | buttColorClick (wxMouseEvent &event) |
Event handler for double click on color buttons. More... | |
void | colorDClick (wxMouseEvent &event) |
called when creating the dialog More... | |
bool | TransferDataToWindow () override |
void | initDefinedColors (CUSTOM_COLORS_LIST *aPredefinedColors) |
Create the bitmap buttons for each defined colors. More... | |
int | normalizeToInt (double aValue, int aValMax=255) |
void | OnCloseWindow (wxCloseEvent &aEvent) |
Properly handle the wxCloseEvent when in the quasimodal mode when not calling EndQuasiModal which is possible with any dialog derived from DIALOG_SHIM. More... | |
void | OnButton (wxCommandEvent &aEvent) |
Properly handle the default button events when in the quasimodal mode when not calling EndQuasiModal which is possible with any dialog derived from DIALOG_SHIM. More... | |
void | onChildSetFocus (wxFocusEvent &aEvent) |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
bool | m_allowMouseEvents |
bool | m_allowOpacityCtrl |
true to show the widget, false to keep alpha channel = 1.0 More... | |
KIGFX::COLOR4D | m_previousColor4D |
the initial color4d More... | |
KIGFX::COLOR4D | m_newColor4D |
the current color4d More... | |
KIGFX::COLOR4D | m_defaultColor |
The default color4d. More... | |
std::vector< KIGFX::COLOR4D > | m_Color4DList |
the list of color4d ordered by button ID, for predefined colors More... | |
int | m_cursorsSize |
wxPoint | m_cursorBitmapRed |
the red cursor on the RGB bitmap palette. More... | |
wxPoint | m_cursorBitmapGreen |
the green cursor on the RGB bitmap palette. More... | |
wxPoint | m_cursorBitmapBlue |
the blue cursor on the RGB bitmap palette. More... | |
wxPoint | m_cursorBitmapHSV |
the cursor on the HSV bitmap palette. More... | |
wxPoint * | m_selectedCursor |
the ref cursor to the selected cursor, if any, or null. More... | |
double | m_hue |
the current hue, in degrees (0 ... 360) More... | |
double | m_sat |
the current saturation (0 ... 1.0) More... | |
double | m_val |
the current value (0 ... 1.0) More... | |
wxBitmap * | m_bitmapRGB |
the basic RGB palette More... | |
wxBitmap * | m_bitmapHSV |
the basic HUV palette More... | |
std::vector< wxStaticBitmap * > | m_colorSwatches |
list of defined colors buttons More... | |
KIWAY * | m_kiway |
HOLDER_TYPE | m_type |
Definition at line 77 of file dialog_color_picker.h.
|
inherited |
Enumerator | |
---|---|
DIALOG | |
FRAME | |
PANEL |
Definition at line 39 of file kiway_holder.h.
DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER | ( | wxWindow * | aParent, |
const KIGFX::COLOR4D & | aCurrentColor, | ||
bool | aAllowOpacityControl, | ||
CUSTOM_COLORS_LIST * | aUserColors = nullptr , |
||
const KIGFX::COLOR4D & | aDefaultColor = KIGFX::COLOR4D::UNSPECIFIED |
||
) |
Dialog constructor.
aParent | is the caller |
aCurrentColor | is the current color, used to show it in dialog |
aAllowOpacityControl | true to allow opacity (alpha channel) setting false to not show this setting (opacity = 1.0 always) |
aUserColors | if not null is a list of defined colors replacing the dialog predefined colors |
There are two types of color settings: theme colors and local overrides. Theme colors have a default value, and the Reset to Default button reverts to it. Local override colors have a default of UNSPECIFIED, which means "use the theme color". The underlying action is the same, but we change the label here because the action from the point of view of the user is slightly different.
Definition at line 45 of file dialog_color_picker.cpp.
References _, KIGFX::COLOR4D::a, APP_SETTINGS_BASE::COLOR_PICKER::default_tab, initDefinedColors(), Kiface(), KIFACE_BASE::KifaceSettings(), m_allowMouseEvents, m_allowOpacityCtrl, m_bitmapHSV, m_bitmapRGB, APP_SETTINGS_BASE::m_ColorPicker, m_cursorsSize, m_defaultColor, m_hue, m_newColor4D, DIALOG_COLOR_PICKER_BASE::m_notebook, m_previousColor4D, DIALOG_COLOR_PICKER_BASE::m_resetToDefault, m_sat, m_selectedCursor, DIALOG_COLOR_PICKER_BASE::m_SizerTransparency, m_val, DIALOG_SHIM::SetupStandardButtons(), and KIGFX::COLOR4D::ToHSV().
DIALOG_COLOR_PICKER::~DIALOG_COLOR_PICKER | ( | ) |
Definition at line 100 of file dialog_color_picker.cpp.
References buttColorClick(), APP_SETTINGS_BASE::COLOR_PICKER::default_tab, Kiface(), KIFACE_BASE::KifaceSettings(), m_bitmapHSV, m_bitmapRGB, APP_SETTINGS_BASE::m_ColorPicker, m_colorSwatches, and DIALOG_COLOR_PICKER_BASE::m_notebook.
|
private |
Event handler for double click on color buttons.
Definition at line 565 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::a, ALL_CHANGED, KIGFX::COLOR4D::b, color, drawAll(), KIGFX::COLOR4D::g, ID_COLOR_BLACK, m_Color4DList, m_hue, m_newColor4D, m_sat, m_val, KIGFX::COLOR4D::r, SetEditVals(), and KIGFX::COLOR4D::ToHSV().
Referenced by initDefinedColors(), and ~DIALOG_COLOR_PICKER().
|
private |
called when creating the dialog
Definition at line 559 of file dialog_color_picker.cpp.
Referenced by initDefinedColors().
|
private |
generate the bitmap that shows the HSV color circle
Definition at line 322 of file dialog_color_picker.cpp.
References color, m_bitmapHSV, m_cursorsSize, DIALOG_COLOR_PICKER_BASE::m_HsvBitmap, MAPX, and MAPY.
Referenced by drawHSVPalette().
|
private |
generate the bitmap that shows the RVB color space
Definition at line 228 of file dialog_color_picker.cpp.
References std::abs(), color, m_bitmapRGB, m_cursorsSize, DIALOG_COLOR_PICKER_BASE::m_RgbBitmap, MAPX, MAPY, and SLOPE_AXIS.
Referenced by drawRGBPalette().
|
privateinherited |
|
private |
Definition at line 542 of file dialog_color_picker.cpp.
References drawHSVPalette(), drawRGBPalette(), DIALOG_COLOR_PICKER_BASE::m_HsvBitmap, m_newColor4D, DIALOG_COLOR_PICKER_BASE::m_NewColorRect, DIALOG_COLOR_PICKER_BASE::m_RgbBitmap, and updatePreview().
Referenced by buttColorClick(), OnChangeBrightness(), OnChangeEditBlue(), OnChangeEditGreen(), OnChangeEditHue(), OnChangeEditRed(), OnChangeEditSat(), OnColorValueText(), onHSVMouseClick(), onHSVMouseDrag(), OnResetButton(), onRGBMouseDrag(), and TransferDataToWindow().
|
private |
draws the HSV color circle
Definition at line 456 of file dialog_color_picker.cpp.
References createHSVBitmap(), m_bitmapHSV, m_cursorBitmapHSV, m_cursorsSize, DIALOG_COLOR_PICKER_BASE::m_HsvBitmap, m_hue, and m_sat.
Referenced by drawAll().
|
private |
draws the RVB color space
repaint a static bitmap with the aColor4D color
Definition at line 386 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::b, createRGBBitmap(), KIGFX::COLOR4D::g, m_bitmapRGB, m_cursorBitmapBlue, m_cursorBitmapGreen, m_cursorBitmapRed, m_cursorsSize, m_newColor4D, DIALOG_COLOR_PICKER_BASE::m_RgbBitmap, KIGFX::COLOR4D::r, and SLOPE_AXIS.
Referenced by drawAll().
|
overrideinherited |
Definition at line 361 of file dialog_shim.cpp.
|
inherited |
Definition at line 544 of file dialog_shim.cpp.
References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, and DIALOG_SHIM::Show().
Referenced by EDA_3D_CONTROLLER::Main(), DIALOG_EXPORT_NETLIST::OnAddGenerator(), DIALOG_SHIM::OnButton(), DIALOG_EDIT_SYMBOLS_LIBID::onCancel(), DIALOG_LIB_SYMBOL_PROPERTIES::OnCancelButtonClick(), DIALOG_SYMBOL_PROPERTIES::OnCancelButtonClick(), DIALOG_LIB_EDIT_PIN_TABLE::OnClose(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EXPORT_NETLIST::OnDelGenerator(), DIALOG_SYMBOL_PROPERTIES::OnEditLibrarySymbol(), DIALOG_SYMBOL_PROPERTIES::OnEditSymbol(), DIALOG_SYMBOL_PROPERTIES::OnExchangeSymbol(), PCB_ONE_LAYER_SELECTOR::OnLeftGridCellClick(), PCB_ONE_LAYER_SELECTOR::OnRightGridCellClick(), DIALOG_SYMBOL_PROPERTIES::OnUpdateSymbol(), DIALOG_PUSH_PAD_PROPERTIES::PadPropertiesAccept(), and DIALOG_SHIM::~DIALOG_SHIM().
|
protectedinherited |
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls.
finishDialogSettings must be called from derived classes after all widgets have been initialized, and therefore their size fixed. If TransferDataToWindow() is used to initialize widgets, at the end of TransferDataToWindow, or better yet, at end of a wxInitDialogEvent handler.
Definition at line 186 of file dialog_shim.cpp.
Referenced by CONVERT_SETTINGS_DIALOG::CONVERT_SETTINGS_DIALOG(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DIALOG_BOM::DIALOG_BOM(), DIALOG_BOOK_REPORTER::DIALOG_BOOK_REPORTER(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_CLEANUP_TRACKS_AND_VIAS::DIALOG_CLEANUP_TRACKS_AND_VIAS(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DATABASE_LIB_SETTINGS::DIALOG_DATABASE_LIB_SETTINGS(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_DRAW_LAYERS_SETTINGS::DIALOG_DRAW_LAYERS_SETTINGS(), DIALOG_DRC::DIALOG_DRC(), DIALOG_EDIT_SYMBOLS_LIBID::DIALOG_EDIT_SYMBOLS_LIBID(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_ERC::DIALOG_ERC(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_2581::DIALOG_EXPORT_2581(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_NETLIST::DIALOG_EXPORT_NETLIST(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_EXPORT_SVG::DIALOG_EXPORT_SVG(), DIALOG_FOOTPRINT_CHECKER::DIALOG_FOOTPRINT_CHECKER(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GENCAD_EXPORT_OPTIONS::DIALOG_GENCAD_EXPORT_OPTIONS(), DIALOG_GIT_SWITCH::DIALOG_GIT_SWITCH(), DIALOG_GLOBAL_EDIT_TEARDROPS::DIALOG_GLOBAL_EDIT_TEARDROPS(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), DIALOG_IBIS_PARSER_REPORTER::DIALOG_IBIS_PARSER_REPORTER(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_IMPORT_CHOOSE_PROJECT::DIALOG_IMPORT_CHOOSE_PROJECT(), DIALOG_IMPORT_NETLIST::DIALOG_IMPORT_NETLIST(), DIALOG_IMPORTED_LAYERS::DIALOG_IMPORTED_LAYERS(), DIALOG_INSPECTOR::DIALOG_INSPECTOR(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LABEL_PROPERTIES::DIALOG_LABEL_PROPERTIES(), DIALOG_LIB_NEW_SYMBOL::DIALOG_LIB_NEW_SYMBOL(), DIALOG_LIB_SHAPE_PROPERTIES::DIALOG_LIB_SHAPE_PROPERTIES(), DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES(), DIALOG_LIB_TEXT_PROPERTIES::DIALOG_LIB_TEXT_PROPERTIES(), DIALOG_LIB_TEXTBOX_PROPERTIES::DIALOG_LIB_TEXTBOX_PROPERTIES(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), DIALOG_LOCKED_ITEMS_QUERY::DIALOG_LOCKED_ITEMS_QUERY(), DIALOG_MANAGE_REPOSITORIES::DIALOG_MANAGE_REPOSITORIES(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_NET_INSPECTOR::DIALOG_NET_INSPECTOR(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PASTE_SPECIAL::DIALOG_PASTE_SPECIAL(), DIALOG_PCM::DIALOG_PCM(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_PNS_SETTINGS::DIALOG_PNS_SETTINGS(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_PRINT_GENERIC::DIALOG_PRINT_GENERIC(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER(), DIALOG_PUSH_PAD_PROPERTIES::DIALOG_PUSH_PAD_PROPERTIES(), DIALOG_REFERENCE_IMAGE_PROPERTIES::DIALOG_REFERENCE_IMAGE_PROPERTIES(), DIALOG_REGULATOR_FORM::DIALOG_REGULATOR_FORM(), DIALOG_RULE_AREA_PROPERTIES::DIALOG_RULE_AREA_PROPERTIES(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), DIALOG_SELECT_3DMODEL::DIALOG_SELECT_3DMODEL(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_SHEET_PIN_PROPERTIES::DIALOG_SHEET_PIN_PROPERTIES(), DIALOG_SIM_MODEL< T_symbol, T_field >::DIALOG_SIM_MODEL(), DIALOG_SWAP_LAYERS::DIALOG_SWAP_LAYERS(), DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_UNUSED_PAD_LAYERS::DIALOG_UNUSED_PAD_LAYERS(), DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), DIALOG_UPDATE_SYMBOL_FIELDS::DIALOG_UPDATE_SYMBOL_FIELDS(), DIALOG_USER_DEFINED_SIGNALS::DIALOG_USER_DEFINED_SIGNALS(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), PAGED_DIALOG::finishInitialization(), DIALOG_FIELD_PROPERTIES::init(), DIALOG_EDIT_LIBRARY_TABLES::InstallPanel(), NETLIST_VIEW_DIALOG::NETLIST_VIEW_DIALOG(), DIALOG_SHEET_PROPERTIES::OnInitDlg(), DIALOG_SIM_COMMAND::onInitDlg(), DIALOG_SYMBOL_PROPERTIES::OnInitDlg(), TransferDataToWindow(), DIALOG_BOARD_STATISTICS::TransferDataToWindow(), and DIALOG_FOOTPRINT_ASSOCIATIONS::TransferDataToWindow().
|
inline |
Definition at line 94 of file dialog_color_picker.h.
References m_newColor4D.
Referenced by GRID_CELL_COLOR_SELECTOR::BeginEdit(), COLOR_SWATCH::GetNewSwatchColor(), and PANEL_SETUP_BOARD_STACKUP::onColorSelected().
|
inlineinherited |
Definition at line 46 of file kiway_holder.h.
References KIWAY_HOLDER::m_type.
Referenced by DIALOG_SHIM::DIALOG_SHIM().
|
inlineinherited |
Definition at line 122 of file dialog_shim.h.
References DIALOG_SHIM::m_units.
Referenced by DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_SHIM::DIALOG_SHIM(), DIALOG_DRC::OnSaveReport(), POSITION_RELATIVE_TOOL::PositionRelative(), DIALOG_POSITION_RELATIVE::updateAnchorInfo(), DIALOG_MOVE_EXACT::updateDialogControls(), and DIALOG_POSITION_RELATIVE::updateDialogControls().
|
inlineinherited |
Safety check before asking for the Kiway reference.
Definition at line 63 of file kiway_holder.h.
References KIWAY_HOLDER::m_kiway.
Referenced by DIALOG_SHIM::~DIALOG_SHIM().
|
protectedinherited |
Convert an integer number of dialog units to pixels, horizontally.
See SetSizeInDU or wxDialog documentation for more information.
Definition at line 204 of file dialog_shim.cpp.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE().
|
private |
Create the bitmap buttons for each defined colors.
If aPredefinedColors is nullptr, a internal predefined list will be used.
Definition at line 151 of file dialog_color_picker.cpp.
References buttColorClick(), CHECKERBOARD_SIZE_DU(), colorDClick(), colorRefs(), ID_COLOR_BLACK, CUSTOM_COLOR_ITEM::m_Color, m_Color4DList, CUSTOM_COLOR_ITEM::m_ColorName, m_colorSwatches, DIALOG_COLOR_PICKER_BASE::m_fgridColor, DIALOG_COLOR_PICKER_BASE::m_OldColorRect, DIALOG_COLOR_PICKER_BASE::m_panelDefinedColors, COLOR_SWATCH::MakeBitmap(), NBCOLORS, and SWATCH_SIZE_LARGE_DU().
Referenced by DIALOG_COLOR_PICKER().
|
inlinestaticinherited |
Definition at line 131 of file dialog_shim.h.
|
inlineinherited |
Definition at line 106 of file dialog_shim.h.
References DIALOG_SHIM::m_qmodal_showing.
Referenced by DIALOG_SHIM::EndQuasiModal(), EDA_3D_CONTROLLER::Main(), DIALOG_EXPORT_NETLIST::OnAddGenerator(), DIALOG_SHIM::OnButton(), DIALOG_EDIT_SYMBOLS_LIBID::onCancel(), DIALOG_BOOK_REPORTER::OnClose(), DIALOG_NET_INSPECTOR::onClose(), DIALOG_LIB_EDIT_PIN_TABLE::OnClose(), DIALOG_ERC::OnCloseErcDialog(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EXPORT_NETLIST::OnDelGenerator(), PCB_ONE_LAYER_SELECTOR::OnLeftGridCellClick(), PCB_ONE_LAYER_SELECTOR::OnRightGridCellClick(), DIALOG_PUSH_PAD_PROPERTIES::PadPropertiesAccept(), and DIALOG_SHIM::~DIALOG_SHIM().
|
inlinestaticinherited |
Definition at line 137 of file dialog_shim.h.
|
inlineinherited |
Return a reference to the KIWAY that this object has an opportunity to participate in.
A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.
Definition at line 53 of file kiway_holder.h.
References KIWAY_HOLDER::m_kiway.
Referenced by PROJECT_TREE_ITEM::Activate(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), CVPCB_MAINFRAME::BuildLibrariesList(), KICAD_MANAGER_FRAME::CloseProject(), COMMON_CONTROL::ConfigurePaths(), BOARD_INSPECTION_TOOL::constructDiffPanel(), PANEL_SYMBOL_CHOOSER::constructRightPanel(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), KIWAY_PLAYER::Destroy(), DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SHIM::DIALOG_SHIM(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FIELDS_GRID_TRICKS::doPopupSelection(), BOARD_EDITOR_CONTROL::EditFpInFpEditor(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), BACK_ANNOTATE::FetchNetlistFromPCB(), PANEL_SYMBOL_CHOOSER::FinishSetup(), IMPORT_PROJ_HELPER::ImportIndividualFile(), SCRIPTING_TOOL::Init(), EDA_DRAW_FRAME::IsScriptingConsoleVisible(), KIWAY_PLAYER::language_change(), KICAD_MANAGER_FRAME::language_change(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), PGM_SINGLE_TOP::MacOpenFile(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), PCB_CALCULATOR_FRAME::OnExit(), SIMULATOR_FRAME::onExit(), SAVE_AS_TRAVERSER::OnFile(), KIGFX::WX_VIEW_CONTROLS::onMotion(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_FIELD_PROPERTIES::OnTextValueSelectButtonClick(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), PANEL_FOOTPRINT_CHOOSER::PANEL_FOOTPRINT_CHOOSER(), KIWAY_HOLDER::Prj(), SIMULATOR_CONTROL::Probe(), SCH_EDIT_TOOL::Properties(), BACK_ANNOTATE::PushNewLinksToPCB(), SCH_EDITOR_CONTROL::rescueProject(), EE_INSPECTION_TOOL::RunSimulation(), CVPCB_MAINFRAME::SaveFootprintAssociation(), EDA_DRAW_FRAME::ScriptingConsoleEnableDisable(), CVPCB_MAINFRAME::SendComponentSelectionToSch(), CVPCB_CONTROL::ShowFootprintViewer(), showFrame(), COMMON_CONTROL::ShowLibraryTable(), COMMON_CONTROL::ShowPlayer(), KICAD_MANAGER_CONTROL::ShowPlayer(), KICAD_MANAGER_CONTROL::ShowPluginManager(), EDA_BASE_FRAME::ShowPreferences(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), FP_TREE_SYNCHRONIZING_ADAPTER::ShowPreview(), COMMON_CONTROL::ShowProjectManager(), SCH_EDITOR_CONTROL::SimProbe(), SCH_EDITOR_CONTROL::SimTune(), DIALOG_FOOTPRINT_ASSOCIATIONS::TransferDataToWindow(), SIMULATOR_CONTROL::Tune(), BOARD_EDITOR_CONTROL::UpdateSchematicFromPCB(), DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint(), and DIALOG_SHIM::~DIALOG_SHIM().
|
inlineprivate |
Definition at line 191 of file dialog_color_picker.h.
Referenced by SetEditVals().
|
privateinherited |
Properly handle the default button events when in the quasimodal mode when not calling EndQuasiModal which is possible with any dialog derived from DIALOG_SHIM.
Definition at line 590 of file dialog_shim.cpp.
References DIALOG_SHIM::EndQuasiModal(), ignore_unused(), and DIALOG_SHIM::IsQuasiModal().
Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::~DIALOG_SHIM().
|
overrideprivatevirtual |
Event handlers from wxSpinControl.
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 755 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::a, ALPHA_CHANGED, ALPHA_MAX, m_newColor4D, DIALOG_COLOR_PICKER_BASE::m_NewColorRect, SetEditVals(), and updatePreview().
|
overrideprivatevirtual |
Event handler from wxSlider: alpha (transparency) control.
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 821 of file dialog_color_picker.cpp.
References drawAll(), KIGFX::COLOR4D::FromHSV(), m_hue, m_newColor4D, m_sat, m_val, SetEditVals(), and VAL_CHANGED.
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 787 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::b, BLUE_CHANGED, drawAll(), m_newColor4D, and SetEditVals().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 777 of file dialog_color_picker.cpp.
References drawAll(), KIGFX::COLOR4D::g, GREEN_CHANGED, m_newColor4D, and SetEditVals().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 797 of file dialog_color_picker.cpp.
References drawAll(), KIGFX::COLOR4D::FromHSV(), HUE_CHANGED, m_hue, m_newColor4D, m_sat, m_val, and SetEditVals().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 767 of file dialog_color_picker.cpp.
References drawAll(), m_newColor4D, KIGFX::COLOR4D::r, RED_CHANGED, and SetEditVals().
|
overrideprivatevirtual |
mouse handlers, when clicking on a palette bitmap
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 809 of file dialog_color_picker.cpp.
References drawAll(), KIGFX::COLOR4D::FromHSV(), m_hue, m_newColor4D, m_sat, m_val, SAT_CHANGED, and SetEditVals().
|
protectedvirtualinherited |
Reimplemented in HK_PROMPT_DIALOG, and HTML_MESSAGE_BOX.
Definition at line 644 of file dialog_shim.cpp.
References delta, DIALOG_SHIM::m_beforeEditValues, DIALOG_SHIM::m_parentFrame, DIALOG_SHIM::m_tabOrder, and EDA_BASE_FRAME::ToggleUserUnits().
Referenced by DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), and DIALOG_TEXTBOX_PROPERTIES::~DIALOG_TEXTBOX_PROPERTIES().
|
privateinherited |
Definition at line 628 of file dialog_shim.cpp.
References DIALOG_SHIM::m_beforeEditValues, and DIALOG_SHIM::m_isClosing.
Referenced by DIALOG_SHIM::SelectAllInTextCtrls(), and DIALOG_SHIM::~DIALOG_SHIM().
|
privateinherited |
Properly handle the wxCloseEvent when in the quasimodal mode when not calling EndQuasiModal which is possible with any dialog derived from DIALOG_SHIM.
Definition at line 577 of file dialog_shim.cpp.
References DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::IsQuasiModal().
Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::~DIALOG_SHIM().
|
overrideprivatevirtual |
Event handler for the reset button press.
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 702 of file dialog_color_picker.cpp.
References drawAll(), HEX_CHANGED, DIALOG_COLOR_PICKER_BASE::m_colorValue, m_hue, m_newColor4D, m_sat, m_val, SetEditVals(), KIGFX::COLOR4D::SetFromHexString(), and KIGFX::COLOR4D::ToHSV().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 683 of file dialog_color_picker.cpp.
References drawAll(), m_allowMouseEvents, and setHSvaluesFromCursor().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 692 of file dialog_color_picker.cpp.
References drawAll(), m_allowMouseEvents, and setHSvaluesFromCursor().
|
inherited |
Definition at line 461 of file dialog_shim.cpp.
Referenced by DIALOG_LIB_SYMBOL_PROPERTIES::OnAddField(), DIALOG_SYMBOL_PROPERTIES::OnAddField(), DIALOG_LIB_SYMBOL_PROPERTIES::OnAddFootprintFilter(), DIALOG_LIB_SYMBOL_PROPERTIES::OnCheckBox(), DIALOG_SYMBOL_PROPERTIES::OnCheckBox(), DIALOG_LIB_SYMBOL_PROPERTIES::OnCombobox(), DIALOG_LIB_SYMBOL_PROPERTIES::OnDeleteField(), DIALOG_SYMBOL_PROPERTIES::OnDeleteField(), DIALOG_LIB_SYMBOL_PROPERTIES::OnDeleteFootprintFilter(), DIALOG_LIB_SYMBOL_PROPERTIES::OnEditFootprintFilter(), DIALOG_LIB_SYMBOL_PROPERTIES::OnEditSpiceModel(), DIALOG_SYMBOL_PROPERTIES::OnEditSpiceModel(), DIALOG_LIB_SYMBOL_PROPERTIES::OnMoveDown(), DIALOG_SYMBOL_PROPERTIES::OnMoveDown(), DIALOG_LIB_SYMBOL_PROPERTIES::OnMoveUp(), DIALOG_SYMBOL_PROPERTIES::OnMoveUp(), DIALOG_SYMBOL_PROPERTIES::OnPinTableCellEdited(), DIALOG_LIB_SYMBOL_PROPERTIES::onPowerCheckBox(), DIALOG_LIB_SYMBOL_PROPERTIES::OnSpinCtrl(), DIALOG_LIB_SYMBOL_PROPERTIES::OnSpinCtrlText(), DIALOG_LIB_SYMBOL_PROPERTIES::OnText(), and DIALOG_SYMBOL_PROPERTIES::OnUnitChoice().
|
inherited |
Definition at line 441 of file dialog_shim.cpp.
References KIPLATFORM::UI::FixupCancelButtonCmdKeyCollision(), KIPLATFORM::UI::ForceFocus(), DIALOG_SHIM::m_firstPaintEvent, DIALOG_SHIM::m_initialFocusTarget, and DIALOG_SHIM::SelectAllInTextCtrls().
Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::~DIALOG_SHIM().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 833 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::a, ALL_CHANGED, KIGFX::COLOR4D::b, drawAll(), KIGFX::COLOR4D::g, m_defaultColor, m_hue, m_newColor4D, m_sat, m_val, KIGFX::COLOR4D::r, SetEditVals(), and KIGFX::COLOR4D::ToHSV().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 583 of file dialog_color_picker.cpp.
References std::abs(), m_allowMouseEvents, m_bitmapRGB, m_cursorBitmapBlue, m_cursorBitmapGreen, m_cursorBitmapRed, m_cursorsSize, and m_selectedCursor.
|
overrideprivatevirtual |
Reimplemented from DIALOG_COLOR_PICKER_BASE.
Definition at line 623 of file dialog_color_picker.cpp.
References ALL_CHANGED, KIGFX::COLOR4D::b, drawAll(), KIGFX::COLOR4D::g, m_allowMouseEvents, m_bitmapRGB, m_cursorBitmapBlue, m_cursorBitmapGreen, m_cursorBitmapRed, m_cursorsSize, m_hue, m_newColor4D, m_sat, m_selectedCursor, m_val, KIGFX::COLOR4D::r, SetEditVals(), and KIGFX::COLOR4D::ToHSV().
|
inherited |
Return a reference to the PROJECT associated with this KIWAY.
Definition at line 36 of file kiway_holder.cpp.
References KIWAY_HOLDER::Kiway(), and KIWAY::Prj().
Referenced by SYMBOL_TREE_MODEL_ADAPTER::AddLibraries(), FP_TREE_MODEL_ADAPTER::AddLibraries(), SYMBOL_LIBRARY_MANAGER::addLibrary(), DIALOG_PLOT::applyPlotSettings(), AskSaveBoardFileName(), DIALOG_SYMBOL_REMAP::backupProject(), CVPCB_MAINFRAME::buildEquivalenceList(), CVPCB_MAINFRAME::BuildLibrariesList(), PCB_BASE_FRAME::canCloseWindow(), SIMULATOR_FRAME::canCloseWindow(), PANEL_FP_PROPERTIES_3D_MODEL::Cfg3DPath(), PANEL_SETUP_NETCLASSES::checkReload(), KICAD_MANAGER_FRAME::CloseProject(), PCB_BASE_FRAME::CreateNewFootprint(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_SVG::DIALOG_EXPORT_SVG(), DIALOG_GEN_FOOTPRINT_POSITION::DIALOG_GEN_FOOTPRINT_POSITION(), DIALOG_IBIS_PARSER_REPORTER::DIALOG_IBIS_PARSER_REPORTER(), DIALOG_IMPORT_NETLIST::DIALOG_IMPORT_NETLIST(), DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_PLOT::DIALOG_PLOT(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), EE_INSPECTION_TOOL::DiffSymbol(), PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), CVPCB_MAINFRAME::DisplayStatus(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FIELDS_GRID_TRICKS::doPopupSelection(), KICAD_MANAGER_CONTROL::Execute(), BOARD_EDITOR_CONTROL::ExportNetlist(), SYMBOL_EDITOR_CONTROL::ExportSymbolAsSVG(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), SYMBOL_EDITOR_CONTROL::ExportView(), BACK_ANNOTATE::FetchNetlistFromPCB(), PANEL_SYMBOL_CHOOSER::FinishSetup(), DIALOG_TEXT_PROPERTIES::getContextualTextVars(), SIMULATOR_CONTROL::getDefaultFilename(), SIMULATOR_CONTROL::getDefaultPath(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), SCH_BASE_FRAME::GetLibSymbol(), DIALOG_PLOT_SCHEMATIC::getOutputPath(), KICAD_MANAGER_FRAME::GetProjectFileName(), SCH_NAVIGATE_TOOL::HypertextCommand(), SCH_EDITOR_CONTROL::ImportFPAssignments(), PANEL_SETUP_RULES::ImportSettingsFrom(), DIALOG_PLOT::init_Dialog(), DIALOG_EXPORT_SVG::initDialog(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), FIELDS_GRID_TABLE< T >::initGrid(), SIMULATOR_FRAME_UI::InitWorkbook(), EDA_DRAW_FRAME::LibraryFileBrowser(), PCB_BASE_FRAME::loadFootprint(), CVPCB_MAINFRAME::LoadFootprintFiles(), KICAD_MANAGER_FRAME::LoadProject(), SIMULATOR_FRAME::LoadSettings(), EDA_BASE_FRAME::LoadWindowState(), SIMULATOR_FRAME_UI::LoadWorkbook(), EDA_3D_VIEWER_FRAME::NewDisplay(), PANEL_FP_PROPERTIES_3D_MODEL::On3DModelCellChanged(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), DIALOG_EXPORT_STEP::onBrowseClicked(), DIALOG_EXPORT_2581::onBrowseClicked(), KICAD_MANAGER_FRAME::OnBrowseInFileExplorer(), DIALOG_IMPORT_NETLIST::onBrowseNetlistFiles(), WX_HTML_REPORT_PANEL::onBtnSaveToFile(), TEXT_BUTTON_URL::OnButtonClick(), TEXT_BUTTON_FILE_BROWSER::OnButtonClick(), DIALOG_EDIT_SYMBOLS_LIBID::onClickOrphansButton(), DIALOG_SYMBOL_FIELDS_TABLE::OnExport(), DIALOG_EXPORT_STEP::onExportButton(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate(), DIALOG_GENDRILL::OnGenReportFile(), KICAD_MANAGER_FRAME::OnIdle(), DIALOG_CONFIG_EQUFILES::OnOkClick(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), DIALOG_EXPORT_SVG::OnOutputDirectoryBrowseClicked(), DIALOG_GEN_FOOTPRINT_POSITION::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_SYMBOL_FIELDS_TABLE::OnOutputFileBrowseClicked(), DIALOG_SCHEMATIC_SETUP::onPageChanged(), DIALOG_BOARD_SETUP::onPageChanged(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_ERC::OnSaveReport(), DIALOG_DRC::OnSaveReport(), PROPERTIES_FRAME::onScintillaCharAdded(), SCH_BASE_FRAME::OnSymChange(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), DIALOG_PAGES_SETTINGS::OnWksFileSelection(), PANEL_FOOTPRINT_CHOOSER::PANEL_FOOTPRINT_CHOOSER(), PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), PANEL_SETUP_NETCLASSES::PANEL_SETUP_NETCLASSES(), PANEL_SYMBOL_CHOOSER::PANEL_SYMBOL_CHOOSER(), SCH_EDITOR_CONTROL::Paste(), FOOTPRINT_EDITOR_CONTROL::PasteFootprint(), SYMBOL_EDITOR_CONTROL::PinLibrary(), FOOTPRINT_EDITOR_CONTROL::PinLibrary(), LIB_TREE_MODEL_ADAPTER::PinLibrary(), SCH_DRAWING_TOOLS::PlaceSymbol(), PANEL_SYMBOL_CHOOSER::populateFootprintSelector(), EDA_DRAW_FRAME::PrintDrawingSheet(), KICAD_MANAGER_FRAME::PrintPrjInfo(), CVPCB_MAINFRAME::readNetListAndFpFiles(), APPEARANCE_CONTROLS::rebuildNets(), PANEL_FP_PROPERTIES_3D_MODEL::ReloadModelsFromFootprint(), EDA_3D_VIEWER_FRAME::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), FOOTPRINT_EDITOR_CONTROL::RenameFootprint(), SCH_EDITOR_CONTROL::RescueLegacyProject(), SCH_EDITOR_CONTROL::RescueSymbolLibTableProject(), SAVE_AS_DIALOG::SAVE_AS_DIALOG(), FOOTPRINT_EDITOR_CONTROL::SaveAs(), DIALOG_BOARD_STATISTICS::saveReportClicked(), EDA_BASE_FRAME::SaveSettings(), SIMULATOR_FRAME::SaveSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), SIMULATOR_CONTROL::SaveWorkbook(), SIMULATOR_FRAME_UI::SaveWorkbook(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), SCH_BASE_FRAME::SelectSymLibTable(), PCB_BASE_FRAME::setFPWatcher(), GERBVIEW_FRAME::SetPageSettings(), SCH_BASE_FRAME::setSymWatcher(), DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties(), EE_INSPECTION_TOOL::ShowDatasheet(), PANEL_SYMBOL_CHOOSER::showFootprintFor(), COMMON_CONTROL::ShowHelp(), APPEARANCE_CONTROLS::showNetclass(), SCH_EDITOR_CONTROL::SimProbe(), SYMBOL_LIBRARY_MANAGER::symTable(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::Sync(), FP_TREE_SYNCHRONIZING_ADAPTER::Sync(), EDA_3D_VIEWER_FRAME::takeScreenshot(), DIALOG_EDIT_SYMBOLS_LIBID::TransferDataFromWindow(), DIALOG_EXPORT_NETLIST::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), DIALOG_ASSIGN_NETCLASS::TransferDataFromWindow(), DIALOG_EXPORT_2581::TransferDataFromWindow(), PANEL_SETUP_RULES::TransferDataFromWindow(), PANEL_SETUP_NETCLASSES::TransferDataToWindow(), DIALOG_EXPORT_2581::TransferDataToWindow(), PANEL_SETUP_RULES::TransferDataToWindow(), SYMBOL_EDITOR_CONTROL::UnpinLibrary(), FOOTPRINT_EDITOR_CONTROL::UnpinLibrary(), LIB_TREE_MODEL_ADAPTER::UnpinLibrary(), DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample(), SIMULATOR_FRAME::UpdateTitle(), SIMULATOR_FRAME_UI::UpdateTunerValue(), PANEL_FP_PROPERTIES_3D_MODEL::validateModelExists(), DIALOG_EXPORT_SVG::~DIALOG_EXPORT_SVG(), DIALOG_FOOTPRINT_PROPERTIES::~DIALOG_FOOTPRINT_PROPERTIES(), EDA_3D_VIEWER_FRAME::~EDA_3D_VIEWER_FRAME(), and PANEL_FP_PROPERTIES_3D_MODEL::~PANEL_FP_PROPERTIES_3D_MODEL().
|
protectedinherited |
Clear the existing dialog size and position.
This will cause the dialog size to be clear so the next time the dialog is shown the sizers will layout the dialog accordingly. This useful when there are dialog windows that size changes due to layout dependency hidden controls.
Definition at line 336 of file dialog_shim.cpp.
References class_map, and DIALOG_SHIM::m_hash_key.
Referenced by DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES(), and DIALOG_PAD_PROPERTIES::updatePadSizeControls().
|
inherited |
Definition at line 371 of file dialog_shim.cpp.
References ignore_unused(), DIALOG_SHIM::m_beforeEditValues, minSize, DIALOG_SHIM::onChildSetFocus(), and DIALOG_SHIM::SelectAllInTextCtrls().
Referenced by DIALOG_SHIM::OnPaint(), and DIALOG_SHIM::SelectAllInTextCtrls().
|
private |
Definition at line 502 of file dialog_color_picker.cpp.
References KIGFX::COLOR4D::a, ALPHA_MAX, KIGFX::COLOR4D::b, BLUE_CHANGED, KIGFX::COLOR4D::g, GREEN_CHANGED, HEX_CHANGED, HUE_CHANGED, DIALOG_COLOR_PICKER_BASE::m_colorValue, m_hue, m_newColor4D, m_sat, DIALOG_COLOR_PICKER_BASE::m_sliderBrightness, DIALOG_COLOR_PICKER_BASE::m_sliderTransparency, DIALOG_COLOR_PICKER_BASE::m_spinCtrlBlue, DIALOG_COLOR_PICKER_BASE::m_spinCtrlGreen, DIALOG_COLOR_PICKER_BASE::m_spinCtrlHue, DIALOG_COLOR_PICKER_BASE::m_spinCtrlRed, DIALOG_COLOR_PICKER_BASE::m_spinCtrlSaturation, m_val, normalizeToInt(), KIGFX::COLOR4D::r, RED_CHANGED, SAT_CHANGED, KIGFX::COLOR4D::ToHexString(), KIGFX::COLOR4D::ToHSV(), and VAL_CHANGED.
Referenced by buttColorClick(), OnChangeAlpha(), OnChangeBrightness(), OnChangeEditBlue(), OnChangeEditGreen(), OnChangeEditHue(), OnChangeEditRed(), OnChangeEditSat(), OnColorValueText(), OnResetButton(), onRGBMouseDrag(), setHSvaluesFromCursor(), and TransferDataToWindow().
|
private |
Manage the Hue and Saturation settings when the mouse cursor is at aMouseCursor.
aMouseCursor | is the mouse cursor position on the HSV bitmap |
Definition at line 714 of file dialog_color_picker.cpp.
References ALL_CHANGED, KIGFX::COLOR4D::FromHSV(), m_bitmapHSV, m_cursorBitmapHSV, m_cursorsSize, m_hue, m_newColor4D, m_sat, m_val, and SetEditVals().
Referenced by onHSVMouseClick(), and onHSVMouseDrag().
|
inlineinherited |
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
Definition at line 97 of file dialog_shim.h.
References DIALOG_SHIM::m_initialFocusTarget.
Referenced by DIALOG_BOM::DIALOG_BOM(), DIALOG_CONFIGURE_PATHS::DIALOG_CONFIGURE_PATHS(), DIALOG_FIND::DIALOG_FIND(), DIALOG_FOOTPRINT_CHOOSER::DIALOG_FOOTPRINT_CHOOSER(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_GET_FOOTPRINT_BY_NAME::DIALOG_GET_FOOTPRINT_BY_NAME(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), DIALOG_IMPORT_GFX_SCH::DIALOG_IMPORT_GFX_SCH(), DIALOG_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LABEL_PROPERTIES::DIALOG_LABEL_PROPERTIES(), DIALOG_LIB_SHAPE_PROPERTIES::DIALOG_LIB_SHAPE_PROPERTIES(), DIALOG_LIB_TEXT_PROPERTIES::DIALOG_LIB_TEXT_PROPERTIES(), DIALOG_LIB_TEXTBOX_PROPERTIES::DIALOG_LIB_TEXTBOX_PROPERTIES(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_LOCKED_ITEMS_QUERY::DIALOG_LOCKED_ITEMS_QUERY(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_PLUGIN_OPTIONS::DIALOG_PLUGIN_OPTIONS(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_SCH_FIND::DIALOG_SCH_FIND(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_SHEET_PIN_PROPERTIES::DIALOG_SHEET_PIN_PROPERTIES(), DIALOG_SYMBOL_CHOOSER::DIALOG_SYMBOL_CHOOSER(), DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), EDA_VIEW_SWITCHER::EDA_VIEW_SWITCHER(), HK_PROMPT_DIALOG::HK_PROMPT_DIALOG(), DIALOG_FIELD_PROPERTIES::init(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchAllClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchIDClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchRefClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchSelectedClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchValueClicked(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), SAVE_AS_DIALOG::SAVE_AS_DIALOG(), DIALOG_COPPER_ZONE::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), DIALOG_RULE_AREA_PROPERTIES::TransferDataToWindow(), WX_PT_ENTRY_DIALOG::WX_PT_ENTRY_DIALOG(), WX_TEXT_ENTRY_DIALOG::WX_TEXT_ENTRY_DIALOG(), and WX_UNIT_ENTRY_DIALOG::WX_UNIT_ENTRY_DIALOG().
|
inherited |
It is only used for debugging, since "this" is not a wxWindow*.
"this" is a KIWAY_HOLDER mix-in.
aDest | is the recipient of aKiway pointer. |
aKiway | is often from a parent window or from KIFACE::CreateKiWindow(). |
Definition at line 43 of file kiway_holder.cpp.
References ignore_unused(), KIWAY_HOLDER::m_kiway, and name.
Referenced by PCB::IFACE::CreateKiWindow(), InvokePcbLibTableEditor(), and InvokeSchEditSymbolLibTable().
|
inherited |
Force the position of the dialog to a new position.
aNewPosition | is the new forced position |
Definition at line 225 of file dialog_shim.cpp.
References class_map, and DIALOG_SHIM::m_hash_key.
Referenced by PCB_BASE_FRAME::SelectOneLayer().
|
protectedinherited |
Set the dialog to the given dimensions in "dialog units".
These are units equivalent to 4* the average character width and 8* the average character height, allowing a dialog to be sized in a way that scales it with the system font.
Definition at line 197 of file dialog_shim.cpp.
Referenced by HTML_MESSAGE_BOX::HTML_MESSAGE_BOX(), and HTML_MESSAGE_BOX::SetDialogSizeInDU().
|
inherited |
Definition at line 789 of file dialog_shim.cpp.
References recursiveDescent().
Referenced by CONVERT_SETTINGS_DIALOG::CONVERT_SETTINGS_DIALOG(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DIALOG_BOM::DIALOG_BOM(), DIALOG_BOOK_REPORTER::DIALOG_BOOK_REPORTER(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_CLEANUP_GRAPHICS::DIALOG_CLEANUP_GRAPHICS(), DIALOG_COLOR_PICKER(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_CONFIGURE_PATHS::DIALOG_CONFIGURE_PATHS(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY(), DIALOG_DATABASE_LIB_SETTINGS::DIALOG_DATABASE_LIB_SETTINGS(), DIALOG_DIELECTRIC_MATERIAL::DIALOG_DIELECTRIC_MATERIAL(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_DRAW_LAYERS_SETTINGS::DIALOG_DRAW_LAYERS_SETTINGS(), DIALOG_DRC::DIALOG_DRC(), DIALOG_ERC::DIALOG_ERC(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_2581::DIALOG_EXPORT_2581(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_NETLIST::DIALOG_EXPORT_NETLIST(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_EXPORT_SVG::DIALOG_EXPORT_SVG(), DIALOG_FILTER_SELECTION::DIALOG_FILTER_SELECTION(), DIALOG_FOOTPRINT_CHECKER::DIALOG_FOOTPRINT_CHECKER(), DIALOG_FOOTPRINT_CHOOSER::DIALOG_FOOTPRINT_CHOOSER(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GEN_FOOTPRINT_POSITION::DIALOG_GEN_FOOTPRINT_POSITION(), DIALOG_GENDRILL::DIALOG_GENDRILL(), DIALOG_GET_FOOTPRINT_BY_NAME::DIALOG_GET_FOOTPRINT_BY_NAME(), DIALOG_GIT_COMMIT::DIALOG_GIT_COMMIT(), DIALOG_GIT_REPOSITORY::DIALOG_GIT_REPOSITORY(), DIALOG_GLOBAL_DELETION::DIALOG_GLOBAL_DELETION(), DIALOG_GLOBAL_EDIT_TEARDROPS::DIALOG_GLOBAL_EDIT_TEARDROPS(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG(), DIALOG_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), DIALOG_IBIS_PARSER_REPORTER::DIALOG_IBIS_PARSER_REPORTER(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_IMPORT_CHOOSE_PROJECT::DIALOG_IMPORT_CHOOSE_PROJECT(), DIALOG_IMPORT_GFX_SCH::DIALOG_IMPORT_GFX_SCH(), DIALOG_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), DIALOG_IMPORT_NETLIST::DIALOG_IMPORT_NETLIST(), DIALOG_IMPORT_SETTINGS::DIALOG_IMPORT_SETTINGS(), DIALOG_IMPORTED_LAYERS::DIALOG_IMPORTED_LAYERS(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LABEL_PROPERTIES::DIALOG_LABEL_PROPERTIES(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_LIB_NEW_SYMBOL::DIALOG_LIB_NEW_SYMBOL(), DIALOG_LIB_SHAPE_PROPERTIES::DIALOG_LIB_SHAPE_PROPERTIES(), DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES(), DIALOG_LIB_TEXT_PROPERTIES::DIALOG_LIB_TEXT_PROPERTIES(), DIALOG_LIB_TEXTBOX_PROPERTIES::DIALOG_LIB_TEXTBOX_PROPERTIES(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_LOCKED_ITEMS_QUERY::DIALOG_LOCKED_ITEMS_QUERY(), DIALOG_MIGRATE_SETTINGS::DIALOG_MIGRATE_SETTINGS(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_NET_INSPECTOR::DIALOG_NET_INSPECTOR(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_PCM::DIALOG_PCM(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_PLOT::DIALOG_PLOT(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_PLUGIN_OPTIONS::DIALOG_PLUGIN_OPTIONS(), DIALOG_PNS_DIFF_PAIR_DIMENSIONS::DIALOG_PNS_DIFF_PAIR_DIMENSIONS(), DIALOG_PNS_SETTINGS::DIALOG_PNS_SETTINGS(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_PRINT_GENERIC::DIALOG_PRINT_GENERIC(), DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER(), DIALOG_PUSH_PAD_PROPERTIES::DIALOG_PUSH_PAD_PROPERTIES(), DIALOG_REFERENCE_IMAGE_PROPERTIES::DIALOG_REFERENCE_IMAGE_PROPERTIES(), DIALOG_REGULATOR_FORM::DIALOG_REGULATOR_FORM(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_RULE_AREA_PROPERTIES::DIALOG_RULE_AREA_PROPERTIES(), DIALOG_SCH_IMPORT_SETTINGS::DIALOG_SCH_IMPORT_SETTINGS(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_SHEET_PIN_PROPERTIES::DIALOG_SHEET_PIN_PROPERTIES(), DIALOG_SHEET_PROPERTIES::DIALOG_SHEET_PROPERTIES(), DIALOG_SIM_COMMAND::DIALOG_SIM_COMMAND(), DIALOG_SWAP_LAYERS::DIALOG_SWAP_LAYERS(), DIALOG_SYMBOL_CHOOSER::DIALOG_SYMBOL_CHOOSER(), DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_TUNING_PATTERN_PROPERTIES::DIALOG_TUNING_PATTERN_PROPERTIES(), DIALOG_UNUSED_PAD_LAYERS::DIALOG_UNUSED_PAD_LAYERS(), DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), DIALOG_UPDATE_SYMBOL_FIELDS::DIALOG_UPDATE_SYMBOL_FIELDS(), DIALOG_USER_DEFINED_SIGNALS::DIALOG_USER_DEFINED_SIGNALS(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), EDA_LIST_DIALOG::EDA_LIST_DIALOG(), EDA_REORDERABLE_LIST_DIALOG::EDA_REORDERABLE_LIST_DIALOG(), HTML_MESSAGE_BOX::HTML_MESSAGE_BOX(), DIALOG_FIELD_PROPERTIES::init(), DIALOG_EDIT_LIBRARY_TABLES::InstallPanel(), NETLIST_DIALOG_ADD_GENERATOR::NETLIST_DIALOG_ADD_GENERATOR(), PAGED_DIALOG::PAGED_DIALOG(), SAVE_AS_DIALOG::SAVE_AS_DIALOG(), DIALOG_CLEANUP_TRACKS_AND_VIAS::setupOKButtonLabel(), WX_PT_ENTRY_DIALOG::WX_PT_ENTRY_DIALOG(), WX_TEXT_ENTRY_DIALOG::WX_TEXT_ENTRY_DIALOG(), and WX_UNIT_ENTRY_DIALOG::WX_UNIT_ENTRY_DIALOG().
|
overrideinherited |
Definition at line 254 of file dialog_shim.cpp.
References class_map, DIALOG_SHIM::m_hash_key, DIALOG_SHIM::m_initialSize, and DIALOG_SHIM::m_useCalculatedSize.
Referenced by FOOTPRINT_EDITOR_CONTROL::CheckFootprint(), FOOTPRINT_EDITOR_CONTROL::CrossProbe(), EE_INSPECTION_TOOL::CrossProbe(), DRC_TOOL::CrossProbe(), BOARD_INSPECTION_TOOL::DiffFootprint(), EE_INSPECTION_TOOL::DiffSymbol(), SCH_EDITOR_CONTROL::EditSymbolFields(), DIALOG_SHIM::EndQuasiModal(), GROUP_TOOL::GroupProperties(), HOTKEY_CYCLE_POPUP::HOTKEY_CYCLE_POPUP(), BOARD_INSPECTION_TOOL::InspectClearance(), BOARD_INSPECTION_TOOL::InspectConstraints(), BOARD_INSPECTION_TOOL::InspectDRCError(), BOARD_INSPECTION_TOOL::ListNets(), EE_INSPECTION_TOOL::NextMarker(), DRC_TOOL::NextMarker(), SCH_EDIT_FRAME::OnAnnotate(), DIALOG_DRC::OnDRCItemDClick(), DIALOG_ERC::OnERCItemDClick(), DIALOG_CLEANUP_GRAPHICS::OnLeftDClickItem(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnLeftDClickItem(), DIALOG_FOOTPRINT_CHECKER::OnLeftDClickItem(), GROUP_TOOL::PickNewMember(), HOTKEY_CYCLE_POPUP::Popup(), POSITION_RELATIVE_TOOL::PositionRelative(), EE_INSPECTION_TOOL::PrevMarker(), DRC_TOOL::PrevMarker(), CVPCB_MAINFRAME::readNetListAndFpFiles(), DIALOG_PAD_PROPERTIES::Show(), EDA_VIEW_SWITCHER::Show(), EDA_LIST_DIALOG::Show(), DIALOG_FIND::Show(), DRC_TOOL::ShowDRCDialog(), EE_INSPECTION_TOOL::ShowERCDialog(), SCH_EDIT_FRAME::ShowFindReplaceDialog(), GENERATOR_TOOL::ShowGeneratorsManager(), HTML_MESSAGE_BOX::ShowModeless(), DIALOG_SHIM::ShowQuasiModal(), and DIALOG_POSITION_RELATIVE::UpdateAnchor().
|
inherited |
Definition at line 491 of file dialog_shim.cpp.
References DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, KIPLATFORM::UI::ReparentQuasiModal(), DIALOG_SHIM::Show(), and WX_EVENT_LOOP.
Referenced by SCH_EDIT_TOOL::ChangeSymbols(), S3D::Configure3DPaths(), MICROWAVE_TOOL::createFootprint(), PCB::IFACE::CreateKiWindow(), MICROWAVE_TOOL::createMicrowaveInductor(), SCH_DRAWING_TOOLS::createNewText(), SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SCH_DRAWING_TOOLS::DrawShape(), SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties(), SCH_EDIT_TOOL::editFieldText(), SYMBOL_EDITOR_EDIT_TOOL::editSymbolProperties(), GLOBAL_EDIT_TOOL::EditTeardrops(), GLOBAL_EDIT_TOOL::EditTracksAndVias(), SIMULATOR_CONTROL::EditUserDefinedSignals(), GLOBAL_EDIT_TOOL::ExchangeFootprints(), InvokeCopperZonesEditor(), InvokeDialogCreateBOM(), InvokeDialogEditSymbolsLibId(), InvokeDialogRescueEach(), InvokeNonCopperZonesEditor(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), PCB_EDIT_FRAME::OnEditItemRequest(), SCH_EDIT_FRAME::OpenProjectFiles(), DRAWING_TOOL::PlaceText(), SCH_EDIT_TOOL::Properties(), EDIT_TOOL::Properties(), SCH_EDITOR_CONTROL::RemapSymbols(), S3D::Select3DModel(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), PCB_EDIT_FRAME::ShowExchangeFootprintsDialog(), PCB_BASE_EDIT_FRAME::ShowGraphicItemPropertiesDialog(), PCB_BASE_FRAME::ShowPadPropertiesDialog(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), PCB_BASE_EDIT_FRAME::ShowTextBoxPropertiesDialog(), PCB_BASE_EDIT_FRAME::ShowTextPropertiesDialog(), and PCB_EDIT_FRAME::ToPlotter().
|
overrideprivate |
Definition at line 128 of file dialog_color_picker.cpp.
References ALL_CHANGED, configureSpinCtrl(), drawAll(), DIALOG_SHIM::finishDialogSettings(), DIALOG_COLOR_PICKER_BASE::m_notebook, DIALOG_COLOR_PICKER_BASE::m_OldColorRect, m_previousColor4D, DIALOG_COLOR_PICKER_BASE::m_spinCtrlBlue, DIALOG_COLOR_PICKER_BASE::m_spinCtrlGreen, DIALOG_COLOR_PICKER_BASE::m_spinCtrlHue, DIALOG_COLOR_PICKER_BASE::m_spinCtrlRed, DIALOG_COLOR_PICKER_BASE::m_spinCtrlSaturation, SetEditVals(), and updatePreview().
|
private |
Event handler from wxSlider: brightness (value) control.
Definition at line 119 of file dialog_color_picker.cpp.
References CHECKERBOARD_SIZE_DU(), and COLOR_SWATCH::MakeBitmap().
Referenced by drawAll(), OnChangeAlpha(), and TransferDataToWindow().
|
protectedinherited |
Convert an integer number of dialog units to pixels, vertically.
See SetSizeInDU or wxDialog documentation for more information.
Definition at line 211 of file dialog_shim.cpp.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE().
|
private |
Definition at line 103 of file dialog_color_picker.h.
Referenced by DIALOG_COLOR_PICKER(), onHSVMouseClick(), onHSVMouseDrag(), onRGBMouseClick(), and onRGBMouseDrag().
|
private |
true to show the widget, false to keep alpha channel = 1.0
Definition at line 104 of file dialog_color_picker.h.
Referenced by DIALOG_COLOR_PICKER().
|
protectedinherited |
Definition at line 231 of file dialog_shim.h.
Referenced by DIALOG_SHIM::OnCharHook(), DIALOG_SHIM::onChildSetFocus(), and DIALOG_SHIM::SelectAllInTextCtrls().
|
private |
the basic HUV palette
Definition at line 125 of file dialog_color_picker.h.
Referenced by createHSVBitmap(), DIALOG_COLOR_PICKER(), drawHSVPalette(), setHSvaluesFromCursor(), and ~DIALOG_COLOR_PICKER().
|
private |
the basic RGB palette
Definition at line 124 of file dialog_color_picker.h.
Referenced by createRGBBitmap(), DIALOG_COLOR_PICKER(), drawRGBPalette(), onRGBMouseClick(), onRGBMouseDrag(), and ~DIALOG_COLOR_PICKER().
|
private |
the list of color4d ordered by button ID, for predefined colors
Definition at line 111 of file dialog_color_picker.h.
Referenced by buttColorClick(), and initDefinedColors().
|
private |
list of defined colors buttons
Definition at line 127 of file dialog_color_picker.h.
Referenced by initDefinedColors(), and ~DIALOG_COLOR_PICKER().
|
protectedinherited |
Definition at line 70 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), OnColorValueText(), SetEditVals(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
private |
the blue cursor on the RGB bitmap palette.
Definition at line 116 of file dialog_color_picker.h.
Referenced by drawRGBPalette(), onRGBMouseClick(), and onRGBMouseDrag().
|
private |
the green cursor on the RGB bitmap palette.
Definition at line 115 of file dialog_color_picker.h.
Referenced by drawRGBPalette(), onRGBMouseClick(), and onRGBMouseDrag().
|
private |
the cursor on the HSV bitmap palette.
Definition at line 117 of file dialog_color_picker.h.
Referenced by drawHSVPalette(), and setHSvaluesFromCursor().
|
private |
the red cursor on the RGB bitmap palette.
Definition at line 114 of file dialog_color_picker.h.
Referenced by drawRGBPalette(), onRGBMouseClick(), and onRGBMouseDrag().
|
private |
Definition at line 112 of file dialog_color_picker.h.
Referenced by createHSVBitmap(), createRGBBitmap(), DIALOG_COLOR_PICKER(), drawHSVPalette(), drawRGBPalette(), onRGBMouseClick(), onRGBMouseDrag(), and setHSvaluesFromCursor().
|
private |
The default color4d.
Definition at line 108 of file dialog_color_picker.h.
Referenced by DIALOG_COLOR_PICKER(), and OnResetButton().
|
protectedinherited |
Definition at line 63 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), and initDefinedColors().
|
protectedinherited |
Definition at line 214 of file dialog_shim.h.
Referenced by DIALOG_SHIM::OnPaint().
|
protectedinherited |
Definition at line 205 of file dialog_shim.h.
Referenced by CONVERT_SETTINGS_DIALOG::CONVERT_SETTINGS_DIALOG(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_LABEL_PROPERTIES::DIALOG_LABEL_PROPERTIES(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), EDA_LIST_DIALOG::EDA_LIST_DIALOG(), EDA_REORDERABLE_LIST_DIALOG::EDA_REORDERABLE_LIST_DIALOG(), PAGED_DIALOG::PAGED_DIALOG(), DIALOG_SHIM::resetSize(), DIALOG_SHIM::SetPosition(), and DIALOG_SHIM::Show().
|
protectedinherited |
Definition at line 54 of file dialog_color_picker_base.h.
Referenced by createHSVBitmap(), DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), drawAll(), drawHSVPalette(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
private |
the current hue, in degrees (0 ... 360)
Definition at line 120 of file dialog_color_picker.h.
Referenced by buttColorClick(), DIALOG_COLOR_PICKER(), drawHSVPalette(), OnChangeBrightness(), OnChangeEditHue(), OnChangeEditSat(), OnColorValueText(), OnResetButton(), onRGBMouseDrag(), SetEditVals(), and setHSvaluesFromCursor().
|
protectedinherited |
Definition at line 215 of file dialog_shim.h.
Referenced by DIALOG_SHIM::OnPaint(), and DIALOG_SHIM::SetInitialFocus().
|
protectedinherited |
Definition at line 228 of file dialog_shim.h.
Referenced by DIALOG_SHIM::Show().
|
protectedinherited |
Definition at line 216 of file dialog_shim.h.
Referenced by DIALOG_SHIM::onChildSetFocus(), and DIALOG_SHIM::~DIALOG_SHIM().
|
privateinherited |
Definition at line 84 of file kiway_holder.h.
Referenced by KIWAY_HOLDER::HasKiway(), KIWAY_HOLDER::Kiway(), and KIWAY_HOLDER::SetKiway().
|
private |
the current color4d
Definition at line 107 of file dialog_color_picker.h.
Referenced by buttColorClick(), DIALOG_COLOR_PICKER(), drawAll(), drawRGBPalette(), GetColor(), OnChangeAlpha(), OnChangeBrightness(), OnChangeEditBlue(), OnChangeEditGreen(), OnChangeEditHue(), OnChangeEditRed(), OnChangeEditSat(), OnColorValueText(), OnResetButton(), onRGBMouseDrag(), SetEditVals(), and setHSvaluesFromCursor().
|
protectedinherited |
Definition at line 69 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), drawAll(), and OnChangeAlpha().
|
protectedinherited |
Definition at line 45 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER(), DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), TransferDataToWindow(), and ~DIALOG_COLOR_PICKER().
|
protectedinherited |
Definition at line 68 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), initDefinedColors(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 65 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 61 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), and initDefinedColors().
|
protectedinherited |
Definition at line 46 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 223 of file dialog_shim.h.
Referenced by DIALOG_ANNOTATE::InitValues(), DIALOG_SHIM::OnCharHook(), DIALOG_PAGES_SETTINGS::OnWksFileSelection(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), and DIALOG_ANNOTATE::~DIALOG_ANNOTATE().
|
private |
the initial color4d
Definition at line 106 of file dialog_color_picker.h.
Referenced by DIALOG_COLOR_PICKER(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 218 of file dialog_shim.h.
Referenced by DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().
|
protectedinherited |
Definition at line 221 of file dialog_shim.h.
Referenced by DIALOG_SHIM::EndQuasiModal(), DIALOG_SHIM::ShowQuasiModal(), and DIALOG_SHIM::~DIALOG_SHIM().
|
protectedinherited |
Definition at line 220 of file dialog_shim.h.
Referenced by DIALOG_SHIM::IsQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().
|
protectedinherited |
Definition at line 71 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER(), DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 47 of file dialog_color_picker_base.h.
Referenced by createRGBBitmap(), DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), drawAll(), drawRGBPalette(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
private |
the current saturation (0 ... 1.0)
Definition at line 121 of file dialog_color_picker.h.
Referenced by buttColorClick(), DIALOG_COLOR_PICKER(), drawHSVPalette(), OnChangeBrightness(), OnChangeEditHue(), OnChangeEditSat(), OnColorValueText(), OnResetButton(), onRGBMouseDrag(), SetEditVals(), and setHSvaluesFromCursor().
|
protectedinherited |
Definition at line 72 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 74 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 73 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
private |
the ref cursor to the selected cursor, if any, or null.
Definition at line 118 of file dialog_color_picker.h.
Referenced by DIALOG_COLOR_PICKER(), onRGBMouseClick(), and onRGBMouseDrag().
|
protectedinherited |
Definition at line 62 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 64 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER(), and DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 60 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 66 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 53 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), TransferDataToWindow(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 52 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), TransferDataToWindow(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 57 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), TransferDataToWindow(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 51 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), TransferDataToWindow(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 58 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE(), SetEditVals(), TransferDataToWindow(), and DIALOG_COLOR_PICKER_BASE::~DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 50 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 59 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 49 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 55 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 67 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 48 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 56 of file dialog_color_picker_base.h.
Referenced by DIALOG_COLOR_PICKER_BASE::DIALOG_COLOR_PICKER_BASE().
|
protectedinherited |
Definition at line 225 of file dialog_shim.h.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), and DIALOG_SHIM::OnCharHook().
|
privateinherited |
Definition at line 85 of file kiway_holder.h.
Referenced by KIWAY_HOLDER::GetType().
|
protectedinherited |
Definition at line 204 of file dialog_shim.h.
Referenced by DIALOG_SHIM::GetUserUnits(), DIALOG_GEN_FOOTPRINT_POSITION::initDialog(), DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate(), DIALOG_GENERATORS::onUnitsChanged(), and DIALOG_NET_INSPECTOR::onUnitsChanged().
|
protectedinherited |
Definition at line 209 of file dialog_shim.h.
Referenced by DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), PCB_ONE_LAYER_SELECTOR::PCB_ONE_LAYER_SELECTOR(), and DIALOG_SHIM::Show().
|
private |
the current value (0 ... 1.0)
Definition at line 122 of file dialog_color_picker.h.
Referenced by buttColorClick(), DIALOG_COLOR_PICKER(), OnChangeBrightness(), OnChangeEditHue(), OnChangeEditSat(), OnColorValueText(), OnResetButton(), onRGBMouseDrag(), SetEditVals(), and setHSvaluesFromCursor().