Commit graph

197 commits

Author SHA1 Message Date
Mark Jansen 964c22c1ca
[RAPPS][RAPPS.COM] Introduce a rapps console shim
rapps.com will be launched when running 'rapps' from cmd or
from run, and since it is a console application, explorer/ cmd will
wait for it.
This rapps.com passes the commandline to rapps.exe,
and wait for rapps.exe to exit before closing.

CORE-17281
2020-10-25 15:44:33 +01:00
Jérôme Gardou 907025a018 [CMAKE] Introduce the atl_classes interface library
This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
2020-10-20 21:44:54 +02:00
Jérôme Gardou d6ea8659c8 [CMAKE] Get rid of the set_cpp macro
Instead of messing with global variables and the like, we introduce two target properties:
 - WITH_CXX_EXCEPTIONS: if you want to use C++ exceptions
 - WITH_CXX_RTTI: if you need RTTI in your module
You can use the newly introduced set_target_cpp_properties function, with WITH_EXCEPTIONS and WITH_RTTI arguments
We also introduce two libraries :
 - cpprt: for C++ runtime routines
 - cppstl: for the C++ standard template library

NB: On GCC, this requires to create imported libraries with the related built-in libraries:libsupc++, limingwex, libstdc++

Finally, we manage the relevant flags with the ad-hoc generator expressions

