Commit Graph

8 Commits

Author SHA1 Message Date
Zolnai Tamás
00eafaa949 fix limit bug: selecting "All" has no effect to sql
LimitBox set its value to -1 if the current
text is "All" but just when it loses its focus
so dispatching its value to the controller
 must be after this setting.
(see limitboxcontroller.cxx)

Plus some clean up in LimitBox.cxx

Change-Id: Ic1d314a5a67c2b261b2e9c50973f51de2bfb8db8
2013-06-14 09:45:38 +02:00
Noel Grandin
86fdce6011 fdo#46808, Convert svt::ToolboxController to XComponentContext
.. and all of it's friends

Change-Id: I408d9308d1d1a4f8ed0055ac5f4042d729c44d1e
2013-04-08 13:53:03 +02:00
Zolnai Tamás
8885dc27da Make allow to step on from LimitBox with tab
Change-Id: I5f2994459cbb7786e6c9d83b0894cb581f4560fd
2013-03-09 12:13:45 +01:00
Zolnai Tamás
4c52c8bd73 fdo#61794 Allow greater value in LimitBox
Increase the width of LimitBox
*on toolbar: 6 digits
*in dialog: 10 digits
Set maximum value of LimitBox to the max value of Int32

Change-Id: I6fcf0270b474eb46a29ff98ade9cd7ee8ba637f5
2013-03-09 11:59:21 +01:00
Zolnai Tamás
33933867b0 fdo#61797 ESCape abort changes and grab focus
Handling of hitting enter or escape are only
usefull for toolbar element.
In a dialog these keys have other meanings
(close the dialog with/without saving)

Change-Id: Ifbe5d36daab9c0702b888a58403dc170082fc32d
2013-03-09 08:20:51 +01:00
Zolnai Tamás
7488ad52d7 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
2013-03-04 19:33:16 +01:00
David Ostrovsky
9058b52c50 fix WaE
Change-Id: I1bbac4de97866695bf73e25977af8306014325fc
2013-02-26 08:48:51 +01:00
Zolnai Tamás
9a471b8cd8 Database: Add Limit in Query Desing View
Levels of implementation
 - Add a new toolbar item to ui (designobjectbar.xml)
 - Make a control for this element( LimitBox: derived from NumericBox)
 - Make an own controller for this control (LimitBoxController) and
   register it
 - Add new feature to the general\central controller (OQueryController)
   and construct a communication channel between the two controller
 - Modify the view switching (SQL<->Design) methods to use\set limit
   value (QueryDesignView.cxx)

Conflicts:
	dbaccess/source/ui/querydesign/QueryDesignView.cxx

Change-Id: I0eb09d1d40cfdb9b8a2a57ab8911faca91d5e690
Reviewed-on: https://gerrit.libreoffice.org/1994
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-02-25 20:04:03 +00:00