Commit Graph

61 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
0c3109e2d3 * TocWidget.cpp:
- improve performance with Outliner open with Qt >= 4.3 by using native methods instead of home-brewn code.
	  This should especially pay off on the Mac, if the Outliner shows as a drawer (bug 4443).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28432 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 08:32:34 +00:00
Pavel Sanda
887ba34eeb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5767
(disabled keep&sort buttons on ToC in readonly mode)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 23:45:17 +00:00
Jürgen Spitzmüller
72dc5352dd * TocWidget: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28024 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 14:49:40 +00:00
André Pönitz
1fc477efac thrid attempt at changing the naming pattern of the intermediated 'mocced' files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27420 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 14:28:50 +00:00
Abdelrazak Younes
7e6af45b0d Fix http://bugzilla.lyx.org/show_bug.cgi?id=5491 without reintroducing http://bugzilla.lyx.org/show_bug.cgi?id=5409 . The first part of r27162 was enough for fixing it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 14:28:44 +00:00
Abdelrazak Younes
0b0f0942c0 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5409
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 06:46:27 +00:00
Pavel Sanda
194f14bf65 Fix the worst part of http://bugzilla.lyx.org/show_bug.cgi?id=5409 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 14:54:53 +00:00
Pavel Sanda
2ca370b135 Add persistent view switch to the outliner.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144343.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 15:00:43 +00:00
Abdelrazak Younes
5ce39aa8b5 Add a "List of Changes" in the Navigator. The list is updated only when the document structure is reset or when the update button is clicked. Some work is needed to track more finely individual changes as we do for sections.
Changes::addToToc(): New method to insert changes sorted by authors. The symbols 0x2702 and 0x270d are used to represent deletion and insertion.

TocBackend::item(): new method to lookup for a given item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 11:06:34 +00:00
Abdelrazak Younes
9388404c88 TocWidget::updateView(): only set the tree depth if there's a model reset. This is to avoid node collapsing when simply editing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:59:33 +00:00
Abdelrazak Younes
5cfe7daadb TocWidget: disable the tree view during an update in order to minimize a bit the flashing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 07:18:24 +00:00
Abdelrazak Younes
4b8f0d359c Add a new 'Sort' box to the Navigator so that each list can be optionally sorted.
* TocModel: redesign so that sorted list are available.
* TocWidget/TocUi: handle the new Sort check box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 17:14:29 +00:00
Pavel Sanda
0cd57df397 Revert unwanted part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26361 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:11:07 +00:00
Pavel Sanda
9ebf6bf506 Depth slider in Outliner is not automatically set at init and after closing last file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26360 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:04:42 +00:00
Pavel Sanda
c1173eb11c Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:18:33 +00:00
Abdelrazak Younes
168a26b763 fix critical part of http://bugzilla.lyx.org/show_bug.cgi?id=5082
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 10:33:02 +00:00
Abdelrazak Younes
ad68145492 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4941
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25323 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 13:35:19 +00:00
Abdelrazak Younes
cd877a3919 move a loc to where it's useful.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:49:14 +00:00
Abdelrazak Younes
81bc06db34 Navigator:
- some cleanup in TocWidget
- fix Read-only document navigation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:44:14 +00:00
Abdelrazak Younes
6ad1b1cd09 General cleanup of the Outline/Navigator:
- Make use the Qt Model/View separation concept, TocWidget is now really just a view of the current toc model.
- the toc type combo now use a model defined in TocModels.
- the models are not deleted at each reset, they are now just cleared out.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25289 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 15:10:03 +00:00
André Pönitz
5791f8a894 cosmetics; compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25239 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:46:46 +00:00
Abdelrazak Younes
158863fd3b TocWidget: Small reorg in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=4940
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 18:13:14 +00:00
Abdelrazak Younes
8d93f5173f forgot that one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25009 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:23:15 +00:00
Abdelrazak Younes
9558962c4f Reset the focus on the work area after using on any navigator gui control.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:13:42 +00:00
Abdelrazak Younes
1d3fcde7f7 Code simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:59:57 +00:00
Abdelrazak Younes
655f696612 set the focus on the work area after clicking on a navigator item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25005 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:33:24 +00:00
Abdelrazak Younes
ef3b045378 add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24813 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:08:09 +00:00
Abdelrazak Younes
0d61832d22 simplify navigator. Get rid of the selectionModel() based navigation as this was too buggy. The tree now react to 'clicked' and activated signal. Changing a selection with the keyboard won't trigger a cursor jump, the user will have to hit 'Enter' for that. This is a ui change that probably needs to be documented (if it was already).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24812 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:03:53 +00:00
Abdelrazak Younes
ffa722e0b7 Cleanup Toc dialog and GuiView interaction. The toc models are now part of GuiView. The TocWidget is just a view of this model.
* GuiView::tocModel(): new method to access the toc models.
* TocModels: new class with code transferred from GuiToc.
* TocWidget: only needs a TocModels reference.

