Cafu Engine
FilterSettings.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_FILTER_SETTINGS_HPP_INCLUDED
8 #define CAFU_FILTER_SETTINGS_HPP_INCLUDED
9 
10 #include "wx/wx.h"
11 
12 
13 namespace MaterialBrowser
14 {
15  class DialogT;
16 
17 
18  class FilterSettingsT : public wxPanel
19  {
20  public:
21 
22  FilterSettingsT(DialogT* Parent);
23 
24  wxString GetNameFilterValue() const;
25  void SetNameFilterValue(const wxString& s);
26 
27  bool OnlyShowUsed() const { return m_OnlyShowUsedCheckbox && m_OnlyShowUsedCheckbox->IsChecked(); }
28  bool OnlyShowEditorMats() const { return m_OnlyShowEditorMaterials && m_OnlyShowEditorMaterials->IsChecked(); }
29 
30 
31  private:
32 
33  DialogT* m_Parent;
34  wxComboBox* m_NameFilterCombobox;
35  wxCheckBox* m_OnlyShowUsedCheckbox;
36  wxCheckBox* m_OnlyShowEditorMaterials;
37  };
38 }
39 
40 #endif
Definition: MaterialBrowserDialog.hpp:60
Definition: FilterSettings.hpp:18