//--------------------------------------------------------------------------- #ifndef BookMarkPanelH #define BookMarkPanelH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include //--------------------------------------------------------------------------- class PACKAGE TBookMarkPanel : public TPanel { private: void AddSection(SWConfig *config, TTreeView *tree, TTreeNode *parent, String section); list 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