aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/searchfrm.h
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-14 09:57:17 +0000
committerdanglassey <danglassey>2002-08-14 09:57:17 +0000
commitc9458897ebbb739d8db83c80e06512d8a612f743 (patch)
treef8c5381045887e34388cc6b26cfccc254bf766dc /apps/windoze/CBuilder5/BibleCS/searchfrm.h
downloadsword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz
*** empty log message ***
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/searchfrm.h')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/searchfrm.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/searchfrm.h b/apps/windoze/CBuilder5/BibleCS/searchfrm.h
new file mode 100644
index 0000000..2b9a8ca
--- /dev/null
+++ b/apps/windoze/CBuilder5/BibleCS/searchfrm.h
@@ -0,0 +1,107 @@
+//---------------------------------------------------------------------------
+#ifndef searchH
+#define searchH
+//---------------------------------------------------------------------------
+#include <vcl\Classes.hpp>
+#include <vcl\Controls.hpp>
+#include <vcl\StdCtrls.hpp>
+#include <vcl\Forms.hpp>
+#include <vcl\ExtCtrls.hpp>
+#include "mainfrm.h"
+#include <swmgr.h>
+#include <ComCtrls.hpp>
+#include <TntStdCtrls.hpp>
+#include "rxricheditx.h"
+#include <ImgList.hpp>
+//---------------------------------------------------------------------------
+class TsearchForm : public TForm {
+ class TSearchThread;
+ friend class TSearchThread;
+__published: // IDE-managed Components
+ TImageList *searchImageList;
+ TPanel *pnlChooseMod;
+ TPanel *Panel7;
+ TProgressBar *progressBar;
+ TPanel *pnlResult;
+ TSplitter *Splitter1;
+ TPanel *plPreview;
+ TListView *resultsLV;
+ TPanel *Panel1;
+ TPanel *Panel3;
+ TComboBox *SearchTextOld;
+ TPanel *pnlScope;
+ TPanel *Panel2;
+ TRadioGroup *scopeGroup;
+ TPanel *Panel5;
+ TPanel *Panel8;
+ TLabel *moduleName;
+ TSplitter *ChooseModSplitter;
+ TPanel *Panel9;
+ TTreeView *modTreeView;
+ TPanel *Panel6;
+ TButton *Button1;
+ TPanel *Panel10;
+ TRadioGroup *searchTypeGroup;
+ TGroupBox *searchOptionsGroup;
+ TCheckBox *caseSensitiveCkBx;
+ TPanel *Panel4;
+ TButton *searchBtn;
+ TPanel *Panel11;
+ TPanel *Panel12;
+ TButton *customRangeBtn;
+ TComboBox *ComboBox1;
+ TLabel *lblChooseModule;
+ TButton *Button2;
+ void __fastcall searchBtnClick(TObject *Sender);
+ void __fastcall TerminateSearch(TObject *Sender);
+ void __fastcall ListBox1DblClick(TObject *Sender);
+ void __fastcall ListBox1Click(TObject *Sender);
+ void __fastcall scopeGroupClick(TObject *Sender);
+ void __fastcall customRangeBtnClick(TObject *Sender);
+ void __fastcall FormShow(TObject *Sender);
+ void __fastcall resultsLVChange(TObject *Sender, TListItem *Item,
+ TItemChange Change);
+ void __fastcall resultsLVCustomDrawItem(TCustomListView *Sender,
+ TListItem *Item, TCustomDrawState State, bool &DefaultDraw);
+ void __fastcall resultsLVInfoTip(TObject *Sender, TListItem *Item,
+ AnsiString &InfoTip);
+ void __fastcall Button1Click(TObject *Sender);
+ void __fastcall FormActivate(TObject *Sender);
+ void __fastcall modTreeViewChange(TObject *Sender, TTreeNode *Node);
+ void __fastcall Button2Click(TObject *Sender);
+private: // User declarations
+ class TSearchThread : public TThread {
+ ListKey results;
+ string searchText;
+ int searchType;
+ int searchOptions;
+ SWKey *scope;
+ TsearchForm *parent;
+ protected:
+ void __fastcall Execute();
+ public:
+ __fastcall TSearchThread(TsearchForm *parent, string searchText, int searchType, int searchOptions, SWKey *scope = 0, bool CreateSuspended = false);
+ void __fastcall FillListBox(void);
+ static void searchProgressCallback(char status, void *searchFrm);
+ void __fastcall updateStatus(void);
+ void __fastcall updateProgressBar(void);
+ } *searchThread;
+ TRxRichEditX *pvrtf;
+ ListKey results;
+ void populateRanges();
+public: // User declarations
+ void setTarget(SWModule *target);
+ char status;
+ SWModule *target;
+ TPageControl *targetpc;
+ TTntComboBox *SearchText;
+// AnsiString CapText;
+
+ __fastcall TsearchForm(TComponent* Owner);
+ void fillList();
+};
+//---------------------------------------------------------------------------
+extern TsearchForm *searchForm;
+//---------------------------------------------------------------------------
+#endif
+