Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (24 sloc) 1.14 KB
#ifndef __BUNDLEITEMEDITORCTRL_H__
#define __BUNDLEITEMEDITORCTRL_H__
#include "EditorCtrl.h"
class IUpdatePanel;
class BundleItemEditorCtrl : public EditorCtrl {
public:
BundleItemEditorCtrl(const int page_id, CatalystWrapper& cw, wxBitmap& bitmap, wxWindow* parent, EditorFrame& parentFrame);
BundleItemEditorCtrl(CatalystWrapper& cw, wxBitmap& bitmap, wxWindow* parent, EditorFrame& parentFrame, const wxPoint& pos = wxPoint(-100,-100), const wxSize& size = wxDefaultSize);
virtual ~BundleItemEditorCtrl();
virtual const char** RecommendedIcon();
virtual bool SaveText(bool askforpath=false);
virtual void SetPath(const wxString& newpath);
BundleItemType GetBundleType() const {return m_bundleType;};
void SetParentPanel(IUpdatePanel* bundlePanel) {m_parentPanel = bundlePanel;};
protected:
virtual cxFileResult LoadLinesIntoDocument(const wxString& whence_to_load, wxFontEncoding enc, const RemoteProfile* rp, wxFileName& localPath);
virtual void UpdateParentPanels();
private:
bool LoadBundleItem(const wxString& uuid);
bool SaveBundleItem();
IUpdatePanel* m_parentPanel;
BundleItemType m_bundleType;
};
#endif // __BUNDLEITEMEDITORCTRL_H__