54 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
62 if (platform::windows)
65 XRCCTRL(*
this,
"txtBatchBuildsCmdLine",
wxTextCtrl)->Enable(
false);
71 clb->SetMinSize(
wxSize(-1, 150));
73 for (
size_t i = 0; i < plugins.GetCount(); ++i)
82 size_t index = clb->Append(elem->
info.
title);
84 for (
size_t n = 0; n < bbplugins.
GetCount(); ++n)
86 if (filename.
CmpNoCase(bbplugins[n]) == 0)
98 GetSizer()->SetSizeHints(
this);
113 const wxString noimg =
_T(
"images/settings/generic-plugin");
117 wxWindow* existingPage = lb->GetPage(0);
125 ConfigurationPanelsArray local;
129 for (
size_t i = 0; i < local.GetCount(); ++i)
151 lb->
AddPage(existingPage, existingTitle);
174 lb->SetImageList(
nullptr);
180 for (
size_t i = 0; i < IMAGES_COUNT +
m_PluginPanels.GetCount(); ++i)
188 while (label.Replace(
_T(
" & "),
_T(
" && ")))
190 XRCCTRL(*
this,
"lblBigTitle",
wxStaticText)->SetLabel(label);
191 XRCCTRL(*
this,
"pnlTitleInfo",
wxPanel)->Layout();
201 if (event.GetOldSelection() != -1 &&
event.GetSelection() != -1)
215 cfg->
Write(
_T(
"/batch_build_args"), bbargs);
218 #endif //#ifdef __WXMSW__ 223 for (
size_t i = 0; i < clb->
GetCount(); ++i)
228 for (
size_t n = 0; n < plugins.GetCount(); ++n)
void EndModal(int retCode)
virtual bool AddPage(wxWindow *page, const wxString &text, bool select=false, int imageId=NO_IMAGE)
PluginManager * GetPluginManager() const
virtual bool SetPageImage(size_t page, int image)=0
virtual int GetSelection() const=0
Data folder in user's dir.
ConfigManager * GetConfigManager(const wxString &name_space) const
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
SettingsIconsStyle
Icons styles for settings dialogs.
virtual wxString GetString(unsigned int n) const
DLLIMPORT wxBitmap cbLoadBitmap(const wxString &filename, wxBitmapType bitmapType=wxBITMAP_TYPE_PNG)
This function loads a bitmap from disk.
void GetConfigurationPanels(int group, wxWindow *parent, ConfigurationPanelsArray &arrayToFill)
virtual ~CompilerSettingsDlg()
static const int cgCompiler
Compiler related.
virtual wxString GetTitle() const =0
wxImageList * m_pImageList
const PluginElementsArray & GetPlugins() const
virtual size_t GetPageCount() const
virtual void OnApply()=0
Called when the user chooses to apply the configuration.
virtual void OnCancel()=0
Called when the user chooses to cancel the configuration.
bool IsChecked(unsigned int item) const
int CmpNoCase(const wxString &s) const
static wxString LocateDataFile(const wxString &filename, int search_dirs=sdAllKnown)
Locate a file in an installation- and platform-independent way.
void UpdateListbookImages()
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
virtual int GetImageCount() const
ConfigurationPanelsArray m_PluginPanels
void Check(unsigned int item, bool check=true)
void OnPageChanging(wxListbookEvent &event)
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
Base class for plugin configuration panels.
virtual wxString GetBitmapBaseName() const =0
DLLIMPORT wxArrayString cbReadBatchBuildPlugins()
Read the list of batch build plugins and return them.
wxString GetFullName() const
virtual void EndModal(int retCode)
DLLIMPORT void SetSettingsIconsStyle(wxListCtrl *lc, SettingsIconsStyle style)
Set the icons style for the supplied list control.
size_t Add(const wxString &str, size_t copies=1)
const wxString DefaultBatchBuildArgs
int Add(const wxBitmap &bitmap, const wxBitmap &mask=wxNullBitmap)
virtual wxString GetPageText(size_t nPage) const=0
static wxXmlResource * Get()
bool IsAttached() const
See whether this plugin is attached or not.
const wxString base_imgs[]
virtual bool RemovePage(size_t page)
DLLIMPORT void cbWriteBatchBuildPlugins(wxArrayString bbplugins, wxWindow *messageBoxParent)
Write the list of batch build plugins in the config.
void SetParentDialog(wxWindow *dialog)
Sets the panel's parent dialog.
wxListView * GetListView() const
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
virtual unsigned int GetCount() const
void OnPageChanged(wxListbookEvent &event)