1 /********************************************************************************
2 *                                                                               *
3 *                       T e x t   S e a r c h   D i a l o g                     *
4 *                                                                               *
5 *********************************************************************************
6 * Copyright (C) 2000,2021 by Jeroen van der Zijp.   All Rights Reserved.        *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify          *
9 * it under the terms of the GNU Lesser General Public License as published by   *
10 * the Free Software Foundation; either version 3 of the License, or             *
11 * (at your option) any later version.                                           *
12 *                                                                               *
13 * This library is distributed in the hope that it will be useful,               *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
16 * GNU Lesser General Public License for more details.                           *
17 *                                                                               *
18 * You should have received a copy of the GNU Lesser General Public License      *
19 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
20 ********************************************************************************/
21 #include "xincs.h"
22 #include "fxver.h"
23 #include "fxdefs.h"
24 #include "fxmath.h"
25 #include "FXArray.h"
26 #include "FXHash.h"
27 #include "FXMutex.h"
28 #include "FXStream.h"
29 #include "FXString.h"
30 #include "FXSize.h"
31 #include "FXPoint.h"
32 #include "FXRectangle.h"
33 #include "FXStringDictionary.h"
34 #include "FXSettings.h"
35 #include "FXRegistry.h"
36 #include "FXAccelTable.h"
37 #include "FXFont.h"
38 #include "FXEvent.h"
39 #include "FXWindow.h"
40 #include "FXApp.h"
41 #include "FXFrame.h"
42 #include "FXLabel.h"
43 #include "FXButton.h"
44 #include "FXPacker.h"
45 #include "FXHorizontalFrame.h"
46 #include "FXTextField.h"
47 #include "FXReplaceDialog.h"
48 #include "FXSearchDialog.h"
49 
50 
51 
52 /*
53   Notes:
54 
55   - Search dialog is essentially a FXReplaceDialog with some of the buttons
56     hidden.
57   - Search dialog is now kept open until explicitly closed.
58 */
59 
60 using namespace FX;
61 
62 /*******************************************************************************/
63 
64 namespace FX {
65 
66 
67 // Object implementation
68 FXIMPLEMENT(FXSearchDialog,FXReplaceDialog,NULL,0)
69 
70 
71 // Search Dialog
FXSearchDialog(FXWindow * own,const FXString & caption,FXIcon * icn,FXuint opts,FXint x,FXint y,FXint w,FXint h)72 FXSearchDialog::FXSearchDialog(FXWindow* own,const FXString& caption,FXIcon* icn,FXuint opts,FXint x,FXint y,FXint w,FXint h):FXReplaceDialog(own,caption,icn,opts,x,y,w,h){
73   replace->hide();
74   replacesel->hide();
75   replaceall->hide();
76   replacelabel->hide();
77   replacebox->hide();
78   }
79 
80 
81 // Cleanup
~FXSearchDialog()82 FXSearchDialog::~FXSearchDialog(){
83   }
84 
85 }
86 
87