Richard Heck
c127d83b66
A little cleanup while perusing TocWidget....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33583 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 19:48:20 +00:00
Jürgen Spitzmüller
23a58c0214
* TocWidget.{cpp,h}:
...
* TocWidgetUi.ui:
- add filter bar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33457 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-13 08:30:16 +00:00
Abdelrazak Younes
377cdd5f6c
Transfer LyXfunc code to GuiApplication::dispatch() and getStatus(). Now
...
a lot of simplification is possible. Except some instability period...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 16:11:13 +00:00
Abdelrazak Younes
d38ca04ff7
Move Undo::beginUndoGroup() and Undo::endUndoGroup() calls to where they are used and necessary, hopefully.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-03 19:12:21 +00:00
Vincent van Ravesteijn
067e770bfe
Disable the TOC when no document is open.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31308 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 13:07:24 +00:00
Abdelrazak Younes
184345e4e7
* GuiView: get rid of Buffer() and documentBuffer() access.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:09:45 +00:00
Abdelrazak Younes
722d8c757b
* LyXView:
...
- view() -> currentBufferView()
- add const access to bufferViews.
* GuiView.h: cleanups
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31286 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 14:29:11 +00:00
Jürgen Spitzmüller
3ec9ac5ff5
* TocWidget.cpp: disable sort option for TOC (bug 5983).
...
* TocModel.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30760 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 13:58:02 +00:00
Richard Heck
cde33577df
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30051 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-11 21:13:41 +00:00
Vincent van Ravesteijn
60b26d1aac
Fix the copy label as ref for equations from the context menu.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29754 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-20 23:58:29 +00:00
Vincent van Ravesteijn
7bf0d804e7
Add "Select Section" to outliner context menu.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29520 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 19:16:00 +00:00
Vincent van Ravesteijn
f4c0f80857
Add outline-in/out/up/down to the outline context menu.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29516 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 16:06:00 +00:00
Vincent van Ravesteijn
69d2e076dc
Add accept/reject change to the context menu of the toc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29480 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 17:55:26 +00:00
Vincent van Ravesteijn
61e32e1c25
Fix some toc ui glitches:
...
- revert r26360, because this causes irritating flickering, and reset the slider in updateView instead,
- disable also the sort checkbox and the slider when the list and combobox are disabled,
- disable the keep checkbox when the type is not navigatable, as it doesn't make sense to keep something that won't change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29477 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 16:03:06 +00:00
Vincent van Ravesteijn
ee4e7db35e
Add context menus to the toc for child-documents, listings and indices.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29319 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 18:53:39 +00:00
Vincent van Ravesteijn
86392456e8
Implement the getStatus mechanism for the context menu of the toc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 11:43:13 +00:00
Vincent van Ravesteijn
4b6a802398
Add context menus to the Toc for labels(settings), branches, graphics, citations, figures, tables.
...
This is now possible because we can dispatch all the necessary LFUNs to the insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29177 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:42:24 +00:00
Pavel Sanda
d47e87f92f
Compil fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29172 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 23:36:34 +00:00
Vincent van Ravesteijn
80ee77ff85
TOC context menu (part 4)
...
* TocWidget: Relay the LFUNs to the appropriate inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:51:07 +00:00
Vincent van Ravesteijn
2cd997962c
Leave handling of LFUN_COPY_LABEL_AS_REF to InsetLabel and move handling of LFUN_INSERT_LABEL_AS_REF also to InsetLabel.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:31:17 +00:00
Vincent van Ravesteijn
49fb2980eb
TOC context menu (part 3)
...
* TocWidget: Deconstify cur in doDispatch because I need a non-const Cursor when dispatching to Insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:24:28 +00:00
Vincent van Ravesteijn
df3cddcd37
Add "Insert label as reference" to the context menu of the TOC.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29157 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 22:03:28 +00:00
Vincent van Ravesteijn
695870771f
Add "Copy label as reference" to context menu of the TOC.
...
(Note: it is not perfect yet for references in the same model as the labels).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29156 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 21:40:42 +00:00
Vincent van Ravesteijn
a465fcb55e
TOC context menu (part 2)
...
* TocWidget: add context menu to toc.
* Menus: specify origin of cmd.
* GuiView: if cmd coming from toc, dispatch to GuiToc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29155 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 21:06:58 +00:00
Vincent van Ravesteijn
f7f24a2709
TOC context menu (part 1): Only scroll the document to the item when the user left-clicks on the item.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29154 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 17:39:14 +00:00
Pavel Sanda
5806be1528
Fix bug http://www.lyx.org/trac/ticket/5812
...
(Icons replacement broken)
Patch from Martin Engbers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29057 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 17:00:09 +00:00
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