ReactOS  0.4.15-dev-3698-gce6da82
dialogs.h File Reference
#include "available.h"
#include <windef.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 (INT nShowCmd)
 
VOID DownloadApplicationsDB (LPCWSTR lpUrl, BOOL IsOfficial)
 
BOOL DownloadApplication (CAvailableApplicationInfo *pAppInfo)
 
BOOL DownloadListOfApplications (const ATL::CSimpleArray< CAvailableApplicationInfo > &AppsList, BOOL bIsModal)
 

Function Documentation

◆ CreateSettingsDlg()

VOID CreateSettingsDlg ( HWND  hwnd)

Definition at line 281 of file settingsdlg.cpp.

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

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAvailableApplicationInfo pAppInfo)

Definition at line 1039 of file loaddlg.cpp.

1040 {
1041  if (!pAppInfo)
1042  return FALSE;
1043 
1044  CDownloadManager::Download(*pAppInfo, FALSE);
1045  return TRUE;
1046 }
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:389
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117

Referenced by CMainWindow::InstallApplication(), and CMainWindow::OnCommand().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1048 of file loaddlg.cpp.

1049 {
1050  static DownloadInfo DatabaseDLInfo;
1051  DatabaseDLInfo.szUrl = lpUrl;
1052  DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1053  DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1054  CDownloadManager::Download(DatabaseDLInfo, TRUE);
1055 }
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:218
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:389
#define TRUE
Definition: types.h:120
DownloadType DLType
Definition: loaddlg.cpp:95
ATL::CStringW szUrl
Definition: loaddlg.cpp:96
ATL::CStringW szName
Definition: loaddlg.cpp:97

Referenced by CAvailableApps::UpdateAppsDB().

◆ DownloadListOfApplications()

BOOL DownloadListOfApplications ( const ATL::CSimpleArray< CAvailableApplicationInfo > &  AppsList,
BOOL  bIsModal 
)

Definition at line 1022 of file loaddlg.cpp.

1023 {
1024  if (AppsList.GetSize() == 0)
1025  return FALSE;
1026 
1027  // Initialize shared variables
1028  for (INT i = 0; i < AppsList.GetSize(); ++i)
1029  {
1030  CDownloadManager::Add(AppsList[i]); // implicit conversion to DownloadInfo
1031  }
1032 
1033  // Create a dialog and issue a download process
1035 
1036  return TRUE;
1037 }
#define TRUE
Definition: types.h:120
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:1001
int GetSize() const
Definition: atlsimpcoll.h:104
int32_t INT
Definition: typedefs.h:58
#define FALSE
Definition: types.h:117
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:384

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

◆ MainWindowLoop()

VOID MainWindowLoop ( INT  nShowCmd)

Definition at line 874 of file gui.cpp.

875 {
876  HACCEL KeyBrd;
877  MSG Msg;
878 
879  CMainWindow* wnd = new CMainWindow();
880  if (!wnd)
881  return;
882 
883  hMainWnd = wnd->Create();
884  if (!hMainWnd)
885  return;
886 
887  /* Maximize it if we must */
889  wnd->UpdateWindow();
890 
891  /* Load the menu hotkeys */
893 
894  /* Message Loop */
895  while (GetMessageW(&Msg, NULL, 0, 0))
896  {
897  if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
898  {
899  if (Msg.message == WM_CHAR &&
900  Msg.wParam == VK_TAB)
901  {
902  // Move backwards if shift is held down
903  int direction = (GetKeyState(VK_SHIFT) & 0x8000) ? -1 : 1;
904 
905  wnd->HandleTabOrder(direction);
906  continue;
907  }
908 
911  }
912  }
913 
914  delete wnd;
915 }
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define WM_CHAR
Definition: winuser.h:1704
struct @1584 Msg[]
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
#define VK_TAB
Definition: winuser.h:2179
BOOL Maximized
Definition: settings.h:13
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
#define VK_SHIFT
Definition: winuser.h:2182
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
SHORT WINAPI GetKeyState(_In_ int)
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:20
void HandleTabOrder(int direction)
Definition: gui.cpp:840
BOOL UpdateWindow()
Definition: atlwin.h:1311
#define HOTKEYS
Definition: resource.h:233
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
HWND hMainWnd
Definition: magnifier.c:32
HWND Create()
Definition: gui.cpp:744
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1299
#define NULL
Definition: types.h:112
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
BOOL bSaveWndPos
Definition: settings.h:7
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define SW_MAXIMIZE
Definition: winuser.h:766