26 #include <wx/imaglist.h> 27 #include <wx/wupdlock.h> 169 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr,
170 wxDC& aDc,
const wxRect& aRect,
171 int aRow,
int aCol,
bool aIsSelected)
override;
205 wxWindowUpdateLocker
dummy(
this );
214 wxFileName fn( static_cast<PL_EDITOR_FRAME*>( GetParent() )->GetCurrentFileName() );
216 if( fn.GetName().IsEmpty() )
217 SetTitle(
"<default drawing sheet>" );
219 SetTitle( fn.GetName() );
228 Iu2Millimeter( page_sizeIU.x ), Iu2Millimeter( page_sizeIU.y ) ) );
237 const char** img =
nullptr;
239 switch( item->GetType() )
281 int cols_to_resize[] =
286 for(
int ii = 0; ; ii++ )
288 int col = cols_to_resize[ii];
295 #define BITMAP_SIZE 16 311 for(
unsigned row = 1; row <
m_itemsList.size(); ++row )
331 int row =
event.GetRow();
350 wxDC& aDc,
const wxRect& aRect,
351 int aRow,
int aCol,
bool aIsSelected)
353 wxGridCellStringRenderer::Draw( aGrid, aAttr, aDc, aRect, aRow, aCol, aIsSelected);
355 aDc.DrawBitmap( bm,aRect.GetX()+5, aRect.GetY()+2,
true);
DIALOG_INSPECTOR(PL_EDITOR_FRAME *aParent)
PROPERTIES_FRAME * GetPropertiesFrame()
Handle the graphic items list to draw/plot the frame and title block.
Class DIALOG_INSPECTOR_BASE.
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
The main window used in the drawing sheet editor.
static const char * line_xpm[]
std::vector< DS_DATA_ITEM * > & GetItems()
const wxString & GetType() const
const wxSize GetPageSizeIU() const override
Works off of GetPageSettings() to return the size of the paper page in the internal units of this par...
void onCellClicked(wxGridEvent &event) override
PAGE_INFO & GetPageSettings()
static LIB_SYMBOL * dummy()
Used to draw a dummy shape when a LIB_SYMBOL is not found in library.
static const char * img_xpm[]
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
Describe the page size and margins of a paper page on which to eventually print or plot.
DS_DATA_ITEM * GetDrawingSheetDataItem(int aRow) const
void ShowDesignInspector()
Show the dialog displaying the list of DS_DATA_ITEM items in the page layout.
std::vector< DS_DATA_ITEM * > m_itemsList
const std::vector< DS_DRAW_ITEM_BASE * > & GetDrawItems() const
static const char * rect_xpm[]
static const char * root_xpm[]
void SelectRow(DS_DATA_ITEM *aItem)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
PL_EDITOR_FRAME * m_editorFrame
void ReCreateDesignList()
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
BitmapGridCellRenderer(const char **aBitmapXPM)
wxGrid * GetGridList() const
Drawing sheet structure type definitions.
static const char * poly_xpm[]
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
A base class for most all the KiCad significant classes used in schematics and boards.
DESIGN_INSPECTOR is the left window showing the list of items.
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDc, const wxRect &aRect, int aRow, int aCol, bool aIsSelected) override
void CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
const char ** m_BitmapXPM
const PL_EDITOR_LAYOUT & GetPageLayout() const
static const char * text_xpm[]