2014-10-22 15:51:34 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 CERN
|
2024-01-23 01:02:50 +00:00
|
|
|
* Copyright (C) 1992-2024 KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-22 15:51:34 +00:00
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2014-04-19 18:47:20 +00:00
|
|
|
#ifndef FRAME_T_H_
|
|
|
|
#define FRAME_T_H_
|
|
|
|
|
|
|
|
/**
|
2020-12-19 16:00:52 +00:00
|
|
|
* The set of #EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
|
2014-04-19 18:47:20 +00:00
|
|
|
*/
|
|
|
|
enum FRAME_T
|
|
|
|
{
|
2019-06-17 22:02:30 +00:00
|
|
|
FRAME_SCH = 0,
|
2020-10-31 01:27:16 +00:00
|
|
|
FRAME_SCH_SYMBOL_EDITOR,
|
2014-04-19 18:47:20 +00:00
|
|
|
FRAME_SCH_VIEWER,
|
2023-09-28 13:09:45 +00:00
|
|
|
FRAME_SYMBOL_CHOOSER,
|
2016-08-11 12:41:01 +00:00
|
|
|
FRAME_SIMULATOR,
|
2023-09-14 21:39:42 +00:00
|
|
|
FRAME_SCH_DIFF,
|
|
|
|
FRAME_SYM_DIFF,
|
2017-06-08 21:47:21 +00:00
|
|
|
|
2019-09-05 22:00:47 +00:00
|
|
|
FRAME_PCB_EDITOR,
|
|
|
|
FRAME_FOOTPRINT_EDITOR,
|
2023-09-26 17:31:45 +00:00
|
|
|
FRAME_FOOTPRINT_CHOOSER,
|
2019-09-05 22:00:47 +00:00
|
|
|
FRAME_FOOTPRINT_VIEWER,
|
|
|
|
FRAME_FOOTPRINT_WIZARD,
|
2014-04-19 18:47:20 +00:00
|
|
|
FRAME_PCB_DISPLAY3D,
|
2019-09-05 22:00:47 +00:00
|
|
|
FRAME_FOOTPRINT_PREVIEW,
|
2023-09-14 21:39:42 +00:00
|
|
|
FRAME_PCB_DIFF,
|
|
|
|
FRAME_FOOTPRINT_DIFF,
|
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.
2014-05-03 17:40:19 +00:00
|
|
|
|
2014-04-19 18:47:20 +00:00
|
|
|
FRAME_CVPCB,
|
|
|
|
FRAME_CVPCB_DISPLAY,
|
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.
2014-05-03 17:40:19 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
FRAME_PYTHON,
|
|
|
|
|
2014-04-19 18:47:20 +00:00
|
|
|
FRAME_GERBER,
|
|
|
|
|
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.
2014-05-03 17:40:19 +00:00
|
|
|
FRAME_PL_EDITOR,
|
|
|
|
|
|
|
|
FRAME_BM2CMP,
|
|
|
|
|
|
|
|
FRAME_CALC,
|
2014-04-19 18:47:20 +00:00
|
|
|
|
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.
2014-05-03 17:40:19 +00:00
|
|
|
KIWAY_PLAYER_COUNT, // counts subset of FRAME_T's which are KIWAY_PLAYER derivatives
|
|
|
|
|
|
|
|
// C++ project manager is not a KIWAY_PLAYER
|
2014-04-19 18:47:20 +00:00
|
|
|
KICAD_MAIN_FRAME_T = KIWAY_PLAYER_COUNT,
|
|
|
|
|
2018-08-06 18:33:28 +00:00
|
|
|
FRAME_T_COUNT,
|
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
PANEL_SYM_DISP_OPTIONS = FRAME_T_COUNT,
|
2023-08-26 12:29:24 +00:00
|
|
|
PANEL_SYM_EDIT_GRIDS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_SYM_EDIT_OPTIONS,
|
|
|
|
PANEL_SYM_COLORS,
|
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
PANEL_SCH_DISP_OPTIONS,
|
2023-08-26 12:29:24 +00:00
|
|
|
PANEL_SCH_GRIDS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_SCH_EDIT_OPTIONS,
|
2022-03-30 17:41:40 +00:00
|
|
|
PANEL_SCH_ANNO_OPTIONS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_SCH_COLORS,
|
|
|
|
PANEL_SCH_FIELD_NAME_TEMPLATES,
|
2024-01-23 01:02:50 +00:00
|
|
|
PANEL_SCH_SIMULATOR,
|
2021-08-29 23:33:08 +00:00
|
|
|
|
|
|
|
PANEL_FP_DISPLAY_OPTIONS,
|
2023-08-26 12:29:24 +00:00
|
|
|
PANEL_FP_GRIDS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_FP_EDIT_OPTIONS,
|
|
|
|
PANEL_FP_COLORS,
|
|
|
|
PANEL_FP_DEFAULT_VALUES,
|
2023-10-25 12:59:12 +00:00
|
|
|
PANEL_FP_ORIGINS_AXES,
|
2021-08-29 23:33:08 +00:00
|
|
|
|
2023-09-04 11:46:52 +00:00
|
|
|
PANEL_PCB_DISPLAY_OPTS,
|
2023-08-26 12:29:24 +00:00
|
|
|
PANEL_PCB_GRIDS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_PCB_EDIT_OPTIONS,
|
|
|
|
PANEL_PCB_COLORS,
|
|
|
|
PANEL_PCB_ACTION_PLUGINS,
|
|
|
|
PANEL_PCB_ORIGINS_AXES,
|
|
|
|
|
|
|
|
PANEL_3DV_DISPLAY_OPTIONS,
|
|
|
|
PANEL_3DV_OPENGL,
|
|
|
|
PANEL_3DV_RAYTRACING,
|
|
|
|
|
|
|
|
PANEL_GBR_DISPLAY_OPTIONS,
|
|
|
|
PANEL_GBR_EDIT_OPTIONS,
|
|
|
|
PANEL_GBR_EXCELLON_OPTIONS,
|
2024-03-10 18:21:29 +00:00
|
|
|
PANEL_GBR_GRIDS,
|
2022-09-10 15:11:24 +00:00
|
|
|
PANEL_GBR_COLORS,
|
2021-08-29 23:33:08 +00:00
|
|
|
|
|
|
|
PANEL_DS_DISPLAY_OPTIONS,
|
2023-08-26 12:29:24 +00:00
|
|
|
PANEL_DS_GRIDS,
|
2021-08-29 23:33:08 +00:00
|
|
|
PANEL_DS_COLORS,
|
|
|
|
|
2018-08-06 18:33:28 +00:00
|
|
|
// Library table dialogs are transient and are never returned
|
2021-08-29 23:33:08 +00:00
|
|
|
DIALOG_CONFIGUREPATHS,
|
2019-06-02 23:17:27 +00:00
|
|
|
DIALOG_SCH_LIBRARY_TABLE,
|
2018-08-06 18:33:28 +00:00
|
|
|
DIALOG_PCB_LIBRARY_TABLE
|
2014-04-19 18:47:20 +00:00
|
|
|
};
|
|
|
|
|
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.
2014-05-03 17:40:19 +00:00
|
|
|
//TEXT_EDITOR_FRAME_T,
|
|
|
|
|
|
|
|
|
2014-04-19 18:47:20 +00:00
|
|
|
#endif // FRAME_T_H_
|