2 * Copyright (c) 1998-2007 Matthijs Hollemans
3 * All rights reserved. Distributed under the terms of the MIT License.
10 #include <FindDirectory.h>
17 #include "GlobalDefs.h"
21 MSG_START_CANCEL
= 1000,
26 MSG_REGULAR_EXPRESSION
,
29 MSG_CHECKBOX_SHOW_LINES
,
33 MSG_NODE_MONITOR_PULSE
,
34 MSG_START_NODE_MONITORING
,
49 MSG_SELECT_IN_TRACKER
,
68 void AddToHistory(const char* text
);
69 void FillHistoryMenu(BMenu
* menu
) const;
72 // The directory we were invoked from.
75 // The selected files we were invoked upon.
76 BMessage fSelectedFiles
;
78 // Whether we need to look into subdirectories.
81 // Whether we need to follow symbolic links.
84 // Whether we should skip subdirectories that start with a dot.
87 // Whether the search is case sensitive.
90 // Whether the search pattern is a regular expression.
91 bool fRegularExpression
;
93 // Whether we look at text files only.
96 // Whether we open the item in Pe and jump to the correct line.
99 // The dimensions of the window.
102 // What are we doing.
105 // Current directory of the filepanel
106 BString fFilePanelPath
;
111 // Grep string encoding ?
115 bool _LoadHistory(BList
& items
) const;
116 status_t
_SaveHistory(const BList
& items
) const;
117 void _FreeHistory(const BList
& items
) const;
118 status_t
_OpenFile(BFile
* file
, const char* name
,
119 uint32 openMode
= B_READ_ONLY
,
120 directory_which which
121 = B_USER_SETTINGS_DIRECTORY
,
122 BVolume
* volume
= NULL
) const;