keepassxc/src/gui
Janek Bevendorff 113c8eb702 Add CLI tests and improve coding style and i18n
The CLI module was lacking unit test coverage and showed some severe
coding style violations, which this patch addresses.

In addition, all uses of qCritical() with untranslatble raw char*
sequences were removed in favor of proper locale strings. These are
written to STDERR through QTextStreams and support output
redirection for testing purposes. With this change, error messages don't
depend on the global Qt logging settings and targets anymore and go
directly to the terminal or into a file if needed.

This patch also fixes a bug discovered during unit test development,
where the extract command would just dump the raw XML contents without
decrypting embedded Salsa20-protected values first, making the XML
export mostly useless, since passwords are scrambled.

Lastly, all CLI commands received a dedicated -h/--help option.
2018-10-19 21:49:54 +02:00
..
csvImport Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
dbsettings Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
entry Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
group Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
masterkey Migrate to linuxdeploy for building AppImages 2018-09-29 13:12:09 +02:00
settings Add a new database settings wizard 2018-09-25 21:12:47 +02:00
widgets Formatting the code. 2018-03-31 16:01:30 -04:00
wizard Add a new database settings wizard 2018-09-25 21:12:47 +02:00
AboutDialog.cpp Add TouchID support on macOS 2018-09-18 22:42:05 -04:00
AboutDialog.h Formatting the code. 2018-03-31 16:01:30 -04:00
AboutDialog.ui Enhancements to About dialog and add settings button to toolbar 2018-08-20 21:27:37 -04:00
Application.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
Application.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
ApplicationSettingsWidget.cpp Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
ApplicationSettingsWidget.h Add a new database settings wizard 2018-09-25 21:12:47 +02:00
ApplicationSettingsWidgetGeneral.ui Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
ApplicationSettingsWidgetSecurity.ui Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
CategoryListWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
CategoryListWidget.h Add a new database settings wizard 2018-09-25 21:12:47 +02:00
CategoryListWidget.ui Make widget scalable and set minimum width based on the widget text 2017-02-22 03:39:13 +01:00
Clipboard.cpp Prevent Klipper from storing secrets in clipboard history (#1969) 2018-08-29 11:13:55 -04:00
Clipboard.h Prevent Klipper from storing secrets in clipboard history (#1969) 2018-08-29 11:13:55 -04:00
CloneDialog.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
CloneDialog.h Formatting the code. 2018-03-31 16:01:30 -04:00
CloneDialog.ui Fix clone dialog text 2017-07-20 14:09:33 +02:00
DatabaseOpenWidget.cpp Add a new database settings wizard 2018-09-25 21:12:47 +02:00
DatabaseOpenWidget.h Formatting the code. 2018-03-31 16:01:30 -04:00
DatabaseOpenWidget.ui Add a new database settings wizard 2018-09-25 21:12:47 +02:00
DatabaseTabWidget.cpp Choose database for saving or updating entries from KeePassXC-Browser (#2391) 2018-10-19 14:44:08 -04:00
DatabaseTabWidget.h Choose database for saving or updating entries from KeePassXC-Browser (#2391) 2018-10-19 14:44:08 -04:00
DatabaseWidget.cpp Choose database for saving or updating entries from KeePassXC-Browser (#2391) 2018-10-19 14:44:08 -04:00
DatabaseWidget.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
DatabaseWidgetStateSync.cpp Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
DatabaseWidgetStateSync.h Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
DialogyWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
DialogyWidget.h Coding style fixes. 2015-10-15 18:02:31 +02:00
DragTabBar.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
DragTabBar.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
EditWidget.cpp Disable apply button when creating new entry/group 2018-08-18 10:31:40 -04:00
EditWidget.h Disable apply button when creating new entry/group 2018-08-18 10:31:40 -04:00
EditWidget.ui Add "Apply" button to entry and group edit windows (#624) 2017-06-13 20:55:53 -04:00
EditWidgetIcons.cpp Replace Google with DuckDuckGo as the optional fallback favicon fetcher (#2309) 2018-09-20 21:52:51 -04:00
EditWidgetIcons.h Fixed issues with initial commit 2018-07-06 22:23:52 -04:00
EditWidgetIcons.ui Pixel-perfect entry edit widgets 2017-02-16 10:35:39 +01:00
EditWidgetProperties.cpp Fixed issues with initial commit 2018-07-06 22:23:52 -04:00
EditWidgetProperties.h Replaced Uuid with QUuid 2018-07-06 22:23:49 -04:00
EditWidgetProperties.ui Ask user before deleting custom plugin data and disable button if no data selected 2018-02-21 13:23:14 +01:00
EntryPreviewWidget.cpp Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
EntryPreviewWidget.h Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
EntryPreviewWidget.ui Create config file deprecation mechanism & rename Details->Preview (#2371) 2018-10-08 21:11:44 -04:00
FileDialog.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
FileDialog.h Formatting the code. 2018-03-31 16:01:30 -04:00
Font.cpp Refactor fixed font selection into Font class 2017-12-16 09:59:51 +02:00
Font.h Formatting the code. 2018-03-31 16:01:30 -04:00
IconModels.cpp Fixed issues with initial commit 2018-07-06 22:23:52 -04:00
IconModels.h Replaced Uuid with QUuid 2018-07-06 22:23:49 -04:00
KeePass1OpenWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
KeePass1OpenWidget.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
KMessageWidget.cpp Fix icons not using default theme 2018-09-22 21:29:09 +02:00
KMessageWidget.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
LineEdit.cpp Fix icons not using default theme 2018-09-22 21:29:09 +02:00
LineEdit.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
MainWindow.cpp Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
MainWindow.h Remove obsolete database repair feature 2018-09-25 21:20:47 -04:00
MainWindow.ui Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
MainWindowAdaptor.cpp add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
MainWindowAdaptor.h add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
MessageBox.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
MessageBox.h Formatting the code. 2018-03-31 16:01:30 -04:00
MessageWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
MessageWidget.h Show KeePassHTTP deprecation notice three times and use MessageWidget 2018-01-19 20:44:15 +01:00
org.keepassxc.KeePassXC.MainWindow.xml add function for locking DBs from DBus, fix #687 2018-01-25 23:48:58 +01:00
PasswordEdit.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
PasswordEdit.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
PasswordGeneratorWidget.cpp Use length of existing password for the password generator (#2318) 2018-09-25 20:44:19 -04:00
PasswordGeneratorWidget.h Use length of existing password for the password generator (#2318) 2018-09-25 20:44:19 -04:00
PasswordGeneratorWidget.ui Add a new database settings wizard 2018-09-25 21:12:47 +02:00
SearchWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
SearchWidget.h Formatting the code. 2018-03-31 16:01:30 -04:00
SearchWidget.ui Enhancements to About dialog and add settings button to toolbar 2018-08-20 21:27:37 -04:00
SortFilterHideProxyModel.cpp Adapt to setSupportedDragActions() begin removed. 2015-09-12 13:51:49 +02:00
SortFilterHideProxyModel.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
SquareSvgWidget.cpp Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
SquareSvgWidget.h Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
TotpDialog.cpp Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TotpDialog.h Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TotpDialog.ui Add TOTP support 2017-05-03 20:55:14 -03:00
TotpExportSettingsDialog.cpp Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
TotpExportSettingsDialog.h Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
TotpSetupDialog.cpp Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TotpSetupDialog.h Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TotpSetupDialog.ui Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
UnlockDatabaseDialog.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
UnlockDatabaseDialog.h Formatting the code. 2018-03-31 16:01:30 -04:00
UnlockDatabaseWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
UnlockDatabaseWidget.h Clear database open dialog before and after merging a database (#958) 2017-09-23 11:43:29 -04:00
WelcomeWidget.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
WelcomeWidget.h Formatting the code. 2018-03-31 16:01:30 -04:00
WelcomeWidget.ui Make 'Welcome to KeePassXC $VERSION' string properly translatable, resolves #1236 2018-01-28 16:44:36 +01:00