29#include <wx/filename.h>
32#define COLUMN_MARGIN 4
34#define COLUMN_MARGIN 15
52 if( aInputFileName.IsEmpty() )
55 wxFileName fn( aInputFileName );
58 return fn.GetFullPath();
66 if( aIsLeftPanelCollapsed )
95#if defined( __WXOSX__ )
96 wxPoint pos = aEvent.GetPosition();
97 wxRect ctrlRect =
m_filter->GetScreenRect();
98 int buttonWidth = ctrlRect.GetHeight();
101 if(
m_filter->IsSearchButtonVisible() && pos.x < buttonWidth )
102 SetCursor( wxCURSOR_ARROW );
103 else if(
m_filter->IsCancelButtonVisible() && pos.x > ctrlRect.GetWidth() - buttonWidth )
104 SetCursor( wxCURSOR_ARROW );
106 SetCursor( wxCURSOR_IBEAM );
117 int remainingWidth =
m_viewControlsGrid->GetSize().GetX() - showColWidth - groupByColWidth;
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
STD_BITMAP_BUTTON * m_sidebarButton
WX_GRID * m_viewControlsGrid
void OnSizeViewControlsGrid(wxSizeEvent &event) override
void OnTableColSize(wxGridSizeEvent &event) override
void OnFilterMouseMoved(wxMouseEvent &event) override
void OnTableValueChanged(wxGridEvent &event) override
static wxString GetDefaultBomFileName(const wxString &aInputFileName)
Derive the default BOM output file name from the input file name by swapping the extension to CSV.
void setSideBarButtonLook(bool aIsLeftPanelCollapsed)
#define DISPLAY_NAME_COLUMN
#define SHOW_FIELD_COLUMN
static const std::string CsvFileExtension
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
Functions to provide common constants and other functions to assist in making a consistent UI.
Definition of file extensions used in Kicad.