summaryrefslogtreecommitdiff
path: root/apps/windoze/CBuilder4/prototype/BookMarkPanel.h
blob: c998b7683e573786854c6096e6332cfa43835f35 (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
//---------------------------------------------------------------------------
#ifndef BookMarkPanelH
#define BookMarkPanelH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <swconfig.h>
#include <list>
//---------------------------------------------------------------------------
class PACKAGE TBookMarkPanel : public TPanel
{
private:
	void AddSection(SWConfig *config, TTreeView *tree, TTreeNode *parent, String section);
	list <String *> bmfiles;	// so we can delete each display we create
protected:
public:
	__fastcall TBookMarkPanel(TComponent* Owner);
	virtual __fastcall ~TBookMarkPanel();
	virtual void __fastcall CreateWnd();
	string bmdir;
	void SaveBookmarks();
	void AddSectionToConf(SWConfig *config, String section, TTreeNode *tree);
__published:
	TTreeView *bmtree;
	TPopupMenu *BMPopup;
	void __fastcall bmtreeDragDrop(TObject *Sender, TObject *Source, int X, int Y);
	void __fastcall bmtreeDragOver(TObject *Sender, TObject *Source, int X, int Y,
	TDragState State, bool &Accept);
	void __fastcall bmtreeDblClick(TObject *Sender);
	void __fastcall AddChild1Click(TObject *Sender);
	void __fastcall Delete1Click(TObject *Sender);
	void __fastcall Rename1Click(TObject *Sender);
	void __fastcall NewBookmarkFile1Click(TObject *Sender);
};
//---------------------------------------------------------------------------
#endif