Commit Graph

153 Commits (ae2e838df2f0b52d0bc869abc56dcf68b24973ae)

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli a110f3f2c5
GUI manage json files 2020-08-24 19:09:20 +07:00
Salvo 'LtWorf' Tomaselli ff9f0c10b6
Do not crash when editing relations containing None 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 5869f5d421
Visually show the different types 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli c61cea7806
Remove unused code 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli f892a9e162
Update copyright 2020-08-24 10:41:50 +07:00
Salvo 'LtWorf' Tomaselli 200c748ee5
Use new API to edit relations 2020-08-15 21:06:57 +07:00
Salvo 'LtWorf' Tomaselli bcdf81cdcd
Remove embedded browser with website 2017-08-26 17:51:04 +07:00
Salvo 'LtWorf' Tomaselli 7a88dc9076
Replace == None with is 2017-07-02 12:50:48 +07:00
Salvo 'LtWorf' Tomaselli 2d9bbf39f0
make mypy happy 2017-06-24 11:31:07 +07:00
Salvo 'LtWorf' Tomaselli d61bfafe5c
Do not send survey in case of swearwords
I'm getting tired of kids blaming their idiocy on me.

They can go begging for money, for all I care.
2017-05-13 00:21:10 +07:00
Salvo 'LtWorf' Tomaselli 47bc995fd9 Revert "Query splitter complete"
This reverts commit c4e258bbf9.

Because I had committed by mistake changes to guihandler
2016-08-21 10:58:46 +07:00
Salvo 'LtWorf' Tomaselli ae042a7ae4 "save" will act on the relation selected in the list
It used to act on the active relation, that is, the one being displayed
in the central table, that is selected with a double click.

This change makes it act on the relation directly selected instead.
It should be more intuitive.
2016-08-21 10:53:26 +07:00
Salvo 'LtWorf' Tomaselli c4e258bbf9 Query splitter complete 2016-08-16 11:15:56 +07:00
Salvo 'LtWorf' Tomaselli 03d05cf7a8 Added ui buttons to use multi line optimization 2016-05-25 15:29:32 +07:00
Salvo 'LtWorf' Tomaselli d5de52d73c Highlight current row
Inspired by code in pireal.
2016-05-25 13:53:34 +07:00
Salvo 'LtWorf' Tomaselli 2955afe45e New multi line editor
Supports zooming in and out with ctrl+scroll.

It is a bit hacky, since I use sed in make to make it work, but
whatever.
2016-05-25 13:38:22 +07:00
Salvo 'LtWorf' Tomaselli 790766827e Skip empty queries 2016-05-25 11:02:21 +07:00
Salvo 'LtWorf' Tomaselli 72318bb0e8 Updated copyright notices
With the last year of modification of the file in question.
2016-03-31 21:45:59 +07:00
Salvo 'LtWorf' Tomaselli ef209ea93f Do not crash on network error while sending survey 2016-03-21 14:50:50 +07:00
Salvo 'LtWorf' Tomaselli cf2115b383 Do not crash if the returned remote version is None
That happens in case of errors.

Now it correctly shows an error.
2016-03-21 14:39:35 +07:00
Salvo 'LtWorf' Tomaselli ce783a4453 Vertical policy adjusted
Adjusted what happens when the history is hidden.
2016-01-04 12:07:22 +07:00
Salvo 'LtWorf' Tomaselli ba8453c923 Print optimization steps
Prints the various steps on stdout, quite nice to
be able to understand what is happening internally.
2016-01-03 19:47:53 +07:00
Salvo 'LtWorf' Tomaselli ce348149f1 Better code style 2016-01-03 19:43:38 +07:00
Salvo 'LtWorf' Tomaselli 5563e1cafd Do not add query to history if it was the last
Maybe people just press enter twice.

This is the behaviour of bash.
2016-01-03 17:32:34 +07:00
Salvo 'LtWorf' Tomaselli 0dd2ef2f1d Style 2016-01-03 09:28:45 +07:00
Salvo 'LtWorf' Tomaselli 474bea6ff5 Re-unite query execution functions
For multi-line and single-line. After the change with the assignment
they are basically the same and there was no longer need
to have them separate in two functions.
2016-01-03 09:18:31 +07:00
Salvo 'LtWorf' Tomaselli 67db598b02 Shortcut to show relation
Pressing space on a selected relation shows it.

I wanted to use 'Enter' but it doesn't work.