Thoughts:
- We should find a way to get rid of GuiToc.{c,h}
- tocModels() should perhaps be transferred to GuiWorkArea instead of GuiView in order to have Buffer dependent navigators.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 12:09:51 +00:00
Abdelrazak Younes
bf27334cfa Some dialog consistency work:
* Dialog::updateData(): try to reset the dialog even if there's no Buffer.
* GuiView::updateBufferDependent():
- renamed to updateDialogs()
- don't hide when there's no current work area, try to disable instead.
- now also take care of toolbars and other elements. 
* TocWidget: delay item selection to avoid unwanted node collapsing after setting a new model.

Expect crash and/or assertions for dialogs that are not ready for this non-hiding change. I will fix them iteratively.
There are still too many dialogs updates going on...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 22:24:20 +00:00
André Pönitz
e8f16a9bcb frontend cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:39:52 +00:00
Pavel Sanda
bddf480792 Comments from Andre'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23463 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 21:45:54 +00:00
Pavel Sanda
6b2d20c8a6 ToC tree redrawing after resets.
http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 12:39:03 +00:00
Abdelrazak Younes
6a877dfc1a Try to restore current selected type in case of a toc reset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22963 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:33:01 +00:00
Abdelrazak Younes
3256dbc78a GuiToc::initialiseParams(): Fix list type parsing
TocWidget::updateGui(): Fix for non existent list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:32:40 +00:00
Abdelrazak Younes
8c73b3d2ce simplify GuiToc / TocWidget interaction. Much can still be simplified...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:47:16 +00:00
Abdelrazak Younes
6bb94129d8 Factorize out the way window titles are handled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22784 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 12:43:19 +00:00
Abdelrazak Younes
9abb7db468 getting rid of superfluous std:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
André Pönitz
9d0ea8aeff Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
Now support/* should have no dependencies on src/* anymore.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:04:28 +00:00
André Pönitz
7c108afd14 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21837 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 22:19:36 +00:00
André Pönitz
e1ce2f92db reduce line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 20:04:51 +00:00
André Pönitz
33e397dff8 use "real" resources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21007 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 18:28:45 +00:00
André Pönitz
f5eb303b4b next one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20801 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 20:54:31 +00:00
André Pönitz
e117f67786 next one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20800 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 20:35:44 +00:00
Abdelrazak Younes
9e3823945a Restore docked outline widget. Warning: still instable!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20147 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-08 17:28:14 +00:00
André Pönitz
c9ea6e6eef the fun begins....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 20:33:29 +00:00
André Pönitz
9a95d2a936 rename a few view functions from foo() to fooView()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-03 20:28:26 +00:00
André Pönitz
a1cec91afa move our stuff off the Q* namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19935 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 05:53:55 +00:00
André Pönitz
f82c3e8e65 xpm -> png
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19922 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 20:09:12 +00:00
André Pönitz
6d5a52b8e3 implement --enable-monolithic-{client,frontend-qt4,controllers}. Careful with frontend-qt4, it takes ~490 MB to build (but 3 instead of 8 minutes...)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19641 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-19 09:44:34 +00:00