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
33
36{
40 _hwnd(hwnd),
41 _para(para)
42 {
43 }
44
46 {
47 free_dirs();
48 }
49
50 int Run();
51 void free_dirs();
52
54
55protected:
58 void* _para;
60
61 void collect_programs(const ShellPath& path);
62};
63
64
67{
72};
73
75
76
78struct FindProgramDlg : public ResizeController<Dialog>
79{
81
84
85protected:
87 HACCEL _haccel;
89
92
94
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};
Definition: list.h:37
#define CALLBACK
Definition: compat.h:35
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
GLfloat param
Definition: glext.h:5796
uint32_t entry
Definition: isohybrid.c:63
void Refresh(void)
Definition: magnifier.c:317
static IPrintDialogCallback callback
Definition: printdlg.c:326
unsigned int UINT
Definition: ndis.h:50
static void delete_cache(struct netbuf *)
Definition: rpcb_clnt.c:171
stack< ShellDirectory * > ShellDirectoryStack
Definition: searchprogram.h:32
list< FPDEntry > FPDCache
Definition: searchprogram.h:74
void(* COLLECT_CALLBACK)(Entry *entry, void *param)
Definition: searchprogram.h:31
#define false
Definition: stdbool.h:37
Thread for collecting start menu entries.
Definition: searchprogram.h:36
CollectProgramsThread(COLLECT_CALLBACK callback, HWND hwnd, void *para)
Definition: searchprogram.h:37
void collect_programs(const ShellPath &path)
COLLECT_CALLBACK _callback
Definition: searchprogram.h:56
ShellDirectoryStack _dirs
Definition: searchprogram.h:59
Definition: shell.h:41
base of all file and directory entries
Definition: entries.h:83
entry for the list in "find program" dialogs
Definition: searchprogram.h:67
int _idxIcon
Definition: searchprogram.h:69
String _path
Definition: searchprogram.h:71
Entry * _entry
Definition: searchprogram.h:68
String _menu_path
Definition: searchprogram.h:70
Dialog to work with the complete list of start menu entries.
Definition: searchprogram.h:79
FPDCache _cache
Definition: searchprogram.h:91
String _lwr_filter
Definition: searchprogram.h:88
virtual LRESULT WndProc(UINT, WPARAM, LPARAM)
static void collect_programs_callback(Entry *entry, void *param)
virtual int Notify(int id, NMHDR *pnmh)
CollectProgramsThread _thread
Definition: searchprogram.h:90
static int CALLBACK CompareFunc(LPARAM lparam1, LPARAM lparam2, LPARAM lparamSort)
String _user_programs
Definition: searchprogram.h:93
ResizeController< Dialog > super
Definition: searchprogram.h:80
String _common_programs
Definition: searchprogram.h:93
void add_entry(const FPDEntry &cache_entry)
ListSort _sort
Definition: searchprogram.h:95
sorting of list controls
Definition: window.h:952
Controller base template class for resizable dialogs.
Definition: window.h:516
wrapper class for item ID lists
Definition: shellclasses.h:652
Definition: svc_auth_des.c:77
Definition: inflate.c:139
Definition: format.c:80
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207