ReactOS
0.4.16-dev-91-g764881a
searchprogram.h
Go to the documentation of this file.
1
/*
2
* Copyright 2003, 2004 Martin Fuchs
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
20
//
21
// Explorer clone
22
//
23
// dialogs/searchprogram.h
24
//
25
// Explorer dialogs
26
//
27
// Martin Fuchs, 02.10.2003
28
//
29
30
31
typedef
void
(*
COLLECT_CALLBACK
)(
Entry
*
entry
,
void
*
param
);
32
typedef
stack<ShellDirectory*>
ShellDirectoryStack
;
33
35
struct
CollectProgramsThread
:
public
Thread
36
{
37
CollectProgramsThread
(
COLLECT_CALLBACK
callback
,
HWND
hwnd
,
void
* para)
38
:
_cache_valid
(
false
),
39
_callback
(
callback
),
40
_hwnd
(
hwnd
),
41
_para
(para)
42
{
43
}
44
45
~CollectProgramsThread
()
46
{
47
free_dirs
();
48
}
49
50
int
Run
();
51
void
free_dirs
();
52
53
bool
_cache_valid
;
54
55
protected
:
56
COLLECT_CALLBACK
_callback
;
57
HWND
_hwnd
;
58
void
*
_para
;
59
ShellDirectoryStack
_dirs
;
60
61
void
collect_programs
(
const
ShellPath
&
path
);
62
};
63
64
66
struct
FPDEntry
67
{
68
Entry
*
_entry
;
69
int
_idxIcon
;
70
String
_menu_path
;
71
String
_path
;
72
};
73
74
typedef
list<FPDEntry>
FPDCache
;
75
76
78
struct
FindProgramDlg
:
public
ResizeController
<Dialog>
79
{
80
typedef
ResizeController<Dialog>
super
;
81
82
FindProgramDlg
(
HWND
hwnd
);
83
~FindProgramDlg
();
84
85
protected
:
86
HWND
_list_ctrl
;
87
HACCEL
_haccel
;
88
String
_lwr_filter
;
89
90
CollectProgramsThread
_thread
;
91
FPDCache
_cache
;
92
93
String
_common_programs
,
_user_programs
;
94
95
ListSort
_sort
;
96
97
virtual
LRESULT
WndProc
(
UINT
,
WPARAM
,
LPARAM
);
98
virtual
int
Command
(
int
id
,
int
code
);
99
virtual
int
Notify
(
int
id
,
NMHDR
* pnmh);
100
101
void
Refresh
(
bool
delete_cache
=
false
);
102
void
add_entry
(
const
FPDEntry
&
cache_entry
);
103
void
LaunchSelected
();
104
void
CheckEntries
();
105
106
static
void
collect_programs_callback
(
Entry
*
entry
,
void
*
param
);
107
static
int
CALLBACK
CompareFunc
(
LPARAM
lparam1,
LPARAM
lparam2,
LPARAM
lparamSort);
108
};
list
Definition:
list.h:37
CALLBACK
#define CALLBACK
Definition:
compat.h:35
Thread
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition:
fltkernel.h:2653
param
GLfloat param
Definition:
glext.h:5796
void
Definition:
nsiface.idl:2307
entry
uint32_t entry
Definition:
isohybrid.c:63
Refresh
void Refresh(void)
Definition:
magnifier.c:317
callback
static IPrintDialogCallback callback
Definition:
printdlg.c:326
UINT
unsigned int UINT
Definition:
ndis.h:50
delete_cache
static void delete_cache(struct netbuf *)
Definition:
rpcb_clnt.c:171
ShellDirectoryStack
stack< ShellDirectory * > ShellDirectoryStack
Definition:
searchprogram.h:32
FPDCache
list< FPDEntry > FPDCache
Definition:
searchprogram.h:74
COLLECT_CALLBACK
void(* COLLECT_CALLBACK)(Entry *entry, void *param)
Definition:
searchprogram.h:31
false
#define false
Definition:
stdbool.h:37
CollectProgramsThread
Thread for collecting start menu entries.
Definition:
searchprogram.h:36
CollectProgramsThread::free_dirs
void free_dirs()
Definition:
searchprogram.cpp:74
CollectProgramsThread::_cache_valid
bool _cache_valid
Definition:
searchprogram.h:53
CollectProgramsThread::~CollectProgramsThread
~CollectProgramsThread()
Definition:
searchprogram.h:45
CollectProgramsThread::CollectProgramsThread
CollectProgramsThread(COLLECT_CALLBACK callback, HWND hwnd, void *para)
Definition:
searchprogram.h:37
CollectProgramsThread::collect_programs
void collect_programs(const ShellPath &path)
Definition:
searchprogram.cpp:55
CollectProgramsThread::_hwnd
HWND _hwnd
Definition:
searchprogram.h:57
CollectProgramsThread::_callback
COLLECT_CALLBACK _callback
Definition:
searchprogram.h:56
CollectProgramsThread::Run
int Run()
Definition:
searchprogram.cpp:36
CollectProgramsThread::_dirs
ShellDirectoryStack _dirs
Definition:
searchprogram.h:59
CollectProgramsThread::_para
void * _para
Definition:
searchprogram.h:58
Command
Definition:
shell.h:41
Entry
base of all file and directory entries
Definition:
entries.h:83
FPDEntry
entry for the list in "find program" dialogs
Definition:
searchprogram.h:67
FPDEntry::_idxIcon
int _idxIcon
Definition:
searchprogram.h:69
FPDEntry::_path
String _path
Definition:
searchprogram.h:71
FPDEntry::_entry
Entry * _entry
Definition:
searchprogram.h:68
FPDEntry::_menu_path
String _menu_path
Definition:
searchprogram.h:70
FindProgramDlg
Dialog to work with the complete list of start menu entries.
Definition:
searchprogram.h:79
FindProgramDlg::_cache
FPDCache _cache
Definition:
searchprogram.h:91
FindProgramDlg::_lwr_filter
String _lwr_filter
Definition:
searchprogram.h:88
FindProgramDlg::~FindProgramDlg
~FindProgramDlg()
Definition:
searchprogram.cpp:141
FindProgramDlg::WndProc
virtual LRESULT WndProc(UINT, WPARAM, LPARAM)
Definition:
searchprogram.cpp:262
FindProgramDlg::collect_programs_callback
static void collect_programs_callback(Entry *entry, void *param)
Definition:
searchprogram.cpp:173
FindProgramDlg::Notify
virtual int Notify(int id, NMHDR *pnmh)
Definition:
searchprogram.cpp:339
FindProgramDlg::_thread
CollectProgramsThread _thread
Definition:
searchprogram.h:90
FindProgramDlg::CompareFunc
static int CALLBACK CompareFunc(LPARAM lparam1, LPARAM lparam2, LPARAM lparamSort)
Definition:
searchprogram.cpp:393
FindProgramDlg::_haccel
HACCEL _haccel
Definition:
searchprogram.h:87
FindProgramDlg::_user_programs
String _user_programs
Definition:
searchprogram.h:93
FindProgramDlg::super
ResizeController< Dialog > super
Definition:
searchprogram.h:80
FindProgramDlg::_list_ctrl
HWND _list_ctrl
Definition:
searchprogram.h:86
FindProgramDlg::CheckEntries
void CheckEntries()
Definition:
searchprogram.cpp:418
FindProgramDlg::_common_programs
String _common_programs
Definition:
searchprogram.h:93
FindProgramDlg::add_entry
void add_entry(const FPDEntry &cache_entry)
Definition:
searchprogram.cpp:229
FindProgramDlg::LaunchSelected
void LaunchSelected()
Definition:
searchprogram.cpp:319
FindProgramDlg::_sort
ListSort _sort
Definition:
searchprogram.h:95
ListSort
sorting of list controls
Definition:
window.h:952
ResizeController
Controller base template class for resizable dialogs.
Definition:
window.h:516
ShellPath
wrapper class for item ID lists
Definition:
shellclasses.h:652
cache_entry
Definition:
svc_auth_des.c:77
code
Definition:
inflate.c:139
path
Definition:
wbemprox_private.h:188
stack
Definition:
format.c:80
tagNMHDR
Definition:
winuser.h:3159
String
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition:
wdfdevice.h:2433
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
modules
rosapps
applications
explorer-old
dialogs
searchprogram.h
Generated on Sun Oct 6 2024 06:06:00 for ReactOS by
1.9.6