Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FbFrameDownld.h « MyRuLib - github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d49c39a9ad3a335ef8c925519a96e44cc7ce145d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __FBFRAMEDOWNLD_H__
#define __FBFRAMEDOWNLD_H__

#include <wx/wx.h>
#include <wx/toolbar.h>
#include <wx/aui/tabmdi.h>
#include <wx/html/htmlwin.h>
#include <wx/textctrl.h>
#include <wx/sizer.h>
#include <wx/splitter.h>
#include <wx/wxsqlite3.h>
#include "wx/treelistctrl.h"
#include "FbFrameBase.h"
#include "FbTreeListCtrl.h"
#include "FbBookEvent.h"

class FbFrameDownld : public FbFrameBase
{
public:
	FbFrameDownld(wxAuiMDIParentFrame * parent);
	void UpdateFolder(const int iFolder, const FbFolderType type);
protected:
	virtual wxToolBar *CreateToolBar(long style, wxWindowID winid, const wxString& name);
	virtual void CreateControls();
	virtual void UpdateBooklist();
private:
	void CreateBookInfo();
	void FillFolders(const int iCurrent = 0);
	void FillByFolder(FbFolderData * data);
	void DeleteItems(const wxTreeItemId &root, wxArrayInt &items);
	FbFolderData * GetSelected();
private:
	FbTreeListCtrl * m_FolderList;
	wxToolBar * m_toolbar;
private:
	void OnFavoritesDel(wxCommandEvent & event);
	void OnFolderAppend(wxCommandEvent & event);
	void OnFolderModify(wxCommandEvent & event);
	void OnFolderDelete(wxCommandEvent & event);
	void OnStart(wxCommandEvent & event);
	void OnPause(wxCommandEvent & event);
	void OnFolderSelected(wxTreeEvent & event);
	DECLARE_EVENT_TABLE()
};

#endif // __FBFRAMEDOWNLD_H__