36 XRCCTRL(*
this,
"wxID_CANCEL",
wxButton)->SetDefault();
42 for (
size_t i = 0; i < mainarr->GetCount(); ++i)
77 for (
size_t i = 0; i < lst->
GetCount(); ++i)
85 for (
size_t x = 0; x < mainarr->GetCount(); ++x)
87 if (mainarr->Item(x)->GetTitle() == lst->
GetString(i))
89 prj = mainarr->Item(x);
96 if (!
Manager::Get()->GetProjectManager()->AddProjectDependency(thisprj, prj))
99 "would cause a circular dependency error..."),
130 for (
size_t i = 0; i < mainarr->GetCount(); ++i)
void EndModal(int retCode)
void OnProjectChange(wxCommandEvent &event)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
virtual int GetSelection() const
virtual wxString GetString(unsigned int n) const
virtual void EndModal(int retCode)
bool IsChecked(unsigned int item) const
ProjectManager * GetProjectManager() const
Functions returning pointers to the respective sub-manager instances.
Represents a Code::Blocks project.
virtual const wxString & GetTitle() const
Read the target's title.
void Check(unsigned int item, bool check=true)
const wxString & _(const wxString &string)
virtual ~ProjectDepsDlg()
static wxXmlResource * Get()
ProjectsArray * GetProjects()
Retrieve an array of all the opened projects.
virtual void SetSelection(int n)
static wxString Format(const wxString &format,...)
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
virtual unsigned int GetCount() const
const ProjectsArray * GetDependenciesForProject(cbProject *base)
Get the array of projects base depends on.
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.
void ClearProjectDependencies(cbProject *base)
Removes all dependencies from project base.