Avoid including id.h in a lot of files that do not use it.

This commit is contained in:
jean-pierre charras 2019-05-25 21:39:42 +02:00
parent a6e6e914af
commit 568d4e2b19
18 changed files with 18 additions and 64 deletions

View File

@ -33,6 +33,7 @@
#include <base_screen.h>
#include <hotkeys.h>
#include <tool/common_tools.h>
#include <id.h>
void COMMON_TOOLS::Reset( RESET_REASON aReason )

View File

@ -53,6 +53,7 @@
#include <sch_view.h>
#include <sch_painter.h>
#include "sch_junction.h"
#include "eeschema_id.h"
#define FR_HISTORY_LIST_CNT 10 ///< Maximum number of find and replace strings.

View File

@ -43,7 +43,7 @@ using namespace std::placeholders;
#include <lib_circle.h>
#include <lib_rectangle.h>
#include <lib_polyline.h>
#include <widgets/progress_reporter.h>
#include <eeschema_id.h>
// Point editor

View File

@ -30,6 +30,7 @@
#include <gerber_file_image.h>
#include <gerber_file_image_list.h>
#include <dialog_helpers.h>
#include <gerbview_id.h>
/* Process the command triggered by the left button of the mouse
* currently: just display info in the message panel.

View File

@ -36,7 +36,6 @@
#include <undo_redo_container.h>
#include <block_commande.h>
#include <common.h>
#include <id.h>
/**
* Class GRID_TYPE

View File

@ -32,6 +32,7 @@
#include <wx/statline.h>
#include "kicad.h"
#include "kicad_id.h"
// Amount of clearance between tool buttons
const int BUTTON_SEPARATION = 5;

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013 CERN (www.cern.ch)
* Copyright (C) 2017 KiCad Developers, see CHANGELOG.txt for contributors.
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -32,8 +32,6 @@
#include <wx/process.h>
#include <id.h>
#include <eda_base_frame.h>
#include <kiway_player.h>
@ -75,62 +73,6 @@ enum TreeFileType {
};
/**
* Command IDs for KiCad.
*
* Please add IDs that are unique to Kicad here and not in the global id.h file.
* This will prevent the entire project from being rebuilt when adding
* new commands to KiCad.
*
* However, now the Kicad manager and other sub applications are running inside
* the same application, these IDs are kept unique inside the whole Kicad code
* See the global id.h which reserves room for the Kicad manager IDs
* and expand this room if needed
*
* We have experienced issues with duplicate menus IDs between frames
* because wxUpdateUIEvent events are sent to parent frames, when a wxUpdateUIEvent
* event function does not exists for some menuitems ID, and therefore
* with duplicate menuitems IDs in different frames, the wrong menuitem can be used
* by a function called by the wxUpdateUIEvent event loop.
*
* The number of items in this list should be less than ROOM_FOR_KICADMANAGER (see id.h)
*/
enum id_kicad_frm {
ID_LEFT_FRAME = ID_KICAD_MANAGER_START,
ID_PROJECT_TREE,
ID_PROJECT_TXTEDIT,
ID_PROJECT_TREE_REFRESH,
ID_PROJECT_SWITCH_TO_OTHER,
ID_PROJECT_NEWDIR,
ID_PROJECT_DELETE,
ID_PROJECT_RENAME,
ID_PROJECT_OPEN_FILE_WITH_TEXT_EDITOR,
ID_TO_SCH,
ID_TO_SCH_LIB_EDITOR,
ID_TO_PCB,
ID_TO_PCB_FP_EDITOR,
ID_TO_CVPCB,
ID_TO_GERBVIEW,
ID_TO_BITMAP_CONVERTER,
ID_TO_PCB_CALCULATOR,
ID_TO_PL_EDITOR,
ID_TO_TEXT_EDITOR,
ID_BROWSE_AN_SELECT_FILE,
ID_BROWSE_IN_FILE_EXPLORER,
ID_SAVE_AND_ZIP_FILES,
ID_READ_ZIP_ARCHIVE,
ID_INIT_WATCHED_PATHS,
ID_IMPORT_EAGLE_PROJECT,
// Please, verify: the number of items in this list should be
// less than ROOM_FOR_KICADMANAGER (see id.h)
ID_KICADMANAGER_END_LIST
};
/**
* The main KiCad project manager frame. It is not a KIWAY_PLAYER.
*/

View File

@ -42,6 +42,7 @@
#include <dialog_edit_library_tables.h>
#include "pgm_kicad.h"
#include "tree_project_frame.h"
#include "kicad_id.h"
#ifdef __WXMAC__
#include <MacTypes.h>

View File

@ -35,6 +35,7 @@
#include "kicad.h"
#include "pgm_kicad.h"
#include "kicad_id.h"
// Menubar and toolbar event table

View File

@ -45,6 +45,7 @@
#include "kicad.h"
#include "pgm_kicad.h"
#include "tree_project_frame.h"
#include "kicad_id.h"
#define SEP() wxFileName::GetPathSeparator()

View File

@ -44,6 +44,7 @@
#include "treeproject_item.h"
#include "treeprojectfiles.h"
#include "pgm_kicad.h"
#include "kicad_id.h"
#include "tree_project_frame.h"

View File

@ -37,8 +37,8 @@
#include "treeprojectfiles.h"
#include "pgm_kicad.h"
#include "tree_project_frame.h"
#include "treeproject_item.h"
#include "kicad_id.h"
TREEPROJECT_ITEM::TREEPROJECT_ITEM( enum TreeFileType type, const wxString& data,

View File

@ -32,8 +32,8 @@
#include "treeproject_item.h"
#include "tree_project_frame.h"
#include "treeprojectfiles.h"
#include "kicad_id.h"
IMPLEMENT_ABSTRACT_CLASS( TREEPROJECTFILES, wxTreeCtrl )

View File

@ -33,6 +33,7 @@
#include <confirm.h>
#include <bitmaps.h>
#include <properties_frame.h>
#include <pl_editor_id.h>
TOOL_ACTION PL_ACTIONS::refreshPreview( "plEditor.EditorControl.refreshPreview",
AS_GLOBAL, 0, "", "" );

View File

@ -39,6 +39,7 @@ using namespace std::placeholders;
#include <pl_editor_frame.h>
#include <ws_draw_item.h>
#include <widgets/progress_reporter.h>
#include <pl_editor_id.h>
// Few constants to avoid using bare numbers for point indices

View File

@ -40,6 +40,8 @@
#include <tools/pcb_actions.h>
#include <tool/tool_manager.h>
#include <pcbnew_id.h>
// Max values for grid size
static const int MAX_GRID_SIZE = KiROUND( 1000.0 * IU_PER_MM );
static const int MIN_GRID_SIZE = KiROUND( 0.001 * IU_PER_MM );

View File

@ -31,7 +31,6 @@
#include <class_board.h>
#include <mutex>
#include <draw_frame.h>
#include <boost/bind.hpp>
#include <utility>
#include <make_unique.h>
#include <colors_design_settings.h>
@ -39,6 +38,7 @@
#include <wx/stattext.h>
#include <pgm_base.h>
#include <painter.h>
#include <pcbnew_id.h>
/**
* Threadsafe interface class between loader thread and panel class.

View File

@ -40,6 +40,7 @@
#include "selection_tool.h"
#include "pcb_selection_conditions.h"
#include "edit_tool.h"
#include "pcbnew_id.h"
// Pad tools
TOOL_ACTION PCB_ACTIONS::copyPadSettings(