ReactOS 0.4.15-dev-6042-g2eb6700
dialogs.h File Reference
#include "appinfo.h"
#include <atlsimpcoll.h>
Include dependency graph for dialogs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID CreateSettingsDlg (HWND hwnd)
 
VOID MainWindowLoop (class CAppDB *db, INT nShowCmd)
 
VOID DownloadApplicationsDB (LPCWSTR lpUrl, BOOL IsOfficial)
 
BOOL DownloadApplication (CAppInfo *pAppInfo)
 
BOOL DownloadListOfApplications (const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
 

Function Documentation

◆ CreateSettingsDlg()

VOID CreateSettingsDlg ( HWND  hwnd)

Definition at line 279 of file settingsdlg.cpp.

280{
282}
#define IDD_SETTINGS_DIALOG
Definition: resource.h:63
HINSTANCE hInst
Definition: dxdiag.c:13
INT_PTR CALLBACK SettingsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4389
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAppInfo pAppInfo)

Definition at line 1079 of file loaddlg.cpp.

1080{
1081 if (!pAppInfo)
1082 return FALSE;
1083
1085 return TRUE;
1086}
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:424
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117

Referenced by CMainWindow::InstallApplication().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1089 of file loaddlg.cpp.

1090{
1091 static DownloadInfo DatabaseDLInfo;
1092 DatabaseDLInfo.szUrl = lpUrl;
1093 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1094 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1095 CDownloadManager::Download(DatabaseDLInfo, TRUE);
1096}
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:217
@ DLTYPE_DBUPDATE_UNOFFICIAL
Definition: loaddlg.cpp:62
@ DLTYPE_DBUPDATE
Definition: loaddlg.cpp:61
CStringW szName
Definition: loaddlg.cpp:96
DownloadType DLType
Definition: loaddlg.cpp:94
CStringW szUrl
Definition: loaddlg.cpp:95

Referenced by CAppDB::UpdateAvailable().

◆ DownloadListOfApplications()

BOOL DownloadListOfApplications ( const CAtlList< CAppInfo * > &  AppsList,
BOOL  bIsModal 
)

Definition at line 1060 of file loaddlg.cpp.

1061{
1062 if (AppsList.IsEmpty())
1063 return FALSE;
1064
1065 POSITION CurrentListPosition = AppsList.GetHeadPosition();
1066 while (CurrentListPosition)
1067 {
1068 const CAppInfo *Info = AppsList.GetNext(CurrentListPosition);
1070 }
1071
1072 // Create a dialog and issue a download process
1074
1075 return TRUE;
1076}
bool IsEmpty() const
Definition: atlcoll.h:545
POSITION GetHeadPosition() const
Definition: atlcoll.h:551
E & GetNext(_Inout_ POSITION &pos)
Definition: atlcoll.h:563
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:418
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:1045
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690

Referenced by HandleInstallCommand(), HandleSetupCommand(), and CMainWindow::OnCommand().

◆ MainWindowLoop()

VOID MainWindowLoop ( class CAppDB db,
INT  nShowCmd 
)

Definition at line 784 of file gui.cpp.

785{
786 HACCEL KeyBrd;
787 MSG Msg;
788
789 CMainWindow *wnd = new CMainWindow(db);
790 if (!wnd)
791 return;
792
793 hMainWnd = wnd->Create();
794 if (!hMainWnd)
795 return;
796
797 /* Maximize it if we must */
799 wnd->UpdateWindow();
800
801 /* Load the menu hotkeys */
803
804 /* Message Loop */
805 while (GetMessageW(&Msg, NULL, 0, 0))
806 {
807 if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
808 {
809 if (Msg.message == WM_CHAR && Msg.wParam == VK_TAB)
810 {
811 // Move backwards if shift is held down
812 int direction = (GetKeyState(VK_SHIFT) & 0x8000) ? -1 : 1;
813
814 wnd->HandleTabOrder(direction);
815 continue;
816 }
817
820 }
821 }
822
823 delete wnd;
824}
#define HOTKEYS
Definition: resource.h:232
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:20
BOOL UpdateWindow()
Definition: atlwin.h:1339
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1327
void HandleTabOrder(int direction)
Definition: gui.cpp:751
HWND Create()
Definition: gui.cpp:672
struct @1609 Msg[]
#define NULL
Definition: types.h:112
HWND hMainWnd
Definition: magnifier.c:32
BOOL Maximized
Definition: settings.h:13
BOOL bSaveWndPos
Definition: settings.h:7
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
#define VK_TAB
Definition: winuser.h:2189
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
#define WM_CHAR
Definition: winuser.h:1707
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
#define VK_SHIFT
Definition: winuser.h:2192
#define SW_MAXIMIZE
Definition: winuser.h:766
SHORT WINAPI GetKeyState(_In_ int)

Referenced by ParseCmdAndExecute().