ReactOS  0.4.15-dev-1150-g593bcce
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 bIsModal)
 
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#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:4374
HINSTANCE hInst
Definition: dxdiag.c:13
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAvailableApplicationInfo pAppInfo,
BOOL  bIsModal 
)

Definition at line 1017 of file loaddlg.cpp.

1018 {
1019  if (!pAppInfo)
1020  return FALSE;
1021 
1022  CDownloadManager::Download(*pAppInfo, bIsModal);
1023  return TRUE;
1024 }
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:388
#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 1026 of file loaddlg.cpp.

1027 {
1028  static DownloadInfo DatabaseDLInfo;
1029  DatabaseDLInfo.szUrl = lpUrl;
1030  DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1031  DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1032  CDownloadManager::Download(DatabaseDLInfo, TRUE);
1033 }
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:217
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:388
#define TRUE
Definition: types.h:120
DownloadType DLType
Definition: loaddlg.cpp:94
ATL::CStringW szUrl
Definition: loaddlg.cpp:95
ATL::CStringW szName
Definition: loaddlg.cpp:96

Referenced by CAvailableApps::UpdateAppsDB().

◆ DownloadListOfApplications()

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

Definition at line 1000 of file loaddlg.cpp.

1001 {
1002  if (AppsList.GetSize() == 0)
1003  return FALSE;
1004 
1005  // Initialize shared variables
1006  for (INT i = 0; i < AppsList.GetSize(); ++i)
1007  {
1008  CDownloadManager::Add(AppsList[i]); // implicit conversion to DownloadInfo
1009  }
1010 
1011  // Create a dialog and issue a download process
1013 
1014  return TRUE;
1015 }
#define TRUE
Definition: types.h:120
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:979
int GetSize() const
Definition: atlsimpcoll.h:104
int32_t INT
Definition: typedefs.h:58
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
#define FALSE
Definition: types.h:117
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:383

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

◆ MainWindowLoop()

VOID MainWindowLoop ( INT  nShowCmd)

Definition at line 862 of file gui.cpp.

863 {
864  HACCEL KeyBrd;
865  MSG Msg;
866 
867  CMainWindow* wnd = new CMainWindow();
868  if (!wnd)
869  return;
870 
871  hMainWnd = wnd->Create();
872  if (!hMainWnd)
873  return;
874 
875  /* Maximize it if we must */
877  wnd->UpdateWindow();
878 
879  /* Load the menu hotkeys */
881 
882  /* Message Loop */
883  while (GetMessageW(&Msg, NULL, 0, 0))
884  {
885  if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
886  {
887  if (Msg.message == WM_CHAR &&
888  Msg.wParam == VK_TAB)
889  {
890  // Move backwards if shift is held down
891  int direction = (GetKeyState(VK_SHIFT) & 0x8000) ? -1 : 1;
892 
893  wnd->HandleTabOrder(direction);
894  continue;
895  }
896 
899  }
900  }
901 
902  delete wnd;
903 }
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define WM_CHAR
Definition: winuser.h:1699
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
struct @1610 Msg[]
#define VK_TAB
Definition: winuser.h:2174
BOOL Maximized
Definition: settings.h:13
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
#define VK_SHIFT
Definition: winuser.h:2177
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
smooth NULL
Definition: ftsmooth.c:416
SHORT WINAPI GetKeyState(_In_ int)
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:25
void HandleTabOrder(int direction)
Definition: gui.cpp:828
BOOL UpdateWindow()
Definition: atlwin.h:1277
#define HOTKEYS
Definition: resource.h:232
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
HWND hMainWnd
Definition: magnifier.c:32
HWND Create()
Definition: gui.cpp:732
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1265
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