ReactOS  0.4.15-dev-3712-gf1ad684
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 <ui/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 
35  HTREEITEM AddItem(HTREEITEM hParent, ATL::CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam);
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 
78 
80 
82 
84 
86 
88 
90 
92 
94 
96 
101 
103 
105 
106  VOID UpdateApplicationsList(INT EnumType);
107 
108 public:
110 
111  HWND Create();
112 
113  // this function is called when a item of application-view is checked/unchecked
114  // CallbackParam is the param passed to application-view when adding the item (the one getting focus now).
115  BOOL ItemCheckStateChanged(BOOL bChecked, LPVOID CallbackParam);
116 
117  // this function is called when application-view is asked to install an application
118  // if Info is not zero, this app should be installed. otherwise those checked apps should be installed
120 
121  // this function is called when search text is changed
122  BOOL SearchTextChanged(ATL::CStringW &SearchText);
123 
124  void HandleTabOrder(int direction);
125 };
126 
127 
128 VOID MainWindowLoop(INT nShowCmd);
CUiSplitPanel * m_VSplitter
Definition: gui.h:50
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
struct @1584 Msg[]
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:874
~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:657
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:626
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:651
LONG_PTR LPARAM
Definition: windef.h:208
BOOL CALLBACK EnumAvailableAppProc(CAvailableApplicationInfo *Info, BOOL bInitialCheckState)
Definition: gui.cpp:635
HIMAGELIST SetImageList()
Definition: gui.cpp:74
BOOL InstallApplication(CAvailableApplicationInfo *Info)
Definition: gui.cpp:793
void HandleTabOrder(int direction)
Definition: gui.cpp:840
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
VOID LayoutCleanup()
Definition: gui.cpp:220
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:351
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:744
VOID UpdateStatusBarText()
Definition: gui.cpp:664
BOOL UninstallSelectedApp(BOOL bModify)
Definition: gui.cpp:299
CAvailableApps m_AvailableApps
Definition: gui.h:57
VOID UpdateApplicationsList(INT EnumType)
Definition: gui.cpp:675
unsigned int UINT
Definition: ndis.h:50
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition: winproc.cpp:421
#define NULL
Definition: types.h:112
CMainWindow()
Definition: gui.cpp:95
BOOL SearchTextChanged(ATL::CStringW &SearchText)
Definition: gui.cpp:824
static ATL::CWndClassInfo & GetWndClassInfo()
Definition: gui.cpp:720
VOID InitCategoriesList()
Definition: gui.cpp:106
static BOOL CALLBACK s_EnumInstalledAppProc(CInstalledApplicationInfo *Info, PVOID param)
Definition: gui.cpp:645
LONG_PTR LRESULT
Definition: windef.h:209
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022
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:763
CSideTreeView * m_TreeView
Definition: gui.h:52
CUiWindow< CStatusBar > * m_StatusBar
Definition: gui.h:53