This is just a temporary patch until Martin has time to look at
this properly.
This code needs to be commented out (for now), as it's conflicting
with the previous commit. However that one is needed for the
application to function, so I'm giving that one priority.
"Cut" copies the cells to clipboard and then deletes the data taking into
account a possible NOT NULL constraint in the field to leave the cell empty
instead of setting it to NULL. Rowid column is ignored.
See issue #2355
- Avoid editing data in checkable columns or columns with combo-boxes
- Select items to allow navigation with cursor keys in each row
- More edit triggers for editable columns
- Icons for primary and foreign key columns
- Dialog width increased so more columns fit
See issue #598
Fix a bug which made tables from other schemas than the main schema
inaccessible in the Browse Data tab. Most notably this always selects
table "main"."tbl" instead of for example "temp"."tbl".
See issue #2348.
This will close all SQL tabs, asking if they have to be saved and close
the database file.
Fixed a bug when switching between two project files from the Recent Files
list. If the first project had a pending change and it was saved at that
very moment, the database was already closed and the project file was saved
without DB file.
See issue #2289
* Add a new submenu ('File > Recent Files') and move recent file actions inside.
* Add a new menu item to the menu of recent files ('Clear List') and delete divider(QAction *recentSeparatorAct) because that is no longer used.
* Added general function to clear Settings value (including cache)
This adds a column for the file size to the list of commits.
It also adds a couple of tooltips to the Remote and Commit tree views to
show additional information. Especially for remote databases this adds a
lot of valuable information.
A new predefined simplified layout has been added with the only the basic
functions: schema, browsing and SQL execution. Ideal for courses.
Also added options for moving all the docked windows to the bottom, left
side or top (for the right, the default can be restored with Reset Window
Layout as before).
See issue #2307
This adds the possibility to handle network replies individually instead
of routing all of them through a central handler routine. The
centralised approach made the code more complicated than necessary and
would inevitably lead to confusion when sending similar requests
simultaneously.
This splits up the RemoteDatabase class into two classes, RemoteDatabase
and RemoteNetwork. The first is for managing the directory of cloned
databases while the second is for network handling only. Moving the
network code into a separate class requires some rewriting but should
make the code easier to maintain and extend.
This adds a new context menu action to the commit list in the Current
Database tab of the Remote dock which downloads the database from that
commit and saves it to another file. This file can then be opened and
inspected just like any other database file and does not update the
local clones data.
This adds a new toolbar action to the Current Database tab of the Remote
dock which downloads and updates to the latest commit of the currently
opened database and branch.
This adds context menus and some context menu actions to all the tree
views in the Remote dock. No new features are added. This just adds a
new way to trigger existing features but also establishes a place for
future actions for new features.
Make sure to only show a warning that local changes might be lost before
actually downloading a database and overriding the local copy. When we
just open the local copy, no warning needs to be shown.
Instead of always selecting the default branch select the currently used
branch in the Push Database dialog. Only default to the default branch
if no current branch is available.
After opening a clone of a remote database, allow checking out the
different branches and commits of this database in the Current Database
section. This way you access all branches and see their history in DB4S.
Move the Clone database button to a newly created tool bar in the
DBHub.io tab of the Remote dock.
Transform labels in the Current Database tab into line edit widgets.
Adjust spacings a bit.
Complete translation and some improvements:
- Fix warnings raised by Linguist
- Avoid Title Case in Spanish
Issue #2124
Cherry-picked from v3.12.x branch.
# Conflicts:
# src/translations/sqlb_es_ES.ts
Add a toolbar to the Current Database tab of the Remote dock with one
button for now. This button opens the web page of the currently opened
database in the browser.
Also reduce the margins in the Remote dock a bit.
This makes the database name columns a bit wider by default. It also
reduces the width of the size columns, moves the commit id column to the
end of the remote table, and hides the file name column in local table.
See issue #2334.
This fixes a sporadic crash when selecting an identity in the Remote
dock. It happened because selecting an identity removes the first dummy
entry in the drop down list of identities which for some reason emits
the signal which then calls the same function to update the root dir
again. Depending on the timing of the network requests this could lead
to some confusion when building the tree structure.
Also fix an off-by-one error when building the tree structure.
See issue #2333.
This avoids possible confusions when getting the currently opened
database file. After closing a database this would return the previously
opened file when in fact no file is opened.
See issue #2334.