Browse Source
Modular-Kicad milestone B), major portions:
Modular-Kicad milestone B), major portions:
*) Rework the set language support, simplify it by using KIWAY. Now any major frame with a "change language" menu can change the language for all KIWAY_PLAYERs in the whole KIWAY. Multiple KIWAYs are not supported yet. *) Simplify "modal wxFrame" support, and add that support exclusively to KIWAY_PLAYER where it is inherited by all derivatives. The function KIWAY_PLAYER::ShowModal() is in the vtable and so is cross module capable. *) Remove the requirements and assumptions that the wxFrame hierarchy always had PCB_EDIT_FRAME and SCH_EDIT_FRAME as immediate parents of their viewers and editors. This is no longer the case, nor required. *) Use KIWAY::Player() everywhere to make KIWAY_PLAYERs, this registers the KIWAY_PLAYER within the KIWAY and makes it very easy to find an open frame quickly. It also gives control to the KIWAY as to frame hierarchical relationships. *) Change single_top to use the KIWAY for loading a KIFACE and instantiating the single KIWAY_PLAYER, see bullet immediately above. *) Add KIWAY::OnKiwayEnd() and call it from PGM_BASE at program termination, this gives the KIFACEs a chance to save their final configuration dope to disk. *) Add dedicated FRAME_T's for the modal frames, so m_Ident can be tested and these modal frames are distinctly different than their non-modal equivalents. KIWAY_PLAYER::IsModal() is !not! a valid test during the wxFrame's constructor, so this is another important reason for having a dedicated FRAME_T for each modal wxFrame. On balance, more lines were deleted than were added to achieve all this.pull/1/head
63 changed files with 767 additions and 846 deletions
-
2bitmap2component/CMakeLists.txt
-
30common/basicframe.cpp
-
1common/colors.cpp
-
6common/draw_frame.cpp
-
41common/fpid.cpp
-
99common/kiway.cpp
-
148common/kiway_player.cpp
-
2common/pgm_base.cpp
-
126common/single_top.cpp
-
8cvpcb/cvframe.cpp
-
6cvpcb/cvpcb_mainframe.h
-
2eeschema/block_libedit.cpp
-
10eeschema/eeschema.cpp
-
31eeschema/eeschema_config.cpp
-
24eeschema/getpart.cpp
-
74eeschema/libeditframe.cpp
-
13eeschema/libeditframe.h
-
9eeschema/sch_base_frame.cpp
-
2eeschema/schedit.cpp
-
51eeschema/schframe.cpp
-
2eeschema/sheet.cpp
-
4eeschema/tool_viewlib.cpp
-
111eeschema/viewlib_frame.cpp
-
27eeschema/viewlib_frame.h
-
41gerbview/events_called_functions.cpp
-
6gerbview/gerbview_frame.h
-
7include/draw_frame.h
-
20include/fpid.h
-
21include/frame_type.h
-
2include/kiface_i.h
-
59include/kiway.h
-
57include/kiway_player.h
-
6include/wxEeschemaStruct.h
-
6include/wxPcbStruct.h
-
23include/wxstruct.h
-
4kicad/kicad.cpp
-
3kicad/kicad.h
-
8kicad/mainframe.cpp
-
19kicad/menubar.cpp
-
5kicad/preferences.cpp
-
17pagelayout_editor/events_functions.cpp
-
6pagelayout_editor/pl_editor_frame.h
-
3pcb_calculator/CMakeLists.txt
-
1pcb_calculator/pcb_calculator_frame.cpp
-
2pcbnew/block_module_editor.cpp
-
28pcbnew/edit.cpp
-
12pcbnew/editmod.cpp
-
2pcbnew/footprint_wizard.cpp
-
58pcbnew/footprint_wizard_frame.cpp
-
28pcbnew/footprint_wizard_frame.h
-
3pcbnew/gpcb_plugin.cpp
-
6pcbnew/kicad_plugin.cpp
-
2pcbnew/librairi.cpp
-
27pcbnew/loadcmp.cpp
-
72pcbnew/modedit.cpp
-
13pcbnew/module_editor_frame.h
-
15pcbnew/moduleframe.cpp
-
116pcbnew/modview_frame.cpp
-
42pcbnew/modview_frame.h
-
12pcbnew/pcbframe.cpp
-
25pcbnew/pcbnew.cpp
-
2pcbnew/pcbnew_config.cpp
-
5pcbnew/tool_modview.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue