26#include <wx/imaglist.h>
27#include <wx/wupdlock.h>
171 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr,
172 wxDC& aDc,
const wxRect& aRect,
173 int aRow,
int aCol,
bool aIsSelected)
override;
208 wxWindowUpdateLocker
dummy(
this );
217 wxFileName fn(
static_cast<PL_EDITOR_FRAME*
>( GetParent() )->GetCurrentFileName() );
219 if( fn.GetName().IsEmpty() )
220 SetTitle(
"<default drawing sheet>" );
222 SetTitle( fn.GetName() );
233 wxString::Format(
_(
"Size: %.1fx%.1fmm" ),
245 const char** img =
nullptr;
247 switch( item->GetType() )
275 wxString::Format(
"%d", item->m_RepeatCount ) );
289 int cols_to_resize[] =
294 for(
int ii = 0; ; ii++ )
296 int col = cols_to_resize[ii];
303 #define BITMAP_SIZE 16
320 for(
unsigned row = 1; row <
m_itemsList.size(); ++row )
340 int row =
event.GetRow();
354 m_editorFrame->GetPropertiesFrame()->CopyPrmsFromItemToPanel( item );
359 wxDC& aDc,
const wxRect& aRect,
360 int aRow,
int aCol,
bool aIsSelected )
362 wxGridCellStringRenderer::Draw( aGrid, aAttr, aDc, aRect, aRow, aCol, aIsSelected );
364 aDc.DrawBitmap( bm,aRect.GetX()+5, aRect.GetY()+2,
true );
constexpr EDA_IU_SCALE drawSheetIUScale
const char ** m_BitmapXPM
BitmapGridCellRenderer(const char **aBitmapXPM)
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override
DIALOG_INSPECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DESIGN_INSPECTOR is the left window showing the list of items.
void ReCreateDesignList()
void onCellClicked(wxGridEvent &event) override
friend class PL_EDITOR_FRAME
DS_DATA_ITEM * GetDrawingSheetDataItem(int aRow) const
wxGrid * GetGridList() const
void SelectRow(DS_DATA_ITEM *aItem)
DIALOG_INSPECTOR(PL_EDITOR_FRAME *aParent)
PL_EDITOR_FRAME * m_editorFrame
std::vector< DS_DATA_ITEM * > m_itemsList
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Drawing sheet structure type definitions.
const std::vector< DS_DRAW_ITEM_BASE * > & GetDrawItems() const
Handle the graphic items list to draw/plot the frame and title block.
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
std::vector< DS_DATA_ITEM * > & GetItems()
A base class for most all the KiCad significant classes used in schematics and boards.
Describe the page size and margins of a paper page on which to eventually print or plot.
wxString GetTypeAsString() const
void ShowDesignInspector()
Show the dialog displaying the list of DS_DATA_ITEM items in the page layout.
static const char * poly_xpm[]
static const char * root_xpm[]
static const char * text_xpm[]
static const char * rect_xpm[]
static const char * line_xpm[]
static const char * img_xpm[]
std::vector< FAB_LAYER_COLOR > dummy
VECTOR2< int32_t > VECTOR2I