ReactOS 0.4.16-dev-319-g6cf4263
appview.h File Reference
#include "rapps.h"
#include "rosui.h"
#include "crichedit.h"
#include "asyncinet.h"
#include <shlobj_undoc.h>
#include <shlguid_undoc.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atltypes.h>
#include <atlwin.h>
#include <wininet.h>
#include <shellutils.h>
#include <ui/rosctrls.h>
#include <gdiplus.h>
#include <math.h>
Include dependency graph for appview.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __ScrnshotDownloadParam
 
class  CAppRichEdit
 
class  CAppScrnshotPreview
 
class  CAppInfoDisplay
 
class  CAppsListView
 
struct  CAppsListView::SortContext
 
class  CMainToolbar
 
class  CSearchBar
 
class  CComboBox
 
class  CApplicationView
 
struct  CApplicationView::RESTORELISTSELECTION
 

Macros

#define BROKENIMG_ICON_SIZE   96
 
#define SCRNSHOT_MAX_ASPECT_RAT   2.5
 
#define INFO_DISPLAY_PADDING   10
 
#define RICHEDIT_MIN_WIDTH   160
 
#define TOOLBAR_PADDING   6
 
#define WM_RAPPS_DOWNLOAD_COMPLETE    (WM_USER + 1)
 
#define WM_RAPPS_RESIZE_CHILDREN   (WM_USER + 2)
 
#define WM_RAPPSLIST_ASYNCICON   (WM_APP + 0)
 
#define TIMER_LOADING_ANIMATION   1
 
#define LOADING_ANIMATION_PERIOD   3
 
#define LOADING_ANIMATION_FPS   18
 
#define PI   3.1415927
 
#define STATEIMAGETOINDEX(x)   (((x)&LVIS_STATEIMAGEMASK) >> 12)
 
#define STATEIMAGE_UNCHECKED   1
 
#define STATEIMAGE_CHECKED   2
 

Typedefs

typedef struct __ScrnshotDownloadParam ScrnshotDownloadParam
 

Enumerations

enum  SCRNSHOT_STATUS { SCRNSHOT_PREV_EMPTY , SCRNSHOT_PREV_LOADING , SCRNSHOT_PREV_IMAGE , SCRNSHOT_PREV_FAILED }
 
enum  APPLICATION_VIEW_TYPE { AppViewTypeAvailableApps , AppViewTypeInstalledApps }
 

Functions

int ScrnshotDownloadCallback (pASYNCINET AsyncInet, ASYNC_EVENT Event, WPARAM wParam, LPARAM lParam, VOID *Extension)
 

Variables

HICON g_hDefaultPackageIcon
 

Macro Definition Documentation

◆ BROKENIMG_ICON_SIZE

#define BROKENIMG_ICON_SIZE   96

Definition at line 24 of file appview.h.

◆ INFO_DISPLAY_PADDING

#define INFO_DISPLAY_PADDING   10

Definition at line 30 of file appview.h.

◆ LOADING_ANIMATION_FPS

#define LOADING_ANIMATION_FPS   18

Definition at line 55 of file appview.h.

◆ LOADING_ANIMATION_PERIOD

#define LOADING_ANIMATION_PERIOD   3

Definition at line 54 of file appview.h.

◆ PI

#define PI   3.1415927

Definition at line 57 of file appview.h.

◆ RICHEDIT_MIN_WIDTH

#define RICHEDIT_MIN_WIDTH   160

Definition at line 33 of file appview.h.

◆ SCRNSHOT_MAX_ASPECT_RAT

#define SCRNSHOT_MAX_ASPECT_RAT   2.5

Definition at line 27 of file appview.h.

◆ STATEIMAGE_CHECKED

#define STATEIMAGE_CHECKED   2

Definition at line 65 of file appview.h.

◆ STATEIMAGE_UNCHECKED

#define STATEIMAGE_UNCHECKED   1

Definition at line 64 of file appview.h.

