Untangle pl_editor includes

This commit is contained in:
Marek Roszko 2020-10-13 01:04:31 -04:00
parent cea73fe510
commit efa28d3357
35 changed files with 132 additions and 98 deletions

View File

@ -32,6 +32,7 @@
#include <base_struct.h>
#include <ws_painter.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <page_layout/page_layout_reader_lexer.h>

View File

@ -57,6 +57,7 @@
#include <title_block.h>
#include <ws_draw_item.h>
#include <ws_data_model.h>
#include <ws_data_item.h>
using KIGFX::COLOR4D;

View File

@ -48,6 +48,7 @@
#include <ws_painter.h>
#include <title_block.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>

View File

@ -33,6 +33,7 @@
#include <base_struct.h>
#include <ws_painter.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <math/vector2d.h>
#include <page_layout/page_layout_reader_lexer.h>

View File

@ -51,6 +51,7 @@
#include <eda_rect.h>
#include <eda_draw_frame.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <base_units.h>
#include <page_info.h>

View File

@ -22,7 +22,9 @@
*/
#include <ws_proxy_undo_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <view/view.h>
#include <eda_draw_frame.h>
#include <macros.h>

View File

@ -33,13 +33,17 @@
#include <math/vector2d.h>
#include <eda_text.h>
#include <bitmap_base.h>
#include <view/view.h>
#include "ws_draw_item.h"
class WS_DRAW_ITEM_TEXT; // Forward declaration
#define TB_DEFAULT_TEXTSIZE 1.5 // default worksheet text size in mm
namespace KIGFX
{
class VIEW;
}
/**
* A coordinate is relative to a page corner.
* Any of the 4 corners can be a reference.

View File

@ -27,11 +27,10 @@
#include <math/vector2d.h>
#include <eda_text.h>
#include <eda_text.h>
#include <bitmap_base.h>
#include <ws_data_item.h>
class WS_DATA_ITEM;
class PAGE_INFO;
/**
* WS_DATA_MODEL handles the graphic items list to draw/plot the frame and title block

View File

@ -26,13 +26,16 @@
#include <wx/wupdlock.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <pl_editor_id.h>
#include <design_inspector.h>
#include <tool/tool_manager.h>
#include <tools/pl_actions.h>
#include <tools/pl_selection_tool.h>
#include <properties_frame.h>
#include "dialogs/dialog_design_inspector_base.h"
#include "design_inspector.h"
#include "pl_editor_frame.h"
#include "properties_frame.h"
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
/* XPM
* This bitmap is used to show item types

View File

@ -27,9 +27,9 @@
#define _DESIGN_INSPECTOR_H
#include <vector>
#include <dialog_design_inspector_base.h>
#include <pl_editor_frame.h>
class DIALOG_INSPECTOR_BASE;
class PL_EDITOR_FRAME;
/**
* DESIGN_INSPECTOR is the left window showing the list of items

View File

@ -22,10 +22,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <pl_editor_frame.h>
#include <ws_data_item.h>
#include <dialog_new_dataitem_base.h>
#include "dialog_new_dataitem_base.h"
#include "pl_editor_frame.h"
class DIALOG_NEW_DATAITEM : public DIALOG_NEW_DATAITEM_BASE
{

View File

@ -27,14 +27,16 @@
*/
#include <base_units.h>
#include <pl_editor_frame.h>
#include <pl_editor_id.h>
#include <dialog_helpers.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <ws_painter.h>
#include <dialog_page_settings.h>
#include <invoke_pl_editor_dialog.h>
#include "invoke_pl_editor_dialog.h"
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
/**
* Custom print out for printing schematics.

View File

@ -17,13 +17,13 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pl_editor_settings.h>
#include <pl_editor_frame.h>
#include <pgm_base.h>
#include <settings/settings_manager.h>
#include <view/view.h>
#include "panel_pl_editor_color_settings.h"
#include "pl_editor_frame.h"
#include "pl_editor_settings.h"
PANEL_PL_EDITOR_COLOR_SETTINGS::PANEL_PL_EDITOR_COLOR_SETTINGS( PL_EDITOR_FRAME* aFrame,

View File

@ -26,14 +26,13 @@
#include <confirm.h>
#include <gestfich.h>
#include <ws_draw_item.h>
#include <ws_data_model.h>
#include <pl_editor_frame.h>
#include <properties_frame.h>
#include <pl_editor_id.h>
#include <widgets/infobar.h>
#include <wildcards_and_files_ext.h>
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include "properties_frame.h"
bool PL_EDITOR_FRAME::saveCurrentPageLayout()
{

View File

@ -30,11 +30,12 @@
#include <tool/action_menu.h>
#include <tool/tool_manager.h>
#include <tool/selection.h>
#include <tools/pl_actions.h>
#include <tools/pl_selection_tool.h>
#include <widgets/wx_menubar.h>
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include <widgets/wx_menubar.h>
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
void PL_EDITOR_FRAME::ReCreateMenuBar()

View File

@ -17,24 +17,26 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pl_draw_panel_gal.h"
#include <functional>
#include <memory>
#include <view/view.h>
#include <tool/tool_manager.h>
#include <tools/pl_actions.h>
#include <view/wx_view_controls.h>
#include <ws_proxy_view_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <ws_painter.h>
#include <pgm_base.h>
#include <kiway.h>
#include <pl_editor_frame.h>
#include <pl_editor_settings.h>
#include <settings/settings_manager.h>
#include <gal/graphics_abstraction_layer.h>
#include <functional>
#include <memory>
#include <tools/pl_selection_tool.h>
#include "pl_draw_panel_gal.h"
#include "pl_editor_frame.h"
#include "pl_editor_settings.h"
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
using namespace std::placeholders;

View File

@ -21,9 +21,13 @@
#define PL_DRAW_PANEL_GAL_H
#include <class_draw_panel_gal.h>
#include <ws_proxy_view_item.h>
#include <ws_painter.h>
namespace KIGFX
{
class WS_PROXY_VIEW_ITEM;
}
class WS_DRAW_ITEM_PAGE;
class PL_DRAW_PANEL_GAL : public EDA_DRAW_PANEL_GAL
{

View File

@ -34,10 +34,11 @@
#include <confirm.h>
#include <gestfich.h>
#include <pgm_base.h>
#include <pl_editor_frame.h>
#include <pl_editor_settings.h>
#include <settings/settings_manager.h>
#include "pl_editor_frame.h"
#include "pl_editor_settings.h"
namespace PGE {

View File

@ -27,13 +27,8 @@
#include <pgm_base.h>
#include <msgpanel.h>
#include <bitmaps.h>
#include <dialogs/panel_pl_editor_color_settings.h>
#include <pl_editor_frame.h>
#include <pl_editor_id.h>
#include <pl_editor_settings.h>
#include <pl_draw_panel_gal.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <properties_frame.h>
#include <widgets/paged_dialog.h>
#include <panel_gal_display_options.h>
#include <panel_hotkeys_editor.h>
@ -43,23 +38,28 @@
#include <tool/selection.h>
#include <tool/action_toolbar.h>
#include <tool/editor_conditions.h>
#include <tool/selection_conditions.h>
#include <tool/tool_dispatcher.h>
#include <tool/tool_manager.h>
#include <tool/common_control.h>
#include <tool/common_tools.h>
#include <tool/picker_tool.h>
#include <tool/zoom_tool.h>
#include <tools/pl_actions.h>
#include <tools/pl_selection_tool.h>
#include <tools/pl_drawing_tools.h>
#include <tools/pl_edit_tool.h>
#include <tools/pl_point_editor.h>
#include <invoke_pl_editor_dialog.h>
#include <tools/pl_editor_control.h>
#include <widgets/infobar.h>
#include <settings/settings_manager.h>
#include "dialogs/panel_pl_editor_color_settings.h"
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include "pl_editor_settings.h"
#include "properties_frame.h"
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
#include "tools/pl_drawing_tools.h"
#include "tools/pl_edit_tool.h"
#include "tools/pl_point_editor.h"
#include "invoke_pl_editor_dialog.h"
#include "tools/pl_editor_control.h"
BEGIN_EVENT_TABLE( PL_EDITOR_FRAME, EDA_DRAW_FRAME )
EVT_MENU( wxID_CLOSE, PL_EDITOR_FRAME::OnExit )
EVT_MENU( wxID_EXIT, PL_EDITOR_FRAME::OnExit )

View File

@ -30,9 +30,10 @@
#include <config_params.h>
#include <eda_draw_frame.h>
#include <base_screen.h>
#include <pl_editor_layout.h>
#include <pl_draw_panel_gal.h>
#include "pl_editor_layout.h"
#include "pl_draw_panel_gal.h"
class PL_DRAW_PANEL_GAL;
class PROPERTIES_FRAME;
class WS_DATA_ITEM;

View File

@ -30,7 +30,7 @@
#include <climits>
#include <eda_rect.h>
#include <pl_editor_layout.h>
#include "pl_editor_layout.h"
PL_EDITOR_LAYOUT::PL_EDITOR_LAYOUT()
{

View File

@ -28,7 +28,6 @@
#ifndef CLASS_PL_EDITOR_LAYOUT_H
#define CLASS_PL_EDITOR_LAYOUT_H
#include <base_struct.h>
#include <page_info.h>
#include <title_block.h>
#include <ws_draw_item.h>

View File

@ -21,10 +21,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <pl_editor_settings.h>
#include <settings/parameters.h>
#include <wx/config.h>
#include "pl_editor_settings.h"
///! Update the schema version whenever a migration is required
const int plEditorSchemaVersion = 0;

View File

@ -24,12 +24,12 @@
*/
#include <ws_data_model.h>
#include <pl_editor_frame.h>
#include <tool/tool_manager.h>
#include <tools/pl_selection_tool.h>
#include <ws_proxy_undo_item.h>
#include <tool/tool_manager.h>
#include <tool/actions.h>
#include "pl_editor_frame.h"
#include "tools/pl_selection_tool.h"
void PL_EDITOR_FRAME::SaveCopyInUndoList()
{

View File

@ -23,14 +23,18 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <ws_draw_item.h>
#include <ws_data_model.h>
#include <project.h>
#include <properties_frame.h>
#include <tool/tool_manager.h>
#include <tools/pl_selection_tool.h>
#include <pl_draw_panel_gal.h>
#include <scintilla_tricks.h>
#include <tool/tool_manager.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <view/view.h>
#include "properties_frame.h"
#include "pl_draw_panel_gal.h"
#include "pl_editor_frame.h"
#include "tools/pl_selection_tool.h"
PROPERTIES_FRAME::PROPERTIES_FRAME( PL_EDITOR_FRAME* aParent ) :
PANEL_PROPERTIES_BASE( aParent ),

View File

@ -29,11 +29,11 @@
#ifndef _PROPERTIES_FRAME_H
#define _PROPERTIES_FRAME_H
#include <pl_editor_frame.h>
#include <dialogs/properties_frame_base.h>
#include <scintilla_tricks.h>
#include "dialogs/properties_frame_base.h"
class WS_DATA_ITEM;
class PL_EDITOR_FRAME;
class SCINTILLA_TRICKS;
/**
* PROPERTIES_FRAME display properties of the current item.

View File

@ -21,9 +21,10 @@
#include <bitmaps.h>
#include <tool/action_toolbar.h>
#include <tools/pl_actions.h>
#include <pl_editor_id.h>
#include <pl_editor_frame.h>
#include "pl_editor_id.h"
#include "pl_editor_frame.h"
#include "tools/pl_actions.h"
void PL_EDITOR_FRAME::ReCreateHToolbar()
{

View File

@ -24,9 +24,9 @@
#include <tool/tool_action.h>
#include <bitmaps.h>
#include <tools/pl_actions.h>
#include <ws_data_item.h>
#include "tools/pl_actions.h"
// Actions, being statically-defined, require specialized I18N handling. We continue to
// use the _() macro so that string harvesting by the I18N framework doesn't have to be

View File

@ -22,22 +22,23 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <pl_editor_frame.h>
#include <class_draw_panel_gal.h>
#include <pl_editor_id.h>
#include <confirm.h>
#include <view/view_group.h>
#include <view/view_controls.h>
#include <view/view.h>
#include <tool/tool_manager.h>
#include <tools/pl_actions.h>
#include <tools/pl_selection_tool.h>
#include <tools/pl_drawing_tools.h>
#include <bitmaps.h>
#include <ws_draw_item.h>
#include <ws_data_item.h>
#include <invoke_pl_editor_dialog.h>
#include "invoke_pl_editor_dialog.h"
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include "pl_point_editor.h"
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
#include "tools/pl_drawing_tools.h"
PL_DRAWING_TOOLS::PL_DRAWING_TOOLS() :
TOOL_INTERACTIVE( "plEditor.InteractiveDrawing" ),

View File

@ -24,18 +24,21 @@
#include <tool/tool_manager.h>
#include <tool/picker_tool.h>
#include <tools/pl_selection_tool.h>
#include <tools/pl_actions.h>
#include <tools/pl_edit_tool.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <ws_draw_item.h>
#include <bitmaps.h>
#include <confirm.h>
#include <base_struct.h>
#include <pl_editor_frame.h>
#include <pl_editor_id.h>
#include <view/view.h>
#include <math/util.h> // for KiROUND
#include "tools/pl_selection_tool.h"
#include "tools/pl_actions.h"
#include "tools/pl_edit_tool.h"
#include "pl_draw_panel_gal.h"
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
PL_EDIT_TOOL::PL_EDIT_TOOL() :
TOOL_INTERACTIVE( "plEditor.InteractiveEdit" ),

View File

@ -25,18 +25,19 @@
#include <kiway.h>
#include <view/view.h>
#include <tool/tool_manager.h>
#include <tools/pl_actions.h>
#include <tools/pl_editor_control.h>
#include <tools/pl_selection_tool.h>
#include <pl_editor_frame.h>
#include <ws_painter.h>
#include <confirm.h>
#include <bitmaps.h>
#include <properties_frame.h>
#include <pl_editor_id.h>
#include <dialog_page_settings.h>
#include <ws_data_model.h>
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include "properties_frame.h"
#include "tools/pl_actions.h"
#include "tools/pl_editor_control.h"
#include "tools/pl_selection_tool.h"
bool PL_EDITOR_CONTROL::Init()
{
m_frame = getEditFrame<PL_EDITOR_FRAME>();

View File

@ -25,11 +25,8 @@
#include <functional>
using namespace std::placeholders;
#include "pl_point_editor.h"
#include <tool/tool_manager.h>
#include <tool/actions.h>
#include <tools/pl_actions.h>
#include <tools/pl_selection_tool.h>
#include <view/view_controls.h>
#include <gal/graphics_abstraction_layer.h>
#include <geometry/seg.h>
@ -37,11 +34,14 @@ using namespace std::placeholders;
#include <bitmaps.h>
#include <status_popup.h>
#include <pl_editor_frame.h>
#include <ws_draw_item.h>
#include <widgets/progress_reporter.h>
#include <pl_editor_id.h>
#include "pl_editor_frame.h"
#include "pl_editor_id.h"
#include "pl_point_editor.h"
#include "tools/pl_actions.h"
#include "tools/pl_selection_tool.h"
// Few constants to avoid using bare numbers for point indices
enum RECTANGLE_POINTS

View File

@ -22,7 +22,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <tools/pl_selection.h>
#include "tools/pl_selection.h"
EDA_ITEM* PL_SELECTION::GetTopLeftItem( bool onlyModules ) const

View File

@ -27,17 +27,19 @@
#include <view/view.h>
#include <view/view_controls.h>
#include <preview_items/selection_area.h>
#include <pl_editor_frame.h>
#include <tool/tool_event.h>
#include <tool/tool_manager.h>
#include <tool/selection.h>
#include <tools/pl_actions.h>
#include <ws_data_item.h>
#include <ws_data_model.h>
#include <ws_draw_item.h>
#include <collector.h>
#include "pl_selection_tool.h"
#include <math/util.h> // for KiROUND
#include "pl_editor_frame.h"
#include "pl_selection_tool.h"
#include "tools/pl_actions.h"
/**
* The maximum number of items in the clarify selection context menu. The current
* setting of 40 is arbitrary.

View File

@ -27,7 +27,7 @@
#include <tool/tool_interactive.h>
#include <tool/tool_menu.h>
#include <tools/pl_selection.h>
#include "tools/pl_selection.h"
class PL_EDITOR_FRAME;
class SCH_ITEM;