7 #ifndef CAFU_MATERIAL_BROWSER_DIALOG_HPP_INCLUDED
8 #define CAFU_MATERIAL_BROWSER_DIALOG_HPP_INCLUDED
10 #include "Templates/Array.hpp"
12 #include "wx/dialog.h"
13 #include "wx/aui/framemanager.h"
20 namespace MaterialBrowser
23 class FilterSettingsT;
24 class MaterialPropertiesT;
26 class ScrolledMaterialWindowT;
38 ConfigT& InitialNameFilter(
const wxString& s) { m_InitialNameFilter=s;
return *
this; }
39 ConfigT& OnlyShowUsed(
bool b=
true) { m_OnlyShowUsed=b;
return *
this; }
40 ConfigT& NoFilterEditorMatsOnly(
bool b=
true) { m_NoFilterEditorMatsOnly=b;
return *
this; }
41 ConfigT& NoButtonMark(
bool b=
true) { m_NoButtonMark=b;
return *
this; }
42 ConfigT& NoButtonReplace(
bool b=
true) { m_NoButtonReplace=b;
return *
this; }
52 wxString m_InitialNameFilter;
54 bool m_NoFilterEditorMatsOnly;
56 bool m_NoButtonReplace;
78 wxAuiManager m_AUIManager;
86 wxString MatFolderFilter;
99 void SaveAndQuitDialog(
int ReturnValue);
102 void OnChoice_DisplaySize(wxCommandEvent& Event);
103 void OnButton_Mark(wxCommandEvent& Event);
104 void OnButton_Replace(wxCommandEvent& Event);
105 void OnButton_ExportDiffMaps(wxCommandEvent& Event);
106 void OnButton_Cancel(wxCommandEvent& Event);
107 void OnCombobox_NameFilterSelection(wxCommandEvent& Event);
108 void OnCombobox_NameFilterTextChange(wxCommandEvent& Event);
109 void OnCheckbox_OnlyShowUsed(wxCommandEvent& Event);
110 void OnCheckbox_OnlyShowEditor(wxCommandEvent& Event);
115 ID_SCROLLED_MaterialWindow=wxID_HIGHEST+1,
116 ID_CHOICE_DisplaySize,
119 ID_BUTTON_ExportDiffMaps,
121 ID_COMBO_KeywordFilter,
122 ID_CHECKBOX_OnlyShowUsed,
123 ID_CHECKBOX_OnlyShowEditor,
126 DECLARE_EVENT_TABLE()
This class implements the "named parameter idiom" for the MaterialBrowser::DialogT.
Definition: MaterialBrowserDialog.hpp:31
EditorMaterialI * GetCurrentMaterial() const
Returns the currently selected material.
Definition: MaterialBrowserDialog.cpp:150
Definition: ControlsBar.hpp:18
Definition: MaterialBrowserDialog.hpp:60
DialogT(wxWindow *Parent, const DocAdapterI &DocAccess, const ConfigT &Config)
The constructor.
Definition: MaterialBrowserDialog.cpp:127
Definition: EditorMaterial.hpp:21
Definition: MaterialProperties.hpp:24
This class provides a common interface to the documents of the map, GUI or model editor.
Definition: DocumentAdapter.hpp:25
Definition: FilterSettings.hpp:18
Definition: MaterialTree.hpp:23
~DialogT()
The destructor.
Definition: MaterialBrowserDialog.cpp:144