ReactOS  0.4.15-dev-1206-g731eddf
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);
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 
55 protected:
58  void* _para;
60 
61  void collect_programs(const ShellPath& path);
62 };
63 
64 
66 struct FPDEntry
67 {
69  int _idxIcon;
72 };
73 
75 
76 
78 struct FindProgramDlg : public ResizeController<Dialog>
79 {
81 
84 
85 protected:
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 };
String _lwr_filter
Definition: searchprogram.h:88
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
entry for the list in "find program" dialogs
Definition: searchprogram.h:66
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
String _common_programs
Definition: searchprogram.h:93
ResizeController< Dialog > super
Definition: searchprogram.h:80
Thread for collecting start menu entries.
Definition: searchprogram.h:35
#define CALLBACK
Definition: compat.h:35
COLLECT_CALLBACK _callback
Definition: searchprogram.h:56
CollectProgramsThread _thread
Definition: searchprogram.h:90
static WCHAR String[]
Definition: stringtable.c:55
UINT_PTR WPARAM
Definition: windef.h:207
sorting of list controls
Definition: window.h:951
Definition: svc_auth_des.c:77
static int CALLBACK CompareFunc(LPARAM lparam1, LPARAM lparam2, LPARAM lparamSort)
list< FPDEntry > FPDCache
Definition: searchprogram.h:74
String _user_programs
Definition: searchprogram.h:93
ListSort _sort
Definition: searchprogram.h:95
static void delete_cache(struct netbuf *)
Definition: rpcb_clnt.c:171
static void collect_programs_callback(Entry *entry, void *param)
virtual int Command(int id, int code)
LONG_PTR LPARAM
Definition: windef.h:208
#define false
Definition: osdep.h:35
void Refresh(bool delete_cache=false)
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
Controller base template class for resizable dialogs.
Definition: window.h:515
GLfloat param
Definition: glext.h:5796
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
uint32_t entry
Definition: isohybrid.c:63
Definition: inflate.c:139
Entry * _entry
Definition: searchprogram.h:68
Dialog to work with the complete list of start menu entries.
Definition: searchprogram.h:78
int _idxIcon
Definition: searchprogram.h:69
ShellDirectoryStack _dirs
Definition: searchprogram.h:59
void add_entry(const FPDEntry &cache_entry)
stack< ShellDirectory * > ShellDirectoryStack
Definition: searchprogram.h:32
unsigned int UINT
Definition: ndis.h:50
FindProgramDlg(HWND hwnd)
String _path
Definition: searchprogram.h:71
String _menu_path
Definition: searchprogram.h:70
void(* COLLECT_CALLBACK)(Entry *entry, void *param)
Definition: searchprogram.h:31
LONG_PTR LRESULT
Definition: windef.h:209
virtual int Notify(int id, NMHDR *pnmh)
wrapper class for item ID lists
Definition: shellclasses.h:651
CollectProgramsThread(COLLECT_CALLBACK callback, HWND hwnd, void *para)
Definition: searchprogram.h:37
void collect_programs(const ShellPath &path)
base of all file and directory entries
Definition: entries.h:82
FPDCache _cache
Definition: searchprogram.h:91
virtual LRESULT WndProc(UINT, WPARAM, LPARAM)