This closes #5
2016-01-02 16:24:57 +07:00
Salvo 'LtWorf' Tomaselli 746ae6af09 Can hide history box
If it bothers you, it is possible to hide the history box.
2016-01-02 16:11:20 +07:00
Salvo 'LtWorf' Tomaselli 6315bebc61 Fix crash in case of empty history
Without that check, an empty history causes a crash
2016-01-02 15:59:02 +07:00
Salvo 'LtWorf' Tomaselli 8ccf4d51a4 Shortcuts to run and clear queries 2016-01-02 15:39:31 +07:00
Salvo 'LtWorf' Tomaselli 2a4bcd2a8b New shortcuts for optimization 2016-01-02 15:34:56 +07:00
Salvo 'LtWorf' Tomaselli a30aac5f5b Remove result text box
It was not really easy to write the name for the result
in a separate box, and it would create a lot of garbage
results, by creating a new one per every query.

Now single lines queries can contain assignments, and if not
a default relation named 'last_' is used to hold the last result.
2016-01-02 15:28:17 +07:00
Salvo 'LtWorf' Tomaselli e017949f7d Navigate history with arrows
In single line query mode, the history can be navigated
in a way that is somewhat similar to the shell.
2016-01-02 12:36:28 +07:00
Salvo 'LtWorf' Tomaselli 7acc0d19d0 Changed the blur thing with a simple label
It was a bit buggy and was not blurring all the widgets, or
not reverting the blur properly. Probably best to just show a
label instead.

Still, the proper solution would probably be to do the processing
in a separate thread.
2015-12-31 18:07:23 +07:00
Salvo 'LtWorf' Tomaselli 76cdfe7d06 Function to add shortcuts via code
I plan on adding a few more.
2015-12-31 14:29:12 +07:00
Salvo 'LtWorf' Tomaselli 5c2ff5f844 Added shortcuts for the operators 2015-12-31 12:58:47 +07:00
Salvo 'LtWorf' Tomaselli 239e0e58dd Blurs UI while processing
Before the processing of a query starts, it will blur the UI.

This gives feedback to the user that something is happening, and is
simple to implement because I am too lazy to move the processing in
a separate thread.
2015-12-21 00:54:05 +07:00
Salvo 'LtWorf' Tomaselli c8c894bb7b Removed useless line 2015-12-06 13:47:56 +07:00
Salvo 'LtWorf' Tomaselli be8230d54a Align query editing box with relation viewer
Not sure of what the problem was, probably some layout or frame that
had spacing.

Replaced the whole mess with a stacked widget instead.

close #8
2015-11-20 17:06:59 +07:00
Salvo 'LtWorf' Tomaselli 3012a08ff3 Removed unused variable 2015-11-11 17:01:52 +07:00
Salvo 'LtWorf' Tomaselli f5ef1027d0 Refactored main window creation
The main window was created in a somewhat stupid way, that required
multiple steps to be taken from the main module.

Now it's all in one call.
2015-09-29 12:47:20 +07:00
Salvo 'LtWorf' Tomaselli 38f9ced894 Fixed tab order
After the restyle, the order was messed up.
2015-09-12 11:12:58 +07:00
Salvo 'LtWorf' Tomaselli 732024de0e Use resource file
Use Qt resource files, compile it to Python to obtain a window that
has an icon!

Finally!

It is still using the Oxygen icon for Database, since I have nothing
better to use.
2015-09-11 13:57:34 +07:00
Salvo 'LtWorf' Tomaselli 7a85b77f50 Save state of splitter in GUI
The splitters are not stored as part of the window's state, so
store it separately.
2015-09-11 12:41:33 +07:00
Salvo 'LtWorf' Tomaselli c47823616a Do not ship compiled files
Remove the compiled files from the source.

Running from sources will require an extra make step that will generate
the necessary ui modules.
2015-09-11 12:33:58 +07:00
Salvo 'LtWorf' Tomaselli 41bb45b445 Redesigned UI
UI redesign.

Use Dock widgets for the toolbars, change various layouts to make the overall
UI smaller.
2015-09-11 12:26:37 +07:00
Salvo 'LtWorf' Tomaselli c6d6bbfeaf Refresh relation list in any case
If a query was failing, created relations were not shown in the list
of relations.
2015-09-09 14:45:17 +07:00
Salvo 'LtWorf' Tomaselli 1b2dc96af1 Re-generated UI 2015-09-09 12:43:25 +07:00
Salvo 'LtWorf' Tomaselli 862c71fdfb Clear session button and changed layout
Added a button to clear the current session

changed the disposition of the operator buttons, to take up less
vertical space. Now it should be better to fit smaller screens.
2015-09-09 12:42:00 +07:00
Salvo 'LtWorf' Tomaselli 66855ad50c Clear session function
Added a function to clear the current session
2015-09-09 12:38:54 +07:00