mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[RAPPS] License header unification and minor style changes
- Unified & reformatted license headers according to https://www.reactos.org/wiki/Coding_Style - Minor style changes svn path=/branches/GSoC_2017/rapps/; revision=75815
This commit is contained in:
parent
9cf1050fce
commit
b49140dc40
15 changed files with 94 additions and 94 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/aboutdlg.cpp
|
* FILE: base/applications/rapps/aboutdlg.cpp
|
||||||
* PURPOSE: About Dialog
|
* PURPOSE: About Dialog
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Alexander Shaposhikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/available.cpp
|
* FILE: base/applications/rapps/available.cpp
|
||||||
* PURPOSE: Classes for working with available applications
|
* PURPOSE: Classes for working with available applications
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
* Copyright 2015 Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
||||||
* Alexander Shaposhnikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
/* PROJECT: ReactOS CE Applications Manager
|
/*
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* PROJECT: ReactOS Applications Manager
|
||||||
* AUTHORS: David Quintana <gigaherz@gmail.com>
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* Alexander Shaposhnikov <chaez.san@gmail.com>
|
* FILE: base/applications/rapps/gui.cpp
|
||||||
|
* PURPOSE: GUI classes for RAPPS
|
||||||
|
* COPYRIGHT: Copyright 2015 David Quintana (gigaherz@gmail.com)
|
||||||
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
@ -633,18 +636,18 @@ public:
|
||||||
class CMainWindow :
|
class CMainWindow :
|
||||||
public CWindowImpl<CMainWindow, CWindow, CFrameWinTraits>
|
public CWindowImpl<CMainWindow, CWindow, CFrameWinTraits>
|
||||||
{
|
{
|
||||||
CUiPanel * m_ClientPanel;
|
CUiPanel* m_ClientPanel;
|
||||||
CUiSplitPanel * m_VSplitter;
|
CUiSplitPanel* m_VSplitter;
|
||||||
CUiSplitPanel * m_HSplitter;
|
CUiSplitPanel* m_HSplitter;
|
||||||
|
|
||||||
CMainToolbar * m_Toolbar;
|
CMainToolbar* m_Toolbar;
|
||||||
CAppsListView * m_ListView;
|
CAppsListView* m_ListView;
|
||||||
|
|
||||||
CSideTreeView * m_TreeView;
|
CSideTreeView* m_TreeView;
|
||||||
CUiWindow<CStatusBar> * m_StatusBar;
|
CUiWindow<CStatusBar>* m_StatusBar;
|
||||||
CUiWindow<CRichEdit> * m_RichEdit;
|
CUiWindow<CRichEdit>* m_RichEdit;
|
||||||
|
|
||||||
CUiWindow<CSearchBar> * m_SearchBar;
|
CUiWindow<CSearchBar>* m_SearchBar;
|
||||||
CAvailableApps m_AvailableApps;
|
CAvailableApps m_AvailableApps;
|
||||||
|
|
||||||
LPWSTR pLink;
|
LPWSTR pLink;
|
||||||
|
@ -1636,8 +1639,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// File interface
|
// global interface
|
||||||
|
|
||||||
CMainWindow * g_MainWindow;
|
CMainWindow * g_MainWindow;
|
||||||
|
|
||||||
HWND CreateMainWindow()
|
HWND CreateMainWindow()
|
||||||
|
@ -1675,7 +1677,12 @@ VOID InsertRichEditText(LPCWSTR szText, DWORD flags)
|
||||||
g_MainWindow->GetRichEdit()->InsertText(szText, flags);
|
g_MainWindow->GetRichEdit()->InsertText(szText, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ATL version of functions */
|
CAvailableApps* GetAvailableApps()
|
||||||
|
{
|
||||||
|
return g_MainWindow->GetAvailableApps();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ATL version of functions above
|
||||||
VOID SetStatusBarText(const ATL::CStringW& szText)
|
VOID SetStatusBarText(const ATL::CStringW& szText)
|
||||||
{
|
{
|
||||||
SetStatusBarText(szText.GetString());
|
SetStatusBarText(szText.GetString());
|
||||||
|
@ -1695,8 +1702,3 @@ VOID InsertRichEditText(const ATL::CStringW& szText, DWORD flags)
|
||||||
{
|
{
|
||||||
InsertRichEditText(szText.GetString(), flags);
|
InsertRichEditText(szText.GetString(), flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
CAvailableApps* GetAvailableApps()
|
|
||||||
{
|
|
||||||
return g_MainWindow->GetAvailableApps();
|
|
||||||
}
|
|
||||||
|
|
|
@ -80,13 +80,14 @@ typedef BOOL(CALLBACK *AVAILENUMPROC)(CAvailableApplicationInfo *Info, LPCWSTR s
|
||||||
|
|
||||||
class CAvailableApps
|
class CAvailableApps
|
||||||
{
|
{
|
||||||
ATL::CAtlList<CAvailableApplicationInfo*> m_InfoList;
|
|
||||||
static ATL::CStringW m_szPath;
|
static ATL::CStringW m_szPath;
|
||||||
static ATL::CStringW m_szCabPath;
|
static ATL::CStringW m_szCabPath;
|
||||||
static ATL::CStringW m_szAppsPath;
|
static ATL::CStringW m_szAppsPath;
|
||||||
static ATL::CStringW m_szSearchPath;
|
static ATL::CStringW m_szSearchPath;
|
||||||
|
|
||||||
static BOOL InitializeStaticStrings();
|
static BOOL InitializeStaticStrings();
|
||||||
|
|
||||||
|
ATL::CAtlList<CAvailableApplicationInfo*> m_InfoList;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CAvailableApps();
|
CAvailableApps();
|
||||||
|
|
|
@ -16,6 +16,7 @@ class CDownloadManager
|
||||||
static INT iCurrentApp;
|
static INT iCurrentApp;
|
||||||
|
|
||||||
static VOID Download(const DownloadInfo& DLInfo, BOOL bIsModal = FALSE);
|
static VOID Download(const DownloadInfo& DLInfo, BOOL bIsModal = FALSE);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static INT_PTR CALLBACK DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
static INT_PTR CALLBACK DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
static LRESULT CALLBACK DownloadProgressProc(HWND hWnd,
|
static LRESULT CALLBACK DownloadProgressProc(HWND hWnd,
|
||||||
|
|
|
@ -9,6 +9,7 @@ struct INSTALLED_INFO
|
||||||
HKEY hSubKey;
|
HKEY hSubKey;
|
||||||
ATL::CStringW szKeyName;
|
ATL::CStringW szKeyName;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef INSTALLED_INFO *PINSTALLED_INFO;
|
typedef INSTALLED_INFO *PINSTALLED_INFO;
|
||||||
typedef BOOL(CALLBACK *APPENUMPROC)(INT ItemIndex, ATL::CStringW &Name, PINSTALLED_INFO Info);
|
typedef BOOL(CALLBACK *APPENUMPROC)(INT ItemIndex, ATL::CStringW &Name, PINSTALLED_INFO Info);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
/* PROJECT: ReactOS UI Layout Engine
|
/*
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* PROJECT: ReactOS UI Layout Engine
|
||||||
* AUTHORS: David Quintana <gigaherz@gmail.com>
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
|
* FILE: base/applications/rapps/include/rosui.h
|
||||||
|
* PURPOSE: ATL Layout engine for RAPPS
|
||||||
|
* COPYRIGHT: Copyright 2015 David Quintana (gigaherz@gmail.com)
|
||||||
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
//TODO: Separate main and settings related definitions
|
|
||||||
|
|
||||||
|
//TODO: Separate main and settings related definitions
|
||||||
struct SETTINGS_INFO
|
struct SETTINGS_INFO
|
||||||
{
|
{
|
||||||
BOOL bSaveWndPos;
|
BOOL bSaveWndPos;
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/installed.cpp
|
* FILE: base/applications/rapps/installed.cpp
|
||||||
* PURPOSE: Functions for working with installed applications
|
* PURPOSE: Functions for working with installed applications
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Alexander Shaposhnikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
#include "installed.h"
|
#include "installed.h"
|
||||||
|
@ -14,16 +13,14 @@
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
BOOL
|
BOOL GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, ATL::CStringW& String)
|
||||||
GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, ATL::CStringW& String)
|
|
||||||
{
|
{
|
||||||
BOOL result = GetApplicationString(hKey, lpKeyName, String.GetBuffer(MAX_PATH));
|
BOOL result = GetApplicationString(hKey, lpKeyName, String.GetBuffer(MAX_PATH));
|
||||||
String.ReleaseBuffer();
|
String.ReleaseBuffer();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString)
|
||||||
GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString)
|
|
||||||
{
|
{
|
||||||
DWORD dwSize = MAX_PATH * sizeof(WCHAR);
|
DWORD dwSize = MAX_PATH * sizeof(WCHAR);
|
||||||
|
|
||||||
|
@ -41,8 +38,7 @@ GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL UninstallApplication(INT Index, BOOL bModify)
|
||||||
UninstallApplication(INT Index, BOOL bModify)
|
|
||||||
{
|
{
|
||||||
LPCWSTR szModify = L"ModifyPath";
|
LPCWSTR szModify = L"ModifyPath";
|
||||||
LPCWSTR szUninstall = L"UninstallString";
|
LPCWSTR szUninstall = L"UninstallString";
|
||||||
|
@ -96,8 +92,7 @@ UninstallApplication(INT Index, BOOL bModify)
|
||||||
return StartProcess(szPath, TRUE);
|
return StartProcess(szPath, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL ShowInstalledAppInfo(INT Index)
|
||||||
ShowInstalledAppInfo(INT Index)
|
|
||||||
{
|
{
|
||||||
ATL::CStringW szText;
|
ATL::CStringW szText;
|
||||||
ATL::CStringW szInfo;
|
ATL::CStringW szInfo;
|
||||||
|
@ -138,8 +133,7 @@ ShowInstalledAppInfo(INT Index)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID RemoveAppFromRegistry(INT Index)
|
||||||
RemoveAppFromRegistry(INT Index)
|
|
||||||
{
|
{
|
||||||
PINSTALLED_INFO Info;
|
PINSTALLED_INFO Info;
|
||||||
WCHAR szFullName[MAX_PATH] = L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\";
|
WCHAR szFullName[MAX_PATH] = L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\";
|
||||||
|
@ -176,8 +170,7 @@ RemoveAppFromRegistry(INT Index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc)
|
||||||
EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc)
|
|
||||||
{
|
{
|
||||||
DWORD dwSize = MAX_PATH, dwType, dwValue;
|
DWORD dwSize = MAX_PATH, dwType, dwValue;
|
||||||
BOOL bIsSystemComponent, bIsUpdate;
|
BOOL bIsSystemComponent, bIsUpdate;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/integrity.cpp
|
* FILE: base/applications/rapps/integrity.cpp
|
||||||
* PURPOSE: Various integrity check mechanisms
|
* PURPOSE: Various integrity check mechanisms
|
||||||
* PROGRAMMERS: Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
* COPYRIGHT: Copyright Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
||||||
* Mark Jansen
|
* Copyright Mark Jansen
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* PROJECT: ReactOS Applications Manager
|
/*
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* PROJECT: ReactOS Applications Manager
|
||||||
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/loaddlg.cpp
|
* FILE: base/applications/rapps/loaddlg.cpp
|
||||||
* PURPOSE: Displaying a download dialog
|
* PURPOSE: Displaying a download dialog
|
||||||
* COPYRIGHT: Copyright 2001 John R. Sheets (for CodeWeavers)
|
* COPYRIGHT: Copyright 2001 John R. Sheets (for CodeWeavers)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/misc.cpp
|
* FILE: base/applications/rapps/misc.cpp
|
||||||
* PURPOSE: Misc functions
|
* PURPOSE: Misc functions
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
* Copyright 2015 Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
||||||
* Alexander Shaposhnikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/settingsdlg.cpp
|
* FILE: base/applications/rapps/settingsdlg.cpp
|
||||||
* PURPOSE: Settings Dialog
|
* PURPOSE: Settings Dialog
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Alexander Shaposhnikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/unattended.cpp
|
* FILE: base/applications/rapps/unattended.cpp
|
||||||
* PURPOSE: Functions to parse command-line flags and process them
|
* PURPOSE: Functions to parse command-line flags and process them
|
||||||
* PROGRAMMERS: Alexander Shaposhnikov (chaez.san@gmail.com)
|
* COPYRIGHT: Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "unattended.h"
|
#include "unattended.h"
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "available.h"
|
#include "available.h"
|
||||||
|
@ -25,9 +24,7 @@ BOOL UseCmdParameters(LPWSTR lpCmdLine)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup key - single app expected
|
|
||||||
// TODO: use DB filenames as names because they're shorter
|
// TODO: use DB filenames as names because they're shorter
|
||||||
|
|
||||||
ATL::CSimpleArray<ATL::CStringW> arrNames;
|
ATL::CSimpleArray<ATL::CStringW> arrNames;
|
||||||
if (!StrCmpW(argv[0], CMD_KEY_INSTALL))
|
if (!StrCmpW(argv[0], CMD_KEY_INSTALL))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* PROJECT: ReactOS Applications Manager
|
* PROJECT: ReactOS Applications Manager
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||||
* FILE: base/applications/rapps/winmain.cpp
|
* FILE: base/applications/rapps/winmain.cpp
|
||||||
* PURPOSE: Main program
|
* PURPOSE: Main program
|
||||||
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
* COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
|
||||||
* Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
* Copyright 2015 Ismael Ferreras Morezuelas (swyterzone+ros@gmail.com)
|
||||||
* Alexander Shaposhnikov (chaez.san@gmail.com)
|
* Copyright 2017 Alexander Shaposhnikov (chaez.san@gmail.com)
|
||||||
*/
|
*/
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "rapps.h"
|
#include "rapps.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue