#ifndef NAVFIND_H #define NAVFIND_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "utils.h" #include "NavPage.h" #include "TextControl.h" #include "SwordIndex.h" class SimpleNavigator; class NavFind: public NavPage, public Searcher { public: NavFind(SimpleNavigator* navigator); virtual ~NavFind(); void show(); void paint(); void hide(); void buttonClicked(int id); void searchFor(const WCString &query); virtual void setProgress(int percent); virtual void addResult(const WCString &verseStr); void placeWidgets(); private: //Navigator* navigator; std::vector verses; HWND queryEdit,search; HWND rangeBible, rangeTestament, rangeBook; HWND methodMultiword, methodExactphrase; HWND progressBar, results, title, go; TextControl* preview; int searchID; int rangeBibleID, rangeTestamentID, rangeBookID; int methodMultiwordID, methodExactphraseID; int goID, resultsID; void clearResults(); void previewVerse(Verse* verse); void navigateToVerse(Verse* verse); int rangeMode; int methodMode; }; #endif