31 m_Title(
_(
"Default workspace")),
32 m_PreferredTargetName()
73 msg.
Printf(
_(
"Workspace '%s' does not exist..."), fname.
c_str());
132 if (dlg.ShowModal() !=
wxID_OK)
180 fn.
SetExt(
_T(
"workspace.layout") );
195 fn.
SetExt(
_T(
"workspace.layout") );
wxString F(const wxChar *msg,...)
sprintf-like function
bool Matches(const wxString &mask) const
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
cbWorkspace(const wxString &filename=DEFAULT_WORKSPACE)
Constructor.
virtual void SetTitle(const wxString &title)
Set the workspace's title.
virtual bool Open(const wxString &filename, wxString &Title)=0
virtual bool Save(bool force=false)
Save the workspace.
bool wxDirExists(const wxString &dirname)
bool SaveLayout(const wxString &filename)
virtual void SetModified(bool modified)
Mark the workspace as modified or not.
DLLIMPORT FileType FileTypeOf(const wxString &filename)
bool wxMkdir(const wxString &dir, int perm=wxS_DIR_DEFAULT)
wxString GetPreferredTarget() const
Get the preferred target for this workspace.
static wxString GetConfigFolder()
const DLLIMPORT wxString WORKSPACE_EXT
virtual ~cbWorkspace()
Destructor.
LogManager * GetLogManager() const
void SetPreferredTarget(const wxString &target)
Set the preferred target for this workspace.
const wxStringCharType * wx_str() const
bool Save(const wxString &title, const wxString &filename) override
const wxString & _(const wxString &string)
virtual bool SaveAs(const wxString &filename)
Save the workspace under a different filename.
DLLIMPORT wxString GetFilterString(const wxString &ext=wxEmptyString)
Generates and returns the filter string for use in file dialogs.
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
wxString GetPath(int flags=wxPATH_GET_VOLUME, wxPathFormat format=wxPATH_NATIVE) const
wxString GetFullName() const
DLLIMPORT const wxString DEFAULT_WORKSPACE
void DebugLog(const wxString &msg, Logger::level lv=Logger::info)
void SetExt(const wxString &ext)
void ActiveProjectChanged()
int Printf(const wxString &pszFormat,...)
wxString m_PreferredTargetName
bool LoadLayout(const wxString &filename)
wxString GetFullPath(wxPathFormat format=wxPATH_NATIVE) const
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.