So, if you don't need exceptions, nor RTTI, nor use any runtime at all: you simply have nothing else to do than add your C++ file to your module
2020-10-20 21:44:54 +02:00
Omer I.S c758d15d0a
[RAPPS] Update Hebrew (he-IL) translation (#3297) 2020-10-15 17:12:50 +03:00
Mark Jansen 7a2c1f7d0b
[RAPPS] Re-add support for icons named after the ini file 2020-10-11 17:01:06 +02:00
Mark Jansen 12caaece25
[RAPPS] Fix certificate pinning error displaying garbage 2020-10-11 17:01:06 +02:00
Mark Jansen 12489f691b
[RAPPS] Bump the rapps user agent version 2020-10-11 17:01:06 +02:00
Mark Jansen d564b4afc3
[RAPPS] Update rapps DB location to the new database 2020-10-11 17:01:06 +02:00
Mark Jansen 26da451ba5
[RAPPS] Delete icons and temp screenshot when cleaning up the db 2020-10-11 17:01:05 +02:00
Mark Jansen a3a12271e1
[RAPPS] Add directory extraction capabilities for the .cab file 2020-10-11 17:01:05 +02:00
Mark Jansen 4f25a47677
[RAPPS] Add support for a rapps db with the file:/// scheme
This makes it easier to test locally
2020-10-11 17:01:05 +02:00
Adam Słaboń 50ff453434
[TRANSLATION] Polish translation update (#3233) 2020-09-26 21:42:36 +03:00
Mark Jansen 3da04a9b68
[RAPPS] Remove string casts after the conutils fix 2020-09-25 22:03:28 +02:00
Oleg Dubinskiy b62948ef77 [RAPPS] Use RegDeleteKeyExW for deleting the apps strings from registry only if it is available in advapi32
Otherwise, use `RegDeleteKeyW` instead, on Windows versions whose don't have the Ex function (XP SP3 x32, Server 2003 SP0 and earlier).
It will fix regression with Rapps startup there, due to that missing function.
CORE-17264
2020-09-20 19:23:06 +02:00
Oleg Dubinskiy 7eb90143f8
[RAPPS] Display custom applications icons for installed applications CORE-17257 (#3144)
* [RAPPS] Display custom applications icons for installed applications
- Implement `RetrieveIcon` helper function in `CInstalledApplicationInfo` class, which retrueves the current app's icon from registry, same as it done for `CAvailableApplicationInfo`.
- Use it for loading the icon in `CAppsListView::AddInstalledApplication` function, via `ExtractIconW`. Load default Rapps icon only when the app has no its custom icon.
- Retrieve `DisplayIcon` value from registry in `CInstalledApps::Enum` function, same as other registry values (like app name, description, etc).Store it in `szDisplayIcon` string, which is used in `CInstalledApplicationInfo::RetrieveIcon` for retrieving the data of that value.
- Increase `LISTVIEW_ICON_SIZE` macro from 24 to 32, so 32x32 icon size is now used instead of 24x24. This makes displayed icons more accurate, since most of apps contain 32x32 icon, so they look a bit distorted with 24x24 size.
2020-09-20 19:19:59 +02:00
Mark Jansen 7119b13a28
[CREATECABFILE] Update rapps example scripts for new usage 2020-09-20 17:30:26 +02:00
He Yang fbbc3efd60
[RAPPS] Update help command (#3209)
Add missing FIND and INFO commands to the usage help string.
2020-09-19 15:20:14 +03:00
Kyle Katarn 579f501215
[RAPPS] Fix of unhandled exception when trying to modify/uninstall without selection (#3185)
CORE-17279
2020-09-15 22:50:12 +02:00
Kyle Katarn f07ace6aa2
[RAPPS][CONSRV] French translation update (#3160)
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-09-13 23:12:52 +02:00
He Yang 5077e400d5
[RAPPS] Update Chinese Simplified (zh-CN) translation (#3155)
Addendum to 7a11c65.
2020-09-13 22:00:08 +03:00
He Yang e1974d21dc
[RAPPS] settings read/write refactor (#3101)
* [RAPPS] move settings-related stuff to a separate file
* [RAPPS] refactor reg read/write
* [RAPPS] add params for Load/SaveSettings, no longer use global vars
2020-09-06 17:10:18 +02:00
He Yang ce0110195b
[RAPPS] improve ConInitStdStreams initialization logic (#3098) 2020-09-06 17:10:18 +02:00
He Yang 7a11c65561
[RAPPS] cmdline enhancement (#3087)
* [RAPPS] now command-line option supports begin with both / and -
* [RAPPS] Add help command with /?
* [RAPPS] add /find command
* [RAPPS] add /info option
* [RAPPS] add copyright and contact e-mail
2020-09-06 17:10:18 +02:00
赫杨 997650d424
[RAPPS] Display package name in UI too 2020-09-06 17:10:17 +02:00
赫杨 a4ac3c84b2
[RAPPS] now /INSTALL option use PkgName instead of software name
currently, PkgName is the name of ini file in DB (without suffix)
2020-09-06 17:10:17 +02:00
赫杨 da8810ab88
[RAPPS] add m_szPkgName for AvailableApps 2020-09-06 17:10:17 +02:00
赫杨 c5e111427c
[RAPPS] reduce the chance assert failed 2020-09-06 17:10:16 +02:00
赫杨 4c524ee3d5
[RAPPS] some renaming 2020-09-06 17:10:16 +02:00
赫杨 d29fba7f7a
[RAPPS] fix the bug that Toolbar is not working 2020-09-06 17:10:16 +02:00
赫杨 36870a02f7
[RAPPS] update some file-header
update some header to newer format, update purpose and add my name to those file I've modified
2020-09-06 17:10:16 +02:00
He Yang 4c7bd34a47
[RAPPS] appview displaymode support (#3008)
* [RAPPS] add function to set view-mode
* [RAPPS] move toolbar and searchbar into appview
* [RAPPS] remove settings and exit button from toolbar
* [RAPPS] add code to switch between list and tile mode
* [RAPPS] add auto-arrange for listview
* [RAPPS] adjust the minimum size of AppView
* [RAPPS] now image list of listview is stored inside the class
* [RAPPS] add list mode, and old list-mode are detail mode now
* [RAPPS] add check for unimplemented view mode
2020-09-06 17:10:08 +02:00
He Yang e44c9b6630
[RAPPS] application-view refactor (#3003)
* [RAPPS] separate application-view from gui.cpp
* [RAPPS] make the code looks more clear
* [RAPPS] fix &  improve tab-order handle
* [RAPPS] now double-click / right-click & install an item will install exactly this app
* [RAPPS] add handling for DWORD timestamp for InstallDate
* [RAPPS] make the code setting column style more clear
* [RAPPS] change the owner of popup-menu
* [RAPPS] now the popup menu (the one when right-click listview) now belongs to application-view
2020-09-06 17:09:21 +02:00
He Yang 10c0ff7416
[RAPPS] listview refactor (#2970)
This makes it easier to maintain the listview, and better separates the application list and listview.

* [RAPPS] fix memory leak when cleanup. some renaming are also done
* [RAPPS] move the code adding apps info inside class CAppsListView
* [RAPPS] add table view, create listview and AppInfoDisplay inside it
* [RAPPS] rename INSTALLED_INFO as CInstalledApplicationInfo
now it corresponds with CAvailableApplicationInfo
* [RAPPS] add CInstalledApps
* [RAPPS] optimize the speed when refreshing listview
* [RAPPS] correctly handle Enum for InstalledApps
* [RAPPS] make check all working properly (this also fixes some bugs)
the old version has some bugs when check all items after switching tags in tree-view
* [RAPPS] add handling for wow64
* [RAPPS] use an inline function to replace INSERT_TEXT macro
* [RAPPS] fix the bug that StatusBar won't update when switching tags
* [RAPPS] now TableView always reset bIsAscending in SetDisplayMode
* [RAPPS] rename TableView to ApplicationView
* [RAPPS] now bIsAscending would be reset when switching column in listview
2020-09-06 17:09:20 +02:00
He Yang 4482d0f455
[RAPPS] move icon to a field in .txt file (#2941)
* [RAPPS] move icon to a field in .txt file
* [RAPPS] add function PathAppendNoDirEscapeW, apply it.
2020-09-06 17:09:20 +02:00
He Yang e636373016
[RAPPS] rename snapshot to screenshot, filename to location (#2939) 2020-09-06 17:09:20 +02:00
赫杨 cfb0963c1f
[RAPPS] update broken-img icon 2020-09-06 17:09:20 +02:00
He Yang e506581454
[RAPPS] snapshot url support (#2925)
* [RAPPS] add snapshot url support
* [RAPPS] fix snapshot prev window won't update if size not changed
* [RAPPS] fix crash after cancel download
* [RAPPS] show broken-img if failed to create file / make network request
* [RAPPS] create a snapshots folder if it does not exist
* [RAPPS] add a helper function to perform callback
* [RAPPS] check bIsCancelled when handling ERROR_INVALID_HANDLE
* [RAPPS] remove W suffix for AsyncInetDownload
* [RAPPS] add assert for unknown event
* [RAPPS] Improve AsyncInetDownload error handling
* [RAPPS] move DisplayFailed to private, fix crash when cancelling
* [RAPPS] check for ERROR_INTERNET_OPERATION_CANCELLED
* [RAPPS] improve error logging
* [RAPPS] remove \r in error logging
* [RAPPS] rewrite AsyncInet
2020-09-06 17:09:19 +02:00
He Yang fbf119fde1
[RAPPS] Screenshot preview and other trivial fixes (#2894)
* add one more layer of window
* using Path* API to operate path
* always use rappmgr.cab as file name when downloading db. ignore the URL
* add snapshot preview window
* show a broken-image icon when failed to load image
* add a padding between image and content, and make sure always some space is reserved for richedit
* hide the padding if snapshot window does not have a width
* some work to avoid blinking when window resizing
* add WM_PRINTCLIENT handling
2020-09-06 17:09:19 +02:00
He Yang eacaf65459
[RAPPS] add a layer of window above the richedit (#2871)
* add one more layer of window
* use ATL to create window
* set pLink to NULL to avoid wild pointer
2020-09-06 17:09:12 +02:00
Catalin Gabriel Draghita 0ab63f9590
[BASE] Improve Spanish (es-ES) translation (#3088) 2020-08-25 18:10:23 +03:00
He Yang 393a2c42fe
[RAPPS] delete obsolete field 2020-06-14 20:34:43 +02:00
He Yang e5886f862f
[RAPPS] Update Chinese (Taiwan) translation (#2873) 2020-06-01 14:30:53 +03:00
Jose Carlos Jesus 9619dd4598
[RAPPS] Update Portuguese translation (#2820)
Update translation following PR #2792.
2020-05-23 15:17:52 +02:00
He Yang e5336bd2af
[RAPPS] Rapps trivial fixes (#2819)
- Specify W explicitly for URL_COMPONENTS;
- Remove malloc/free for once used HostName in urlComponents;
- Use PathAppendW to operate on path string.
2020-05-21 00:21:26 +02:00
Kyle Katarn 637b1e8661
[RAPPS] French translation update following PR #2792 (#2815) 2020-05-20 16:05:12 +02:00
He Yang a21d959e90
[RAPPS] Move database source URL to settings dialog (#2792)
- Add download source in settings dialog, and apply it when download .cab file
- Now user should specify full rappmgr.cab URL
- Check if URL is vaild in settings dialog
- Move source settings to the end of struct (will refactor settings to one value per option later)
2020-05-19 20:06:10 +03:00
Kyle Katarn a6084d7440
[RAPPS] Use ShellAbout() to display the about dialog (#2751)
As the dialog simply displays the copyright names and nothing particular it makes sense to use ShellAboutW() instead.
2020-05-14 15:28:57 +03:00
He Yang 2f56ccafe0
[RAPPS] Corrections for Chinese Simplified dialog UI translation (#2781) 2020-05-13 15:26:29 +03:00
He Yang a7b111f550
[RAPPS] 64bit compatibility fix (#2748)
Change SetWindowLongW to SetWindowLongPtrW.

It's the same (because the value is 0) but I think it's better.
2020-05-07 18:08:08 +09:00
Mark Jansen 86572f1f69
[RAPPS] Fix the locale fix 2020-05-03 20:33:23 +02:00
Mark Jansen cf9ba2b9ce
[RAPPS] Fix locale fallback code 2020-05-03 18:33:06 +02:00
Adam Stachowicz d53ee9c69e [RAPPS] Polish translation
After fb1582d330
2020-05-02 13:22:48 +02:00
Kyle Katarn fb1582d330
[RAPPS] Add error messages on all download failure cases
- Implement error message for all failure condition of RAPPS Download
- Implement logging for failure conditions not needing user complementary awareness (cancellation)
- Support for localization
CORE-16851
2020-05-01 23:52:57 +02:00
Serge Gautherie 03006ecfad
[RAPPS] Update now-redirected 'http' and 'www.reactos.org' URLs (#2621)
NB:
http://www.reactos.org/wiki/Bulgarian_translation
is not updated, as it returns
Error 404 - Page not found.
2020-04-22 14:42:43 +09:00
Sylvain Deverre 0a271bb106 [RAPPS] Addendum to previous commit, fix condition 2020-04-20 18:45:37 +02:00
Kyle Katarn 779f31a731
[RAPPS] Proxy fields default state fix (CORE-16853) (#2594)
* Fix for CORE-16853 https://jira.reactos.org/browse/CORE-16853

Co-authored-by: Sylvain Deverre <deverre.sylv@gmail.com>
2020-04-20 18:30:33 +02:00
He Yang 2ac13afefc
[RAPPS] Use _beginthreadex instead of CreateThread (#2552) 2020-04-17 19:27:16 +02:00
Julen Urizar Compains d7a632a094
[TRANSLATION] Spanish minor fixes (#2547)
Translations for:
- Applications: clipbrd, dxdiag, rapps,
- cmdutils: attrib, find, help, label, reg, xcopy
- usetup
- dlls: browseui, shell32, syssetup

- Add Spanish translation for Accesibility Utility (utilman).

Update for the "Choose product options" strings in syssetup:

Originally "ProductType" and "ProductSuite" (typesetted without spaces) were the registry value names where these settings would go, but since it's meaningless to show these values it's better instead to use human-readable names with correct translation and spacing.

Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-04-15 13:27:36 +02:00
Mark Jansen 946ee611a3
[RAPPS] Ensure the download dialog is always destroyed
Ideally, this entire download thing should be rewritten, but that is
something for another day.
2020-04-04 19:55:31 +02:00
Mark Jansen 4439b53800
[RAPPS] Use the provided SizeBytes for the progress,
when the host does not give a file size
2020-04-04 19:55:31 +02:00
Mark Jansen bcd301d136
[RAPPS] Enable ATL assertions 2020-04-04 19:55:31 +02:00
Serge Gautherie 92aabb07fb
[REACTOS] Fix remaining ' \n' typos, in *.rc (#2393)
Addendum to commit 554c41e4 (#2387).
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-03-06 19:08:25 +01:00
Mark Jansen 60e89359c1
More very serious issue pointed out by gcc 2020-02-23 22:41:42 +01:00
Mark Jansen 309f7e9443
gcc is crying again 2020-02-23 22:36:03 +01:00
Mark Jansen dee771817e
[RAPPS] Allow tabbing trough controls in the main window 2020-02-23 17:52:05 +01:00
Katayama Hirofumi MZ fa9145d305 [RAPPS] Improve Japanese translation 2019-11-17 19:46:56 +09:00
Adam Słaboń c81af08f51 [TRANSLATION] Polish translation update (#1916)
Added translation for netstat, utilman and netplwiz. Updated translation of find, reg, rapps, regedit, sndvol32, usetup, hivesys, mmsys, openglcfg, powercfg, sysdm, shellext, browseui, devmgr, msgina, netcfgx, shell32, syssetup, shortcuts and vcdcontroltool.
2019-09-20 21:51:47 +02:00
Mark Jansen cda2bc50eb
[RAPPS] Remove unused function definitions 2019-08-20 01:41:40 +02:00
Giannis Adamopoulos 1e201d7057
[RAPPS] CDownloadManager: Get rid of the implementation of IBindStatusCallback as we stopped using URLDownloadToFileW a decade ago 2019-08-20 00:43:49 +02:00
Giannis Adamopoulos db8f1d6f6a
[RAPPS] CDownloadManager: simplify canceling 2019-08-20 00:43:48 +02:00
Giannis Adamopoulos 6803490a4d
[RAPPS] factor CDownloaderProgress class out of CDownloadManager and CDownloadDialog 2019-08-20 00:43:48 +02:00
Giannis Adamopoulos 96fba571e0
[RAPPS] CDowloadingAppsListView: The download dialog doesn't use the layout engine so there is no need for it to be a CUiWindow 2019-08-20 00:43:48 +02:00
Giannis Adamopoulos 653894b972
[RAPPS] CMainWindow: use more atl 2019-08-20 00:43:48 +02:00
Giannis Adamopoulos 872289446d
[RAPPS] CMainWindow: remove unused functions , and the globals g_MainWindow and hListView 2019-08-20 00:43:48 +02:00
Giannis Adamopoulos 69bd96e09f
[RAPPS] CMainWindow: Make SelectedEnumType a member 2019-08-20 00:43:47 +02:00
Giannis Adamopoulos 8a401eb299
[RAPPS] CMainWindow: Move gui part of UninstallApplication in it 2019-08-20 00:43:47 +02:00
Giannis Adamopoulos 85d6055201
[RAPPS] CMainWindow: make szSearchPattern a member 2019-08-20 00:43:47 +02:00
Giannis Adamopoulos ba80f057c5
[RAPPS] CMainWindow: move RemoveAppFromRegistry in it 2019-08-20 00:43:47 +02:00
Giannis Adamopoulos 700f54c37b
[RAPPS] CMainWindow: Make EnumInstalledAppProc and EnumAvailableAppProc methods 2019-08-20 00:43:46 +02:00
Giannis Adamopoulos d8b773b190
[RAPPS] CAppRichEdit: Add a new class that handles filling the richtext control 2019-08-20 00:43:46 +02:00
Giannis Adamopoulos 1807dbfd6d
[RAPPS] Don't use CDownloadManager outside loaddlg.cpp 2019-08-20 00:43:46 +02:00
Giannis Adamopoulos 2c965f67d5
[RAPPS] move the message proc to gui.cpp 2019-08-20 00:43:46 +02:00
Giannis Adamopoulos 2bcc31a187
[RAPPS] remove the old splitter code that was not used 2019-08-20 00:43:46 +02:00
Shy Zedaka 187c9fc33c [Translation] More Hebrew Translations
Co-authored-by: Baruch Rutman <peterooch@gmail.com>
2019-08-15 13:41:01 +02:00
Jose Carlos Jesus 210adcc213
[RAPPS] Add Portuguese (neutral) translation. (#1656) 2019-06-17 15:12:13 +02:00
Yaroslav Kibysh 5ec32ee5f8
[RAPPS] Update Ukrainian translation. (#1640) 2019-06-10 16:47:55 +02:00
Mas Ahmad Muhammad 77ac92d817
[RAPPS] Add Indonesian translation. (#1598) 2019-06-04 15:52:22 +02:00
Mark Jansen 9824a0154e
[ATL] Retire atlnew 2019-04-18 19:21:37 +02:00
Jared Smudde 1a7dcb24ad [RAPPS] Fix blurry Theme category icon. 2019-04-13 17:07:30 +02:00
Stanislav Motylkov 911031e840 [RAPPS] Update Russian translation
Addendum to 07f3691 and d5b4570.
2019-04-07 23:51:34 +02:00
Hervé Poussineau 2f46ab2104 [RAPPS] Fix compilation
DPA_Search() function requires 6 parameters, not 4!
2019-04-01 11:38:32 +02:00
Baruch Rutman d5b4570d23 [RAPPS] Add themes category
Add category string to the rest of rc files

Update README
2019-03-31 20:08:25 +02:00
Luo Yufan 95564d5e30 [TRANSLATION] Update Chinese translation. (#1223)
[CLIPBRD][SOLITAIRE][RAPPS][REGEDIT][WINHLP32][WORDPAD][FDEBUG][SYSDM][BROWSEUI][DEVMGR][IEFRAME][OLEDLG][SHELL32][SYSSETUP][INF][WINFILE][NTVDM][USER32]
2019-01-07 00:35:11 +09:00
David Quintana 01e5cb0c04
Resource file strings cleanup (#581)
[CMDUTILS/AT] Fix missing translation strings in certain files.
[NOTEPAD] Fix SUBLANG code to brazillian.
[RAPPS] Fix missing translation strings in certain files.
[FDEBUG] Fix translation string ID.
[CPL/INPUT] Fix missing translation strings in certain files.
[ACPPAGE] Fix incorrect resource IDs.
[NETSHELL] Fix incorrect resource IDs.
[DEVMGR] Fix missing translation strings in certain files.
[LSASRV] Fix missing translation strings in certain files.
[RASDLG] Fix missing translation strings in certain files.
[SHELL32] Fix missing translation strings and incorrect resource IDs.
[TAPIUI] Fix missing translation strings in certain files.
[WINFILE] Fix incorrect resource IDs.
[NTVDM] Fix missing translation strings in certain files.
[USERSRV] Fix missing translation strings in certain files.
[BROWSEUI] One more missing string.
[FLTMC] Fix missing translation strings in certain files.

Detected using the TransDiffer tool (early alpha).
This doesn't include everything anymore, but I wanted to get the PR out of the way.
2019-01-05 15:44:16 +01:00
Luo Yufan c34833390a [TRANSLATION] Update Traditional Chinese translation. (#1193) 2018-12-27 16:24:24 +09:00
Luo Yufan 39a478d17b [TRANSLATION] Update Simplified Chinese translation. (#1096) 2018-12-05 16:50:05 +01:00
Ercan Ersoy ea47d95b05 [OSK][RAPPS][USETUP] Turkish translations update. (#1024) 2018-11-09 15:13:03 +01:00
Joann Mõndresku b63e2d5046 [TRANSLATIONS] Style fixes for Estonian 2018-11-07 22:10:27 +01:00
Joann Mõndresku b5bae2e98d [RAPPS][TRANSLATION] Estonian localization (#959) 2018-10-21 01:58:02 +02:00
Katayama Hirofumi MZ 31019e8c0c [TRANSLATION] Update Romanian translation (#851)
Translation from Stefan Fulea.
CORE-15023
2018-09-14 11:04:36 +02:00