Commit Graph

3431 Commits

Author SHA1 Message Date
Martin Kleusberg
80b4215bae travis: Change my email address 2020-09-27 17:21:58 +02:00
Safa Alfulaij
f0e7fe22c4 Update Arabic translation (#2406)
#2405
2020-09-22 23:13:15 +02:00
SeongTae Jeong
0031d9ae40 Update importSettings() to call reloadSettings()
- PreferencesDialog::importSettings() calls MainWindow::reloadSettings() indirectly
- PreferencesDIalog::exportSettings() calls PreferencesDialog::saveSettings() when beginning
- Settings::importSettings() clear m_hCache
- Update Korean translation that can be translated from the above changes
2020-09-21 12:23:53 +09:00
mgr
d8ca11f57a Destroy the Temporary Fiel object so it is not kept open
According to Qt documentation:
> Reopening a QTemporaryFile after calling close() is safe. For as long as
> the QTemporaryFile object itself is not destroyed, the unique temporary
> file will exist and be kept open internally by QTemporaryFile.

Keeping the file open by DB4S means that later it cannot be opened by the
external application in Windows, since it is locked.

See issue #2402
2020-09-20 21:24:00 +02:00
SeongTae Jeong
27c2f64dcd Allow users to export or import user-settings file in a GUI environment (#2394)
* Change 'Preferences' to 'Settings' for natural expression. See the issue #2393

* Add filter for INI file

* Add 'Export Settings' and 'Import Settings' buttons In Preferences dialog

* Add validation of whether it is a normal settings file
2020-09-19 22:38:21 +02:00
SeongTae Jeong
81af52af45 Update Korean translation
- Delete old translation file(sqlb_ko_KR.qph).
- Translate for all translatable entries.
- Modify to maintain unity between words.
- Fix several typos and grammatical errors
2020-09-17 04:18:33 +09:00
Martin Kleusberg
a6acb6ccb1 dbhub: Make HTML text of commit message field non-translateable
See issue #2395.
2020-09-13 15:06:24 +02:00
Martin Kleusberg
a15f81bc35 Add new option to freeze columns in the Browse Data tab
This adds a new context menu action called "Freeze Columns" to the
context menu which appears when you right click the column headers in
a Browse Data dock. With this action all columns from the first up to
the clicked column are fixed in place when you scroll horizontally. This
can be used to make for example the id column always visible.

See issue #1888.
2020-09-11 17:36:02 +02:00
Martin Kleusberg
34040f81aa Some layout fixes
See issue #2299.
2020-09-11 17:35:45 +02:00
SeongTae Jeong
d9fd0e1795 Change to 'Preference' expression for consistent
Change to 'Preferences' expression instead of 'Configuration' expression for consistent.
See the issue #2393
2020-09-08 04:10:31 +09:00
SeongTae Jeong
0644bc094f Add the ability to support custom config files (#2390)
Two options are added for the command line:

    -c [config_file]
    --config [config_file]

We can also use environment variables without using options on the command line.
export DB4S_CONFIG_FILE=[config_file]

If there is an environment variable and use the -c or --config option, the environment variable is ignored.

See  issue #2317.
2020-09-06 19:52:39 +02:00
Martin Kleusberg
2ef7d562c5 Fix crash introduced in 28ae741745
See issue #2391.
2020-09-06 15:42:23 +02:00
mgrojo
fd54bf1ad2 Unify message in About dialog and version argument
And avoid removing extension when printing command name in help message.

See issue #1069
2020-09-02 21:35:37 +02:00
mgrojo
0963cacc04 Fix problems when showing help message in rich text format
Due to use of '<>' characters, the text has to be escaped for HTML.

See issue #1069
2020-09-02 21:33:48 +02:00
mgrojo
c791a9ff7c Remove the Default property of the fetching dialog
Remove the default and auto-default properties of the cancel button in the
"Fetching data..." dialog.

See issue #2383
2020-08-31 00:06:57 +02:00
Martin Kleusberg
dfc7645079 dbhub: Allow pushing to other user accounts to which you have access
This adds a new row to the Push dialog in which you can set the user
name in case you want to push to a different account.
2020-08-30 21:37:51 +02:00
Martin Kleusberg
8c12ee01ae dbhub: Fix creating new branches
This fixes creating new branches or pushing to a different existing
branch than the currently checked out branch.
2020-08-30 21:11:59 +02:00
mgrojo
623eb11c4f Improve usage message
- Remove path in program name
- Avoid tabs for tabular formatting which are not portable
- Break long lines (80 characters maximum)
- Add reference to project files
- Use traditional syntax: <placeholder> [optional]
  See https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_01
      https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/command-line-syntax-key

See issue #1069
2020-08-30 14:22:33 +02:00
mgrojo
175ff7371a Show preformatted text for output from command line arguments in Windows
Also, the handler is simplified. We only need to store the possible
message.

See issue #1069
2020-08-29 17:35:26 +02:00
Justin Clift
153e02901a Tweak the output wording for command line options
As per:

  https://github.com/sqlitebrowser/sqlitebrowser/issues/1069#issuecomment-679342176
2020-08-25 13:37:09 +10:00
Martin Kleusberg
598dd545e6 Refresh table views when using --table command line option
This was mentioned in #2113.
2020-08-24 15:33:55 +02:00
Martin Kleusberg
7c9c36018c Fix runtime warning 2020-08-24 10:58:43 +02:00
Martin Kleusberg
73f60a5c47 Simplify code 2020-08-24 10:57:08 +02:00
mgrojo
b42edecf48 Added message box for informative command line arguments for Windows
Added a message handler so any Qt message sent before the main window is
visible will be shown to user in a message box. In principle, this is
designed for the informative command line arguments: '-h' and '-v', but
will improve also the error messages about not found arguments or any other
warning or error shown before the messages can be seen in the Log dock.

See issue #1069
2020-08-23 15:30:18 +02:00
SeongTae Jeong
a5dd9a6069 Fix typo in French translation
src/translations/sqlb_fr.ts: fix typo in translation (Choose a project file to open)
2020-08-23 20:51:40 +09:00
hydrargyrum
4eef008060 src/translations/sqlb_fr.ts: fix typo in translation
"Choose a project file to open" translation had a typo
2020-08-23 11:28:40 +00:00
Martin Kleusberg
8a455106f9 Simplify code 2020-08-22 21:49:07 +02:00
Martin Kleusberg
596007414e Avoid unnnecessary calls to populateStructure()
This should speed up the code a bit (though probably unnoticeably) and
make the code easier to understand and maintain.
2020-08-22 19:15:41 +02:00
horst-p-w-neubauer
29635e9e80 detach additional database connection
See issue #2239
2020-08-22 15:02:29 +02:00
SeongTae Jeong
156fc15d69 Delete Slack icon (#2379)
* Delete Slack icon because no-one seems to actually use it.
* Fix missing items in the last patch that Rename Mac OS X to macOS. (#2367)
2020-08-22 04:48:22 +09:00
horst-p-w-neubauer
5664e28071 remove ui->fileAttachAction dependency on db.dirty
See #2255
2020-08-21 15:52:22 +02:00
horst-p-w-neubauer
4960e8fe2f skip test for already attached database
sqlite allows to attach the same database file multiple times with
different alias names - as long as you're not running on shared cache
mode. So DB4S should not deny a user to do so.
2020-08-21 15:52:14 +02:00
horst-p-w-neubauer
06dc1325b1 DbStructureQItemViewFacade implemented
DbStructureQItemViewFacade provides a simple read only interface to a
QAbstractItemView (e.g. QTreeView) that holds a model() of type
DBStructureModel.

It is designed to simplify the access to the actual selected node.

The Class follows the facade design pattern.
But it doesn't control the lifecycle of the itemView it is connected to.
2020-08-21 15:38:37 +02:00
Martin Kleusberg
ab682a321c Allow multiple -t/--table parameters on the command line
Specifying multiple tables using the -t/--table parameter on the command
line now opens all of them in different tabs.
2020-08-21 14:18:32 +02:00
Martin Kleusberg
539657e565 Always raise new Data Browser tabs to the foreground 2020-08-21 14:16:51 +02:00
Martin Kleusberg
28ae741745 Change tabbed table browisng to use docks instead
This changes the different tabs in the Browse Data tab to docks. Docks
can be tabbed as well (which is also the default now) but also allow
free floating windows or split views.

See issues #756, #1465, #1905, #2229, #2283.
2020-08-20 11:35:38 +02:00
mgrojo
b24c1f06c7 Add .NET DateTime.Ticks to date display format
See issue #2378
2020-08-19 13:40:21 +02:00
Justin Clift
72a4524a36 Tell Qt to allow use of an integrated graphics adapter
This should address #2377
2020-08-19 19:00:14 +10:00
mgrojo
ed226f1d0a Add file, line number and function to Error Log
This will be useful for debugging purposes. Note that sqlite3_log has a
limit and the final text could be truncated.
2020-08-18 21:56:15 +02:00
mgrojo
55637c284f Redirect Qt messages to sqlite log mechanism
In Windows (related issue #1069) and maybe in macOS (related issue #1982)
output to console is inhibited.

This will allow these messages to be seen in our Error Log window.
2020-08-17 20:40:04 +02:00
SeongTae Jeong
54ee47b5a9 Allow the user can change MaxRecentFiles (#2373)
* Add spin box for max recent files

* Set default value for max recent files

* Implement handling of max recent files value

* Add separator to separate the recent file list and the clear list action
2020-08-17 19:08:07 +02:00
Martin Kleusberg
66e8a5ec84 tests: Fix crash in regex tests 2020-08-17 18:30:23 +02:00
Martin Kleusberg
c33b8be843 Save custom tab title flag in project files
We need to save the flag whether a tab title in the Browse Data tabs is
a custom title or not in the project files. This is added by this
commit.
2020-08-17 17:32:43 +02:00
Martin Kleusberg
e9ec07e11d Always load settings for Browse Data tabs
This makes sure to always load the correct settings when creating a new
Browse Data tab.

See issue #2283.
2020-08-17 17:23:34 +02:00
Martin Kleusberg
c96c393df8 Use table name as tab text in Browse Data tabs
This uses the name of the selected table for the tab titles in the
Browse Data tabs. When setting a custom tab title that title is
preserved.

See issue #2283.
2020-08-17 17:21:12 +02:00
Martin Kleusberg
73b2a1c23d Avoid possible database busy message when using the Browse Table action
Avoid a possible database busy warning when using the Browse Table
context menu action in the Database Structure tab. This happened because
of an unnecessary schema update.

Also do not refresh the view when changing between the main tabs. This
makes tab switching faster, makes sure the scroll position is not lost,
and avoid two queries instead of one when using the Browse Table action.

See issue #2283.
2020-08-17 17:21:05 +02:00
mgrojo
47aa591dfb Return the configured font for data browser in the model
Otherwise it cannot be used by the format toolbar to get the cell font when
the default has not been overwritten.

See comment in issue #1976
2020-08-16 22:28:58 +02:00
Martin Kleusberg
1e1e87e61c Allow multiple TableBrowser tabs in the Browse Data tab
This adds a new tab widget inside the Browse Data tab which allows you
to create multiple TableBrowser widgets. This way you can browse
multiple tables at the same time and switch between them.

I don't consider this done. The UI for this is likely to change in the
future. This commit is just a first step towards this goal.

See issue #2283.
2020-08-15 20:43:38 +02:00
Martin Kleusberg
8323f2a1b6 Add 'Don't ask again' button to collation message box
This adds a button called 'Yes. Don't ask again' to the collation
message box which asks you to confirm adding a default collation when
your database needs a custom collation.

See issue #2356.
2020-08-15 17:25:53 +02:00
Martin Kleusberg
83ba6a4150 Fix warnings 2020-08-15 17:13:19 +02:00