blob: 04a004e787993c13447a3b43cab92341a1c32c88 (
plain) (
blame)
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
47
48
49
50
51
52
|
//---------------------------------------------------------------------------
#ifndef bookmarkfrmH
#define bookmarkfrmH
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\ComCtrls.hpp>
#include <swconfig.h>
#include <vcl\Menus.hpp>
#include <list>
using namespace sword;
using namespace std;
//---------------------------------------------------------------------------
class TbookmarkForm : public TForm
{
__published: // IDE-managed Components
TTreeView *bmtree;
TPopupMenu *BMPopup;
TMenuItem *Delete1;
TMenuItem *AddChild1;
TMenuItem *Rename1;
TMenuItem *N1;
TMenuItem *NewBookmarkFile1;
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);
private: // User declarations
void AddSection(SWConfig *config, TTreeView *tree, TTreeNode *parent, String section);
list <String *> bmfiles; // so we can delete each display we create
public: // User declarations
string bmdir;
__fastcall TbookmarkForm(TComponent* Owner);
__fastcall ~TbookmarkForm();
void SaveBookmarks();
void AddSectionToConf(SWConfig *config, String section, TTreeNode *tree);
};
//---------------------------------------------------------------------------
extern TbookmarkForm *bookmarkForm;
//---------------------------------------------------------------------------
#endif
|