Commit Graph

118 Commits

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli
5c2ff5f844 Added shortcuts for the operators 2015-12-31 12:58:47 +01: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 +01:00
Salvo 'LtWorf' Tomaselli
c8c894bb7b Removed useless line 2015-12-06 13:47:56 +01: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 +01:00
Salvo 'LtWorf' Tomaselli
3012a08ff3 Removed unused variable 2015-11-11 17:01:52 +01: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 +02:00
Salvo 'LtWorf' Tomaselli
38f9ced894 Fixed tab order
After the restyle, the order was messed up.
2015-09-12 11:12:58 +02: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 +02: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 +02: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 +02: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 +02: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 +02:00
Salvo 'LtWorf' Tomaselli
1b2dc96af1 Re-generated UI 2015-09-09 12:43:25 +02: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 +02:00
Salvo 'LtWorf' Tomaselli
66855ad50c Clear session function
Added a function to clear the current session
2015-09-09 12:38:54 +02:00
Salvo 'LtWorf' Tomaselli
edc5078475 Use session handling in GUI
The UI stores the session when closing and loads it at the next
use.
2015-08-03 15:58:11 +02:00
Salvo 'LtWorf' Tomaselli
be7e6fe12d Classes have now names that begin with uppercase
This is more Pythonic and makes the code more readable.

Backwards compatibility is provided by giving an alias with the
previous name of the class.

It will not be broken until the next major release.
2015-07-14 15:39:35 +02:00
Salvo 'LtWorf' Tomaselli
73dd14d9dd Style 2015-07-14 11:01:35 +02:00
Salvo 'LtWorf' Tomaselli
98ac364dc7 Removed encoding string
Not needed in Python 3
2015-07-14 10:43:13 +02:00
Salvo 'LtWorf' Tomaselli
5218f41e7b Use handler to suggest name 2015-06-17 16:35:14 +02:00
Salvo 'LtWorf' Tomaselli
05e13bfeac Use the new class
Simplify error reporting with a new function.
2015-06-16 13:22:58 +02:00
Salvo 'LtWorf' Tomaselli
21d30733c7 Re-generated UI 2015-06-08 01:15:14 +02:00
Salvo 'LtWorf' Tomaselli
ac255e4509 Re-create connections for operators 2015-06-08 01:14:56 +02:00
Salvo 'LtWorf' Tomaselli
86a3580b15 Change relation creator to use new headers
Update the relation editor/creator to use the new style headers
2015-06-07 15:54:19 +02:00
Salvo 'LtWorf' Tomaselli
60f0584063 regenerated UI 2015-06-07 13:39:28 +02:00
Salvo 'LtWorf' Tomaselli
0aacdefade UI restyling
Try to use up less space, in case users have smaller screens.
2015-06-07 13:38:50 +02:00
Salvo 'LtWorf' Tomaselli
3060a8562f Ask for relation name if filename is not valid
By default when loading a file, a relation with the same name is
created.
Now, if the filename is not a valid relation name, the user will be
prompted to manually insert a relation name.

De-duplicated code for doing this when a new relation is created.
2015-06-07 13:37:24 +02:00
Salvo 'LtWorf' Tomaselli
0a9bdb12a7 Re generated UI 2015-06-07 01:50:10 +02:00
Salvo 'LtWorf' Tomaselli
f363d4b536 removed title from operators groupbox 2015-06-07 01:49:53 +02:00
Salvo 'LtWorf' Tomaselli
cdbd59bab3 Update UI for header changes
Updates the UI to work with the new header changes
2015-06-06 15:27:11 +02:00
Salvo 'LtWorf' Tomaselli
92adb10bc6 Able to load non .csv files from UI 2015-06-04 22:38:25 +02:00
Salvo 'LtWorf' Tomaselli
6b66b48819 Regenerated ui 2015-06-04 22:31:35 +02:00
Salvo 'LtWorf' Tomaselli
bae0d482a2 Set font for windows
Apparently the new symbols used are not present in Dejavu fonts.

However they should be present in Cambria, which should be shipped
by default on windows.
2015-06-04 22:30:39 +02:00
Salvo 'LtWorf' Tomaselli
90034d1033 Regenerated UI 2015-06-02 15:12:57 +02:00
Salvo 'LtWorf' Tomaselli
cdca1cc899 Re-added connection to use history 2015-06-02 15:12:41 +02:00
Salvo 'LtWorf' Tomaselli
62c51ab150 Removed useless compatibility module from UI
It was originally created to support both PyQt and PySide but
at this point is useless
2015-06-02 14:56:44 +02:00
Salvo 'LtWorf' Tomaselli
36a2c192a8 Fix save relation dialog
Also add an error in case no relation is selected.
2015-06-02 14:41:41 +02:00
Salvo 'LtWorf' Tomaselli
8102dbe959 Fixed and changed semantic of open relation
Now relations are always named with the default name.

Multiple relations can be opened at once from the GUI.

Removed redundant code to select the default name for a relation.

Using system dependant splitter to determine the default name for a relation.
2015-06-02 12:35:47 +02:00
Salvo 'LtWorf' Tomaselli
9d4284d624 Store the state of the main window when closing and restore it. 2015-06-01 14:20:29 +02:00
Salvo 'LtWorf' Tomaselli
dbeb1e3863 Do not manipulate the relation directly when editing
This prevents adding values with the wrong type to the relation.
2015-06-01 13:14:58 +02:00
Salvo 'LtWorf' Tomaselli
db529f9ba4 Qt5 moved QWebView in a different module 2015-06-01 10:59:17 +02:00
Salvo 'LtWorf' Tomaselli
d60b5f7983 Print compiled expressions for multiline queries 2015-06-01 07:34:21 +02:00
Salvo 'LtWorf' Tomaselli
cd5c2845e1 Store last multiline query
When loading, the last multiline query used will be available.

Also, refactored the part to execute multiline queries in a
separate function.
2015-06-01 00:17:19 +02:00
Salvo 'LtWorf' Tomaselli
7530c30185 Generated UI 2015-06-01 00:02:23 +02:00
Salvo 'LtWorf' Tomaselli
f3af25f132 Support multi-line editing mode
This mode supports the insertion of multiple queries in one shot,
assign them to variables and reuse them.

Basically a program. Less interactive mode but better for more
complicated queries.
2015-06-01 00:00:59 +02:00
Salvo 'LtWorf' Tomaselli
eda84914af Generate UI files 2015-05-31 19:04:45 +02:00
Salvo 'LtWorf' Tomaselli
4a71130d0a Change UI to use the new symbols 2015-05-31 19:03:49 +02:00
Salvo 'LtWorf' Tomaselli
abfa6a00c2 Use constants rather than hardcoded symbols
In the code that inserts the symbols in the query, use constants from the
parser module.
2015-05-31 19:03:17 +02:00
Salvo 'LtWorf' Tomaselli
7e1c2c964c I can't remember what the changes were 2015-03-12 10:21:01 +01:00
Salvo 'LtWorf' Tomaselli
221861be51 Marked operator buttons labels as untranslatable 2015-02-23 15:23:27 +01:00