2018-08-03 12:18:26 +00:00
|
|
|
#ifndef __SCH_DRAW_PANEL_H
|
|
|
|
#define __SCH_DRAW_PANEL_H
|
|
|
|
|
|
|
|
#include <class_draw_panel_gal.h>
|
|
|
|
#include <base_struct.h>
|
|
|
|
#include <gr_basic.h>
|
|
|
|
#include <eda_rect.h>
|
|
|
|
|
|
|
|
|
2018-08-28 13:27:13 +00:00
|
|
|
namespace KIGFX
|
|
|
|
{
|
2018-08-03 12:18:26 +00:00
|
|
|
class SCH_VIEW;
|
2018-08-28 13:27:13 +00:00
|
|
|
namespace PREVIEW
|
|
|
|
{
|
2018-08-03 12:18:26 +00:00
|
|
|
class SELECTION_AREA;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class SCH_SHEET;
|
|
|
|
class LIB_PART;
|
|
|
|
class BASE_SCREEN;
|
|
|
|
class SCH_SCREEN;
|
|
|
|
class COLORS_DESIGN_SETTINGS;
|
|
|
|
class SCH_EDIT_FRAME;
|
|
|
|
|
2018-08-28 13:27:13 +00:00
|
|
|
|
2019-05-31 17:37:07 +00:00
|
|
|
class SCH_DRAW_PANEL : public EDA_DRAW_PANEL_GAL
|
2018-08-03 12:18:26 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SCH_DRAW_PANEL( wxWindow* aParentWindow, wxWindowID aWindowId, const wxPoint& aPosition,
|
2018-08-28 13:27:13 +00:00
|
|
|
const wxSize& aSize, KIGFX::GAL_DISPLAY_OPTIONS& aOptions,
|
|
|
|
GAL_TYPE aGalType = GAL_TYPE_OPENGL );
|
2018-08-03 12:18:26 +00:00
|
|
|
|
|
|
|
~SCH_DRAW_PANEL();
|
|
|
|
|
2019-04-17 19:09:48 +00:00
|
|
|
void DisplayComponent( const LIB_PART *aComponent );
|
|
|
|
void DisplaySheet( const SCH_SCREEN *aScreen );
|
2018-08-03 12:18:26 +00:00
|
|
|
|
|
|
|
bool SwitchBackend( GAL_TYPE aGalType ) override;
|
|
|
|
|
|
|
|
KIGFX::SCH_VIEW* GetView() const { return view(); }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void onPaint( wxPaintEvent& WXUNUSED( aEvent ) ) override;
|
|
|
|
|
|
|
|
KIGFX::SCH_VIEW* view() const;
|
|
|
|
wxWindow* m_parent;
|
2018-09-08 20:57:56 +00:00
|
|
|
|
2019-04-17 19:09:48 +00:00
|
|
|
void setDefaultLayerOrder(); ///> Reassigns layer order to the initial settings.
|
|
|
|
void setDefaultLayerDeps(); ///> Sets rendering targets & dependencies for layers.
|
2018-08-03 12:18:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|