home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / listpm.zip / source / search.hpp < prev    next >
C/C++ Source or Header  |  1996-07-08  |  2KB  |  76 lines

  1. /*
  2.     listPM list files under Presentation Manager. Uses Open Class Libarary.
  3.     Copyright (C) 1996  Paul Elliott
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.     Paul Elliott
  20.     3987 South Gessner #224
  21.     Houston Tx 77063
  22.     Paul.Elliott@Hrnowl.LoneStar.Org
  23. */
  24. #ifndef SEARCH
  25. #define SEARCH
  26. #include <iframe.hpp>
  27.  
  28. #include <ientryfd.hpp>
  29. #include <icheckbx.hpp>
  30. #include <iradiobt.hpp>
  31. #include <istring.hpp>
  32. #include <iaccel.hpp>
  33. #include <ihelp.hpp>
  34. #include <ihelphdr.hpp>
  35.  
  36. /*
  37.  * this is a dialog which gets text to search for,
  38.  * direction of search =( forward or reverse )
  39.  * and exact case search.
  40.  */
  41. class SearchInfo : public IFrameWindow
  42. {
  43.       private:
  44.  
  45.                   // search text entry field.
  46.                   IEntryField      search_text_field;
  47.  
  48.                   // check box specifies exact case.
  49.                   ICheckBox        exact_box;
  50.  
  51.                   // forward,reverse radio buttons.
  52.                   IRadioButton     forward,reverse;
  53.  
  54.                   // key board accelerator.
  55.                   IAccelerator     acc;
  56.  
  57.       public:
  58.  
  59.                   // construct from owner. and its help window.
  60.                   SearchInfo(IWindow & owner , IHelpWindow& help);
  61.  
  62.                   // returns exact case requested.
  63.                   Boolean Exact(void);
  64.  
  65.                   // true if foward direction wanted.
  66.                   Boolean DirectionForward(void);
  67.  
  68.                   // returns string to searched for.
  69.                   operator IString();
  70.  
  71.                   // run dialog till user closes.
  72.                   IString GetToBeSearched(void);
  73.  
  74. };
  75. #endif // SEARCH
  76.