📄 searchpage.h
字号:
/*
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 SearchPageH
#define SearchPageH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <Buttons.hpp>
#include "SearchResultPage.h"
#include "Engine.h"
#include <CheckLst.hpp>
#include "VirtualTrees.hpp"
//---------------------------------------------------------------------------
class TNetworkNodeData
{
public:
TNetwork* Network;
AnsiString Name;
int ImageIndex;
};
class TSearchForm : public TForm
{
__published: // IDE-managed Components
TPanel *QueryPanel;
TPanel *RightPanel;
TLabel *QueryComboLabel;
TRadioGroup *RealmRadioGroup;
TComboBox *QueryCombo;
TSpeedButton *StartSearchBtn;
TPanel *StartSearchBtnPanel;
TSpeedButton *HideQueryBtn;
TPanel *HideQueryPanel;
TPanel *LeftPanel;
TPanel *VSpacePanel;
TVirtualStringTree *NetworkTree;
TGroupBox *NetworkGroup;
TTabControl *ResultTabCtrl;
TPanel *ResultPanel;
TPanel *ResultTabPanel;
void __fastcall StartSearchBtnClick(TObject *Sender);
void __fastcall QueryComboClick(TObject *Sender);
void __fastcall QueryComboCloseUp(TObject *Sender);
void __fastcall QueryComboDropDown(TObject *Sender);
void __fastcall QueryComboKeyPress(TObject *Sender, char &Key);
void __fastcall RealmRadioGroupClick(TObject *Sender);
void __fastcall QueryComboChange(TObject *Sender);
void __fastcall HideQueryBtnClick(TObject *Sender);
void __fastcall NetworkTreeGetImageIndex(TBaseVirtualTree *Sender,
PVirtualNode Node, TVTImageKind Kind, TColumnIndex Column,
bool &Ghosted, int &ImageIndex);
void __fastcall NetworkTreeGetText(TBaseVirtualTree *Sender,
PVirtualNode Node, TColumnIndex Column, TVSTTextType TextType,
WideString &CellText);
void __fastcall NetworkTreeChecked(TBaseVirtualTree *Sender,
PVirtualNode Node);
void __fastcall ResultTabCtrlChange(TObject *Sender);
void __fastcall ResultTabCtrlGetImageIndex(TObject *Sender,
int TabIndex, int &ImageIndex);
private: // User declarations
public: // User declarations
__fastcall TSearchForm(TComponent* Owner);
void __fastcall Release();
bool __fastcall EngineCallback(TCallbackInfo* CbInfo);
void __fastcall PageActivated();
void RunSearch(AnsiString Query, TSearchRealm Realm = SRAny, AnsiString Network = "");
void CloseSearch(TSearchResultForm* ResultForm);
void SetTabCaption(TSearchResultForm* ResultForm, AnsiString& Title);
};
//---------------------------------------------------------------------------
extern TSearchForm *SearchForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -