ReactOS  0.4.15-dev-3187-ge372f2b
gui.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "rapps.h"
4 #include "rosui.h"
5 #include "crichedit.h"
6 #include "asyncinet.h"
7 #include "misc.h"
8 #include "appview.h"
9 #include <shlobj_undoc.h>
10 #include <shlguid_undoc.h>
11 
12 #include <atlbase.h>
13 #include <atlcom.h>
14 #include <atltypes.h>
15 #include <atlwin.h>
16 #include <wininet.h>
17 #include <shellutils.h>
18 #include <rosctrls.h>
19 #include <gdiplus.h>
20 #include <math.h>
21 
22 #define SEARCH_TIMER_ID 'SR'
23 #define TREEVIEW_ICON_SIZE 24
24 
25 
26 
28  public CUiWindow<CTreeView>
29 {
31 
32 public:
33  CSideTreeView();
34 
36 
37  HTREEITEM AddCategory(HTREEITEM hRootItem, UINT TextIndex, UINT IconIndex);
38 
40 
42 
44 };
45 
46 class CMainWindow :
47  public CWindowImpl<CMainWindow, CWindow, CFrameWinTraits>
48 {
51 
54 
56 
59 
61 
64 
65 public:
66  CMainWindow();
67 
68  ~CMainWindow();
69 private:
70 
72 
74 
76 
78 
80 
82 
84 
86 
88 
90 
92 
94 
96 
98 
100 
102 
104 
106 
108 
110 
112 
113  VOID UpdateApplicationsList(INT EnumType);
114 
115 public:
117 
118  HWND Create();
119 
120  // this function is called when a item of application-view is checked/unchecked
121  // CallbackParam is the param passed to application-view when adding the item (the one getting focus now).
122  BOOL ItemCheckStateChanged(BOOL bChecked, LPVOID CallbackParam);
123 
124  // this function is called when application-view is asked to install an application
125  // if Info is not zero, this app should be installed. otherwise those checked apps should be installed
127 
128  // this function is called when search text is changed
129  BOOL SearchTextChanged(ATL::CStringW &SearchText);
130 
131  void HandleTabOrder(int direction);
132 };
133 
134 
135 VOID MainWindowLoop(INT nShowCmd);
CUiSplitPanel * m_VSplitter
Definition: gui.h:50
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL RemoveSelectedAppFromRegistry()
Definition: gui.cpp:267
BOOL InitControls()
Definition: gui.cpp:229
ATL::CStringW szSearchPattern
Definition: gui.h:62
BOOL CreateStatusBar()
Definition: gui.cpp:140
BOOL bUpdating
Definition: gui.h:60
CInstalledApps m_InstalledApps
Definition: gui.h:58
BOOL CreateTreeView()
Definition: gui.cpp:150
#define CALLBACK
Definition: compat.h:35
VOID MainWindowLoop(INT nShowCmd)
Definition: gui.cpp:862
~CSideTreeView()
Definition: gui.cpp:85
HTREEITEM AddCategory(HTREEITEM hRootItem, UINT TextIndex, UINT IconIndex)
Definition: gui.cpp:52
static BOOL CALLBACK s_EnumSelectedAppForDownloadProc(CAvailableApplicationInfo *Info, BOOL bInitialCheckState, PVOID param)
Definition: gui.cpp:653
UINT_PTR WPARAM
Definition: windef.h:207
INT SelectedEnumType
Definition: gui.h:63
CSideTreeView()
Definition: gui.cpp:39
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
BOOL CALLBACK EnumInstalledAppProc(CInstalledApplicationInfo *Info)
Definition: gui.cpp:622
BOOL ProcessWindowMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT &theResult, DWORD dwMapId)
Definition: gui.cpp:311
BOOL IsSelectedNodeInstalled()
Definition: gui.cpp:500
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:683
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
HIMAGELIST hImageTreeView
Definition: gui.h:30
HTREEITEM AddItem(HTREEITEM hParent, ATL::CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam)
Definition: gui.cpp:47
static BOOL CALLBACK s_EnumAvailableAppProc(CAvailableApplicationInfo *Info, BOOL bInitialCheckState, PVOID param)
Definition: gui.cpp:647
LONG_PTR LPARAM
Definition: windef.h:208
BOOL CALLBACK EnumAvailableAppProc(CAvailableApplicationInfo *Info, BOOL bInitialCheckState)
Definition: gui.cpp:631
HIMAGELIST SetImageList()
Definition: gui.cpp:74
BOOL InstallApplication(CAvailableApplicationInfo *Info)
Definition: gui.cpp:781
void HandleTabOrder(int direction)
Definition: gui.cpp:828
BOOL CreateLayout()
Definition: gui.cpp:187
GLfloat param
Definition: glext.h:5796
VOID ShowAboutDlg()
Definition: gui.cpp:519
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR IconIndex[]
Definition: install.c:52
struct @1586 Msg[]
VOID LayoutCleanup()
Definition: gui.cpp:220
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:304
CApplicationView * m_ApplicationView
Definition: gui.h:55
VOID DestroyImageList()
Definition: gui.cpp:79
~CMainWindow()
Definition: gui.cpp:101
BOOL CreateApplicationView()
Definition: gui.cpp:160
HWND Create()
Definition: gui.cpp:732
const DOCKBAR PVOID HWND hParent
Definition: tooldock.h:22
VOID UpdateStatusBarText()
Definition: gui.cpp:660
BOOL UninstallSelectedApp(BOOL bModify)
Definition: gui.cpp:299
CAvailableApps m_AvailableApps
Definition: gui.h:57
VOID UpdateApplicationsList(INT EnumType)
Definition: gui.cpp:671
unsigned int UINT
Definition: ndis.h:50
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:372
#define NULL
Definition: types.h:112
CMainWindow()
Definition: gui.cpp:95
BOOL SearchTextChanged(ATL::CStringW &SearchText)
Definition: gui.cpp:812
static ATL::CWndClassInfo & GetWndClassInfo()
Definition: gui.cpp:708
VOID InitCategoriesList()
Definition: gui.cpp:106
static BOOL CALLBACK s_EnumInstalledAppProc(CInstalledApplicationInfo *Info, PVOID param)
Definition: gui.cpp:641
LONG_PTR LRESULT
Definition: windef.h:209
BOOL CreateVSplitter()
Definition: gui.cpp:170
CUiPanel * m_ClientPanel
Definition: gui.h:49
LPARAM lParam
Definition: combotst.c:139
char * Text
Definition: combotst.c:136
BOOL ItemCheckStateChanged(BOOL bChecked, LPVOID CallbackParam)
Definition: gui.cpp:751
CSideTreeView * m_TreeView
Definition: gui.h:52
CUiWindow< CStatusBar > * m_StatusBar
Definition: gui.h:53