shareselectdialog.h
来自「Last change: 2008-02-03 This is the sou」· C头文件 代码 · 共 76 行
H
76 行
/*
This file is part of KCeasy (http://www.kceasy.com)
Copyright (C) 2002-2004 Markus Kern <mkern@kceasy.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
//---------------------------------------------------------------------------
#ifndef ShareSelectDialogH
#define ShareSelectDialogH
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include "VirtualTrees.hpp"
#include <list>
#include "istring.h"
#include "Engine.h"
//---------------------------------------------------------------------------
using namespace KCeasyEngine;
using std::list;
class TShareSelectForm : public TForm
{
__published: // IDE-managed Components
TVirtualStringTree *FolderTree;
TStaticText *HelpStatic;
TButton *CancelBtn;
TButton *OkBtn;
TGroupBox *LegendGrp;
TLabel *Legend1Label;
TLabel *Legend2Label;
TImage *Legend1Image;
TImage *Legend2Image;
void __fastcall FolderTreeFreeNode(TBaseVirtualTree *Sender,
PVirtualNode Node);
void __fastcall FolderTreeGetText(TBaseVirtualTree *Sender,
PVirtualNode Node, TColumnIndex Column, TVSTTextType TextType,
WideString &CellText);
void __fastcall FolderTreeGetImageIndex(TBaseVirtualTree *Sender,
PVirtualNode Node, TVTImageKind Kind, TColumnIndex Column,
bool &Ghosted, int &ImageIndex);
void __fastcall FolderTreeInitChildren(TBaseVirtualTree *Sender,
PVirtualNode Node, DWORD &ChildCount);
void __fastcall OkBtnClick(TObject *Sender);
void __fastcall FolderTreeChecked(TBaseVirtualTree *Sender,
PVirtualNode Node);
private: // User declarations
void __fastcall CollectPaths(TVirtualNode* Node, list<string>& Paths);
void __fastcall CheckChildren(TVirtualNode* Node, TCheckState State);
TImageList* FolderImageList;
list<string> SharedFolders;
public: // User declarations
__fastcall TShareSelectForm(TComponent* Owner, const list<string>& Folders);
__fastcall ~TShareSelectForm();
const list<string>& GetFolders() { return SharedFolders; }
};
//---------------------------------------------------------------------------
extern PACKAGE TShareSelectForm *ShareSelectForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?