ReactOS  0.4.15-dev-5640-g0dde428
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:4389
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 1061 of file loaddlg.cpp.

1062 {
1063  if (!pAppInfo)
1064  return FALSE;
1065 
1066  CDownloadManager::Download(*pAppInfo, FALSE);
1067  return TRUE;
1068 }
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:407
#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 1070 of file loaddlg.cpp.

1071 {
1072  static DownloadInfo DatabaseDLInfo;
1073  DatabaseDLInfo.szUrl = lpUrl;
1074  DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1075  DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1076  CDownloadManager::Download(DatabaseDLInfo, TRUE);
1077 }
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:218
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:407
#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 1044 of file loaddlg.cpp.

1045 {
1046  if (AppsList.GetSize() == 0)
1047  return FALSE;
1048 
1049  // Initialize shared variables
1050  for (INT i = 0; i < AppsList.GetSize(); ++i)
1051  {
1052  CDownloadManager::Add(AppsList[i]); // implicit conversion to DownloadInfo
1053  }
1054 
1055  // Create a dialog and issue a download process
1057 
1058  return TRUE;
1059 }
#define TRUE
Definition: types.h:120
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:1023
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:402

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:1707
struct @1616 Msg[]
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
#define VK_TAB
Definition: winuser.h:2189
BOOL Maximized
Definition: settings.h:13
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
#define VK_SHIFT
Definition: winuser.h:2192
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:1339
#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:1327
#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