home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / listpm3.zip / source / sav / search.hpp < prev   
C/C++ Source or Header  |  1996-06-28  |  2KB  |  61 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. #include <isetcv.hpp>
  28. #include <ientryfd.hpp>
  29. #include <icheckbx.hpp>
  30. #include <iradiobt.hpp>
  31. #include <istring.hpp>
  32. #include <icmdhdr.hpp>
  33.  
  34.  
  35. class SearchInfo : public IFrameWindow
  36. {
  37.       private:
  38.                   ISetCanvas       canvas;
  39.                   IEntryField      search_text_field;
  40.                   ISetCanvas       horz_canvas;
  41.                   ICheckBox        exact_box;
  42.                   ISetCanvas       vert_canvas;
  43.                   IRadioButton     forward,reverse;
  44.       public:
  45.  
  46.                   SearchInfo(IWindow & owner);
  47.                   Boolean Exact(void);
  48.                   Boolean DirectionForward(void);
  49.  
  50.                   operator IString();
  51.  
  52.                   IString GetToBeSearched(void);
  53.  
  54.                   class SearchCommand : public ICommandHandler
  55.                   {
  56.                      virtual Boolean command(ICommandEvent& evt);
  57.                   } cmd_hand;
  58.  
  59. };
  60. #endif // SEARCH
  61.