40 GetSizer()->SetSizeHints(
this );
97 int NumCheckboxesOnDlg = 0;
98 wxCheckBoxState SuggestedState = wxCHK_UNDETERMINED;
102 const wxWindowList& list = this->GetChildren();
103 for( wxWindowList::compatibility_iterator node = list.GetFirst(); node; node = node->GetNext() )
105 wxWindow* current = node->GetData();
108 wxCheckBox* CurrCB =
dynamic_cast<wxCheckBox*
>( current );
116 if( !(
"" == CurrCB->GetLabelText() || CurrCB->Is3State() ) )
117 NumCheckboxesOnDlg++;
133 NumCheckboxesOnDlg--;
157 SuggestedState = wxCHK_UNCHECKED;
158 else if( NumChecked == NumCheckboxesOnDlg )
159 SuggestedState = wxCHK_CHECKED;
161 return SuggestedState;
167 if( wxCHK_CHECKED ==
m_All_Items->Get3StateValue() )
176 if( !wxDialog::TransferDataFromWindow() )
Class DIALOG_FILTER_SELECTION_BASE.
wxCheckBox * m_Include_PcbTexts
wxCheckBox * m_Include_Zones
wxCheckBox * m_Include_Draw_Items
wxCheckBox * m_IncludeLockedModules
wxCheckBox * m_Include_Modules
wxCheckBox * m_Include_Vias
wxCheckBox * m_Include_Edges_Items
wxCheckBox * m_Include_Tracks
void checkBoxClicked(wxCommandEvent &aEvent) override
DIALOG_FILTER_SELECTION(PCB_BASE_FRAME *aParent, OPTIONS &aOptions)
Create the filter selection dialog.
void forceCheckboxStates(bool aNewState)
void setCheckboxStatesFromOptions(OPTIONS &aOptions)
bool TransferDataFromWindow() override
void allItemsClicked(wxCommandEvent &aEvent) override
wxCheckBoxState GetSuggestedAllItemsState(void)
Reference to the options struct to fill.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
Struct that will be set with the result of the user choices in the dialog.
bool includeItemsOnTechLayers
bool includeLockedModules
bool includeBoardOutlineLayer