#ifndef __FBFRAMEFLDR_H__
#define __FBFRAMEFLDR_H__

#include "FbFrameBase.h"

class FbFrameFldr : public FbFrameBase
{
	public:
		FbFrameFldr(wxAuiNotebook * parent, bool select = false);
		virtual wxString GetTitle() const { return _("My folders"); };
		void UpdateFolder(const int iFolder, const FbFolderType type);
	private:
		void CreateColumns();
		void CreateBookInfo();
		void FillFolders(const int iCurrent = 0);
		void DeleteItems(const wxTreeItemId &root, wxArrayInt &items);
		FbParentData * m_folders;
		FbToolBar m_ToolBar;
	private:
		void OnFavoritesDel(wxCommandEvent & event);
		void OnFolderAppend(wxCommandEvent & event);
		void OnFolderModify(wxCommandEvent & event);
		void OnFolderDelete(wxCommandEvent & event);
		void OnFolderSelected(wxTreeEvent & event);
		DECLARE_CLASS(FbFrameFldr)
		DECLARE_EVENT_TABLE()
};

#endif // __FBFRAMEFLDR_H__
