Ben Konrath [Fri, 4 Mar 2011 12:49:02 +0000 (13:49 +0100)]
Add Eclipse CDT config files.
Murray Cumming [Mon, 31 Jan 2011 13:37:06 +0000 (14:37 +0100)]
More consistent SLOT names.
Murray Cumming [Mon, 31 Jan 2011 13:27:25 +0000 (14:27 +0100)]
Fix slot typo.
* src/gui/main_window.cc: Constructor: Correct the name of the
slot, which qt warns about at runtime only.
This is the number one thing that people hate about Qt.
Murray Cumming [Mon, 31 Jan 2011 13:24:27 +0000 (14:24 +0100)]
Slight Doxygen comments change
This lets us use multi-line comments more easily.
Murray Cumming [Mon, 31 Jan 2011 13:22:02 +0000 (14:22 +0100)]
README: Added hints about running qlom
Murray Cumming [Mon, 31 Jan 2011 13:15:43 +0000 (14:15 +0100)]
Also check for libglom-1.18
Even though that does not exist just yet.
Murray Cumming [Mon, 31 Jan 2011 13:06:25 +0000 (14:06 +0100)]
Allow use of libglom-1-16 too.
Murray Cumming [Mon, 31 Jan 2011 13:02:51 +0000 (14:02 +0100)]
Prefer libglom-1.14 to libglom-1.12
Murray Cumming [Mon, 31 Jan 2011 13:01:23 +0000 (14:01 +0100)]
A hint for qt detection.
Murray Cumming [Mon, 31 Jan 2011 12:51:03 +0000 (13:51 +0100)]
Add less-than-ideal build hint to README.
Murray Cumming [Sat, 18 Sep 2010 21:11:24 +0000 (23:11 +0200)]
Fix the build with libglom-1-14
Murray Cumming [Sat, 18 Sep 2010 21:05:50 +0000 (23:05 +0200)]
Pass QString as const reference.
Murray Cumming [Sat, 18 Sep 2010 12:08:07 +0000 (14:08 +0200)]
autogen.sh: Remove unnecessarily confusing message about autoreconf.
David King [Wed, 17 Mar 2010 14:36:39 +0000 (15:36 +0100)]
Add StartupNotify key to desktop file
David King [Wed, 17 Mar 2010 13:45:19 +0000 (14:45 +0100)]
Check for libglom versions >= 1.12.6 and >= 1.13.3
Check for both glom-1.12 and glom-1.14 versions in configure, so that
Qlom can be compiled against a stable or unstable version of Glom.
David King [Wed, 17 Mar 2010 11:07:31 +0000 (12:07 +0100)]
Use PKG_CHECK_EXISTS in configure.ac
Just check for the existence of ‘osso-af-settings’ in configure.ac with
PKG_CHECK_EXISTS, rather than using PKG_CHECK_MODULES. Add a fifth field
to the AC_INIT call, for the project homepage.
Peter Penz [Wed, 10 Mar 2010 10:00:46 +0000 (11:00 +0100)]
remove QlomErrorReporter and handle errors locally
Peter Penz [Mon, 1 Mar 2010 13:40:34 +0000 (14:40 +0100)]
Add --enable-maemo configuration support
Install the desktop file to the correct location on Maemo, as determined
by osso-af-settings. Remove the file argument from the desktop file.
Signed-off-by: David King <davidk@openismus.com>
Peter Penz [Mon, 1 Mar 2010 11:53:16 +0000 (12:53 +0100)]
Provide icon for application
Peter Penz [Wed, 3 Mar 2010 10:17:57 +0000 (11:17 +0100)]
add version information to the about dialog
David King [Tue, 2 Mar 2010 16:48:04 +0000 (17:48 +0100)]
Add some missing documentation to QlomTable
David King [Tue, 2 Mar 2010 13:38:24 +0000 (14:38 +0100)]
Change some coding style in QlomListLayoutModel
David King [Tue, 2 Mar 2010 13:37:27 +0000 (14:37 +0100)]
Add QlomTable member to QlomListLayoutModel
David King [Tue, 2 Mar 2010 12:53:46 +0000 (13:53 +0100)]
Store a list of QlomTables in the QlomTablesModel
David King [Mon, 1 Mar 2010 14:20:49 +0000 (15:20 +0100)]
Fix use of QPointer and QDialog in QlomDocument
David King [Mon, 1 Mar 2010 13:57:55 +0000 (14:57 +0100)]
Fix a TODO in the MainWindow file open dialog
David King [Mon, 1 Mar 2010 13:55:10 +0000 (14:55 +0100)]
The table list back button does not need to be a member
Michael Hasselmann [Fri, 26 Feb 2010 16:55:16 +0000 (17:55 +0100)]
Code cleanup: use signals instead of non-const ref returns
* src/document.[h|cc], src/gui/main_window.cc: Replace the non-const ref return
of QlomDocument's errorReporter() with a signal, errorRaised. This signal
forwards signal emission from the internal error reporter (reported by Peter
Penz).
Michael Hasselmann [Fri, 26 Feb 2010 16:36:00 +0000 (17:36 +0100)]
Code cleanup: Adapt to Qt coding style
* src/layout_delegates.cc: Cleaned up inconsistent ctor styles as well as
conditional blocks.
Michael Hasselmann [Fri, 26 Feb 2010 16:28:27 +0000 (17:28 +0100)]
Code cleanup: Make ctor consistent
Michael Hasselmann [Fri, 26 Feb 2010 16:26:09 +0000 (17:26 +0100)]
Fix nullptr access when opening files
* src/gui/main_window.cc (fileOpenTriggered): Fixed a nullptr access which
could lead to a crash if the modal dialog was deleted elsewhere. Also added
more comments and the relevant blog comment link.
Michael Hasselmann [Fri, 26 Feb 2010 16:08:00 +0000 (17:08 +0100)]
Code cleanup: Initialize members in QlomMainWindow ctors
* src/gui/main_window.[h|cc]: Initialize members in both ctors. Prefix members
with the*, as it is done in other classes. Marked errorDomainLookup() as const.
Peter Penz [Thu, 25 Feb 2010 14:48:40 +0000 (15:48 +0100)]
Check for availability of QPSQL or SQLite
David King [Thu, 25 Feb 2010 11:01:24 +0000 (12:01 +0100)]
Split QlomListView from QlomMainWindow
Peter Penz [Thu, 25 Feb 2010 10:06:49 +0000 (11:06 +0100)]
prevent drawing of grid lines
Michael Hasselmann [Wed, 24 Feb 2010 17:03:13 +0000 (18:03 +0100)]
Added column stretching and tried to disable the table grid
Peter Penz [Wed, 24 Feb 2010 15:26:25 +0000 (16:26 +0100)]
use alternating colors for tables
David King [Wed, 24 Feb 2010 16:09:49 +0000 (17:09 +0100)]
Add a combo box to the layout view, to switch between tables
Peter Penz [Wed, 24 Feb 2010 15:55:45 +0000 (16:55 +0100)]
Fix layout issues with stacked widget view
David King [Wed, 24 Feb 2010 15:47:39 +0000 (16:47 +0100)]
Add non-functional QStackedWidget support to QlomMainWindow
After much fiddling, I still cannot get the stacked widget to respond to
mouse events (although keyboard events seem to work). The rendering bugs
are also interesting.
Michael Hasselmann [Thu, 4 Feb 2010 11:59:00 +0000 (12:59 +0100)]
Weaken the primary key assumption for the placeholder column in the query builder
Michael Hasselmann [Wed, 3 Feb 2010 16:54:24 +0000 (17:54 +0100)]
Hide the QlomModelIndexObject from the delegate's buttonPressed signal
Michael Hasselmann [Wed, 3 Feb 2010 15:46:18 +0000 (16:46 +0100)]
Added sortable columns
* src/list_layout_model.cc: Sorting by a column means re-quering the database,
completely bypassing the extra setup of our model. Since we added an extra
column *after* executing the query, the sorting mechanism is not aware of
that extra column, hence it would get lost on sorting. The work-around here
is to query a place-holder field when building the query which can then be
used for the actions column by the view. The basic idea was that the model's
column count is not allowed to change once plugged into a view.
* src/layout_delegates.[h|cc]: Silence the text output for button delegates,
regardless what is contained in the model at the given index.
* src/gui/main_window.[h|cc]: Implement sortable columns.
Michael Hasselmann [Fri, 29 Jan 2010 14:32:05 +0000 (15:32 +0100)]
Move the delegate creation into the new QlomListView, away from the model
Michael Hasselmann [Fri, 29 Jan 2010 11:34:00 +0000 (12:34 +0100)]
Show a message box when the details button was clicked
Michael Hasselmann [Fri, 29 Jan 2010 11:33:15 +0000 (12:33 +0100)]
Propagate button clicks via QSignalMapper, so that we can add the model index
Michael Hasselmann [Thu, 28 Jan 2010 16:42:40 +0000 (17:42 +0100)]
Fixed an off-by-one indexing error when inserting the buttons
Michael Hasselmann [Thu, 28 Jan 2010 16:33:35 +0000 (17:33 +0100)]
Use Q_ASSERT instead of Q_CHECK_PTR
Michael Hasselmann [Thu, 28 Jan 2010 16:07:22 +0000 (17:07 +0100)]
Force the QSqlTableModel to finish its read transaction
Michael Hasselmann [Thu, 28 Jan 2010 14:14:40 +0000 (15:14 +0100)]
Allow the delegate button to take a string parameter for the label
Michael Hasselmann [Thu, 28 Jan 2010 13:50:59 +0000 (14:50 +0100)]
Adapt to new QlomButtonDelegate
Michael Hasselmann [Thu, 28 Jan 2010 13:49:26 +0000 (14:49 +0100)]
Added a button delegate that can be used to create widgets in a view ad-hoc
Michael Hasselmann [Thu, 28 Jan 2010 12:38:23 +0000 (13:38 +0100)]
Insert a button column ("edit"), although it will only work for the first 256 rows
Michael Hasselmann [Thu, 28 Jan 2010 12:37:36 +0000 (13:37 +0100)]
Remove an unneeded qobject cast
Michael Hasselmann [Thu, 28 Jan 2010 11:00:02 +0000 (12:00 +0100)]
Refactor the creation of table models, to unify code paths
David King [Tue, 26 Jan 2010 16:41:48 +0000 (17:41 +0100)]
Remove the status bar from the main window
David King [Tue, 26 Jan 2010 16:41:23 +0000 (17:41 +0100)]
Update glom requirement to glom-1.14 >= 1.13.1
Michael Hasselmann [Fri, 22 Jan 2010 18:11:30 +0000 (19:11 +0100)]
Don't show hidden tables
Michael Hasselmann [Fri, 22 Jan 2010 18:03:52 +0000 (19:03 +0100)]
Add the flags from Glom's table info to QlomTable
Michael Hasselmann [Fri, 22 Jan 2010 17:31:53 +0000 (18:31 +0100)]
Query for Glom's TableInfo, not just a list of table names
Michael Hasselmann [Thu, 21 Jan 2010 18:08:56 +0000 (19:08 +0100)]
Allow static text items again
Michael Hasselmann [Thu, 21 Jan 2010 18:02:39 +0000 (19:02 +0100)]
Allow text layout items to store their static contents
Michael Hasselmann [Thu, 21 Jan 2010 16:38:10 +0000 (17:38 +0100)]
Added a logic error domain
Michael Hasselmann [Thu, 21 Jan 2010 12:46:12 +0000 (13:46 +0100)]
Fixed column headers
Michael Hasselmann [Fri, 15 Jan 2010 18:07:15 +0000 (19:07 +0100)]
Remove the Qlom QueryBuilder
Michael Hasselmann [Fri, 15 Jan 2010 17:17:01 +0000 (18:17 +0100)]
Wrap Glom's query building
* src/glom_list_layout_model.[h|cc] (ctor, buildQuery): Wrap
Glom::Utils::build_sql_select_with_where_clause() but it breaks static text
support in Qlom (I currently have no idea how to replace that). Also, I am
not entirely sure that escaping works.
Murray Cumming [Tue, 26 Jan 2010 08:40:23 +0000 (09:40 +0100)]
GlomConnectionDialog: Start with focus in the password entry.
Michael Hasselmann [Thu, 21 Jan 2010 12:06:35 +0000 (13:06 +0100)]
Added the Qlom "namespace" to the ConnectionDialog class
Michael Hasselmann [Thu, 21 Jan 2010 11:56:29 +0000 (12:56 +0100)]
Added a default Doxygen file for now
David King [Tue, 19 Jan 2010 13:36:44 +0000 (14:36 +0100)]
Disable editing of the view, as the models do not support editing
David King [Tue, 19 Jan 2010 13:05:15 +0000 (14:05 +0100)]
Rename Glom* classes to Qlom*, and remove prefixes from filenames
Michael Hasselmann [Fri, 15 Jan 2010 13:39:22 +0000 (14:39 +0100)]
Kill an unneeded recursion when loading Glom documents
Michael Hasselmann [Fri, 15 Jan 2010 11:49:54 +0000 (12:49 +0100)]
Don't rely on defaults for QLocale's group separators
Michael Hasselmann [Fri, 15 Jan 2010 11:18:56 +0000 (12:18 +0100)]
The ErrorReporter's raiseError is not used as a slot, updated
Michael Hasselmann [Thu, 14 Jan 2010 11:51:03 +0000 (12:51 +0100)]
Use Glom's default precision for its numeric type
Michael Hasselmann [Thu, 14 Jan 2010 12:57:58 +0000 (13:57 +0100)]
Fixed trailing whitespaces
Murray Cumming [Thu, 14 Jan 2010 10:56:04 +0000 (11:56 +0100)]
Revert "Revert "main(): Check for a QtSQL database driver.""
The comment in the code explains why the check is in main().
This is based on the premise that all versions of Qlom should
support PostgreSQL-based .glom files (the default), so a user
would experience hard-to-understand problems if allowed to get
past this point. Glom has the same check (for libgda providers).
This reverts commit
c4e051894b34c459c6e6d11824d78234cddbcfc0.
Michael Hasselmann [Wed, 13 Jan 2010 17:32:59 +0000 (18:32 +0100)]
Fix column aliasing bug when using joins
David King [Wed, 13 Jan 2010 15:05:49 +0000 (16:05 +0100)]
Revert "main(): Check for a QtSQL database driver."
This reverts commit
7a9002fc76f3fde5981df481b4e21dd495459ffb. This must
be handled on the loading of a particular document type, not in main().
Murray Cumming [Tue, 12 Jan 2010 13:22:49 +0000 (14:22 +0100)]
Use qPrintable() to simplify code.
Murray Cumming [Tue, 12 Jan 2010 10:38:54 +0000 (11:38 +0100)]
GlomDocument: Reshow the connection dialog until it is cancelled.
* src/connection_dialog.[h|cc]: Added connectionWasSuccessful()
instead of abusing the Rejected exec() result as a failed connection
instead of just a user cancellation. Only call done() with Rejected
when the user cancelled.
* src/glom_document.cc: loadDocument(): Keep reshowing the connection
dialog until the user explicitly cancels it.
* createDefaultTableListLayoutModel(): Show the first non-hidden
table if no default table was specified.
Murray Cumming [Tue, 12 Jan 2010 10:13:00 +0000 (11:13 +0100)]
QlomError: Initialize all member variables.
Murray Cumming [Tue, 12 Jan 2010 09:35:19 +0000 (10:35 +0100)]
ConnectionDialog: Try a range of ports, like Glom.
Murray Cumming [Tue, 12 Jan 2010 08:51:02 +0000 (09:51 +0100)]
ConnectionDialog: Use the correct server port.
Murray Cumming [Mon, 11 Jan 2010 10:26:15 +0000 (11:26 +0100)]
GlomDocument::loadDocument(): Check that the file exists.
Murray Cumming [Mon, 11 Jan 2010 10:05:31 +0000 (11:05 +0100)]
MainWindow: default constructor: Intialize valid.
Murray Cumming [Mon, 11 Jan 2010 09:47:43 +0000 (10:47 +0100)]
Show command-line usage when document loading fails.
* src/qlom.cc: main(): Show the command-line usage if something fails,
to give the user a clue about how to get things right.
* src/gui/main_window.[h|cc]:
receiveError: Call QApplication::exit() instead of exit(),
which should allow main() to continue, to show the command-line
usage. That is still not ideal, and for some reason it doesn't, so:
Add an isValid() member, allowing main() to know if the
constructor worked, so it can show the command-line usage if it fails.
* src/qlom_document.h: loadDocument(): Document the filepath as
an absolute filepath.
* src/qlom_error.h: Add a TODO noting that severity is not useful in an
an exception, because it is for the catcher to decide, not the thrower.
Murray Cumming [Mon, 11 Jan 2010 08:55:11 +0000 (09:55 +0100)]
MainWindow: Remove superfluous successful startup message.
Murray Cumming [Sat, 9 Jan 2010 17:44:03 +0000 (18:44 +0100)]
main(): Check for a QtSQL database driver.
Because we can't check at configure time.
Murray Cumming [Sat, 9 Jan 2010 14:07:10 +0000 (15:07 +0100)]
README: Small change to see if I can push.
Michael Hasselmann [Fri, 8 Jan 2010 14:12:19 +0000 (15:12 +0100)]
Fixed the custom painting partially
Michael Hasselmann [Fri, 8 Jan 2010 14:11:00 +0000 (15:11 +0100)]
Switched to outer joins to show lost records
Michael Hasselmann [Thu, 7 Jan 2010 21:03:56 +0000 (22:03 +0100)]
Added currency symbols, check type for display text
Michael Hasselmann [Wed, 6 Jan 2010 16:13:04 +0000 (17:13 +0100)]
Add Glom::LayoutItem_Field details (a Glom::Field) to style delegates
* src/glom_layout_delegates.[h|cc], src/glom_list_layout_model.h: For numeric
formatting it became necessary to look up the original Glom field type, or
else string columns could be accidentially treated as Glom numerics.
Michael Hasselmann [Wed, 6 Jan 2010 14:41:57 +0000 (15:41 +0100)]
Implemented thousands separators
* src/glom_layout_delegates.[h|cc] (applyNumericFormatting): This method uses
QLocale for numeric conversions. Turns out it can be mapped to Glom's numeric
conversions quite easily. Also replaced the trailing-zero hack with this
commit.
Michael Hasselmann [Thu, 31 Dec 2009 14:55:41 +0000 (15:55 +0100)]
Implemented custom painting, needed for colors
* src/glom_layout_delegates.[h|cc]: The initial attempt to forward a modified
QPainter & QStyleOption context to the QStyledItemDelegate default
implementation did not work for modifying colors. Perhaps there is a better
way, but currently the painting is handled by GlomFieldFormattingDelegate's
paint() method itself, without calling the overridden paint method.
Michael Hasselmann [Thu, 31 Dec 2009 13:12:34 +0000 (14:12 +0100)]
Let the view iterate over the model's columns and fetch the appropiate style delegates
Michael Hasselmann [Thu, 31 Dec 2009 13:06:54 +0000 (14:06 +0100)]
Added the possibility to query Qt style delegates for each layout item
* src/glom_list_layout_model.[cc,c] (createDelegateFromColumn): Certain layout
items might have a custom formatting. The formatting can be mapped in Qt
views by using QStyledItemDelegates that need to be installed into the view,
one per column or row. This method construct the appropiate style delegate
for the Glom layout item that is displayed in the queried column.
Michael Hasselmann [Thu, 31 Dec 2009 13:02:48 +0000 (14:02 +0100)]
Changed delegate design so that it maps with FieldFormattings
* src/glom_layout_delegates.[h|cc]: Instead of having one delegate for each
field type the design was changed to have one delegate for each layout item
that offers custom formatting (that is, features a get_formatting_used()
method).
David King [Thu, 17 Dec 2009 16:32:57 +0000 (17:32 +0100)]
Use QPointers with modal dialogs to prevent crashes