From 7488ad52d7aa0941ec09757240acc3f542b3832a Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Thu, 28 Feb 2013 20:07:03 +0100 Subject: Add new dialog to Query Design View In Query Properties Dialog can be set properties like distinct values and limit. To open choose Edit\Query Properties. Steps of implementation: - Add new slot to Edit menu (menubar.xml): delete the slot of distinct values, because it can set in this dialog too - Separate LimitBox class from limitboxcontroller.cxx (LimitBox.hxx\cxx) With it only LimitBox header is included in the dialog source. - Extend LimitBox class to work with new layout widget (make... and GetOptimalSize()) and add it to the galde catalog - Make a class for the new dialog (QueryPropertiesDialog.hxx\cxx) and write the .ui file. (querypropertiesdialog.ui) - Syncronize the two LimitBox (querycontroller.cxx) Change-Id: Ib84bef5a2ed55030333d6151342b99ff27766538 --- dbaccess/uiconfig/ui/querypropertiesdialog.ui | 247 ++++++++++++++++++++++++++ 1 file changed, 247 insertions(+) create mode 100644 dbaccess/uiconfig/ui/querypropertiesdialog.ui (limited to 'dbaccess/uiconfig/ui/querypropertiesdialog.ui') diff --git a/dbaccess/uiconfig/ui/querypropertiesdialog.ui b/dbaccess/uiconfig/ui/querypropertiesdialog.ui new file mode 100644 index 000000000000..5119ff0d5035 --- /dev/null +++ b/dbaccess/uiconfig/ui/querypropertiesdialog.ui @@ -0,0 +1,247 @@ + + + + + + False + 6 + Query Properties + True + dialog + + + False + vertical + 2 + + + False + end + 24 + + + gtk-ok + False + True + True + True + True + True + False + True + + + False + True + 0 + + + + + gtk-cancel + False + True + True + True + True + False + True + + + False + True + 1 + + + + + gtk-help + False + True + True + True + False + True + + + False + True + 2 + + + + + False + True + end + 0 + + + + + True + False + True + True + 0 + none + + + True + False + True + True + 6 + 12 + + + True + False + 12 + + + True + False + 12 + + + True + False + start + Distinct Values + distinct-buttons + + + 0 + 0 + 1 + 1 + + + + + True + False + start + + + Yes + False + True + True + False + False + 0 + True + + + False + True + 0 + + + + + No + False + True + True + False + False + 0 + True + distinct + + + False + True + 1 + + + + + 1 + 0 + 1 + 1 + + + + + 0 + 0 + 1 + 1 + + + + + True + False + 24 + + + True + False + start + Limit + limitbox + + + 0 + 0 + 1 + 1 + + + + + True + False + True + + + 1 + 0 + 1 + 1 + + + + + 0 + 1 + 1 + 1 + + + + + + + + + True + False + Properties: + + + + + + + + False + True + 1 + + + + + + ok + cancel + help + + + -- cgit