◆ STATEIMAGETOINDEX

#define STATEIMAGETOINDEX (   x)    (((x)&LVIS_STATEIMAGEMASK) >> 12)

Definition at line 60 of file appview.h.

◆ TIMER_LOADING_ANIMATION

#define TIMER_LOADING_ANIMATION   1

Definition at line 52 of file appview.h.

◆ TOOLBAR_PADDING

#define TOOLBAR_PADDING   6

Definition at line 36 of file appview.h.

◆ WM_RAPPS_DOWNLOAD_COMPLETE

#define WM_RAPPS_DOWNLOAD_COMPLETE    (WM_USER + 1)

Definition at line 39 of file appview.h.

◆ WM_RAPPS_RESIZE_CHILDREN

#define WM_RAPPS_RESIZE_CHILDREN   (WM_USER + 2)

Definition at line 41 of file appview.h.

◆ WM_RAPPSLIST_ASYNCICON

#define WM_RAPPSLIST_ASYNCICON   (WM_APP + 0)

Definition at line 42 of file appview.h.

Typedef Documentation

◆ ScrnshotDownloadParam

Enumeration Type Documentation

◆ APPLICATION_VIEW_TYPE

Enumerator
AppViewTypeAvailableApps 
AppViewTypeInstalledApps 

Definition at line 69 of file appview.h.

70{
73};
@ AppViewTypeInstalledApps
Definition: appview.h:72
@ AppViewTypeAvailableApps
Definition: appview.h:71

◆ SCRNSHOT_STATUS

Enumerator
SCRNSHOT_PREV_EMPTY 
SCRNSHOT_PREV_LOADING 
SCRNSHOT_PREV_IMAGE 
SCRNSHOT_PREV_FAILED 

Definition at line 44 of file appview.h.

45{
46 SCRNSHOT_PREV_EMPTY, // show nothing
47 SCRNSHOT_PREV_LOADING, // image is loading (most likely downloading)
48 SCRNSHOT_PREV_IMAGE, // display image from a file
49 SCRNSHOT_PREV_FAILED // image can not be shown (download failure or wrong image)
50};
@ SCRNSHOT_PREV_LOADING
Definition: appview.h:47
@ SCRNSHOT_PREV_FAILED
Definition: appview.h:49
@ SCRNSHOT_PREV_EMPTY
Definition: appview.h:46
@ SCRNSHOT_PREV_IMAGE
Definition: appview.h:48

Function Documentation

◆ ScrnshotDownloadCallback()

int ScrnshotDownloadCallback ( pASYNCINET  AsyncInet,
ASYNC_EVENT  Event,
WPARAM  wParam,
LPARAM  lParam,
VOID Extension 
)

Definition at line 319 of file appview.cpp.

320{
322 switch (Event)
323 {
324 case ASYNCINET_DATA:
327 break;
332 break;
337 break;
338 case ASYNCINET_ERROR:
341 break;
342 default:
344 break;
345 }
346 return 0;
347}
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
#define WM_RAPPS_DOWNLOAD_COMPLETE
Definition: appview.h:39
@ ASYNCINET_ERROR
Definition: asyncinet.h:15
@ ASYNCINET_COMPLETE
Definition: asyncinet.h:9
@ ASYNCINET_CANCELLED
Definition: asyncinet.h:12
@ ASYNCINET_DATA
Definition: asyncinet.h:7
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
unsigned long DWORD
Definition: ntddk_ex.h:95
_Inout_opt_ PUNICODE_STRING Extension
Definition: fltkernel.h:1092
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten
Definition: wdfiotarget.h:960
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
CONST void * LPCVOID
Definition: windef.h:191
#define ERROR_CANCELLED
Definition: winerror.h:726
#define SendMessage
Definition: winuser.h:5855

Referenced by CAppScrnshotPreview::DisplayImage().

Variable Documentation

◆ g_hDefaultPackageIcon

HICON g_hDefaultPackageIcon
extern