Commit Graph

5162 Commits

Author SHA1 Message Date
Abdelrazak Younes
d4e9968494 Compile fix by Kornel Benko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23051 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 09:44:02 +00:00
Abdelrazak Younes
2bf1c09376 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:14:42 +00:00
Abdelrazak Younes
ba76bf5eb8 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23048 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:47:04 +00:00
Abdelrazak Younes
9f3c7cf1ea Factorize closeEvent() for GuiDialog based dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23045 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:16:14 +00:00
Jürgen Spitzmüller
ebc4649508 Fix a crash following the input of an invalid paragraph separation value in the document settings dialog (bug 4556).
* src/frontends/qt4/GuiDocument.cpp:
	- disallow input of defskip length without actual length value.

* src/BufferParams.cpp (readToken):
	- there might be documents with the invalif "\defskip defskip" param. Reset this to "\defskip medskip".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:13:05 +00:00
Abdelrazak Younes
17efe15322 Outliner: Fix synchronous navigation for all types.
* GuiToc::currentIndex(): remove FIXME


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23016 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:50:35 +00:00
Abdelrazak Younes
f1c4a07544 Add list of numbered equations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23013 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:09:35 +00:00
Richard Heck
85deaeb165 Get rid of GuiIndex since we no longer need it. Simplify the remaining code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 18:06:47 +00:00
Abdelrazak Younes
15ff669dd0 factorize code between GuiFontMetrics::rectText() and buttonText().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 09:44:12 +00:00
Abdelrazak Younes
9e4780ffd8 * buttonText(): painting tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 08:49:45 +00:00
Richard Heck
14d7b57487 Cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 07:10:12 +00:00
Richard Heck
485478e47c Do not inherit from std::map.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22993 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:00:54 +00:00
Abdelrazak Younes
eb8468994f Add list of Marginal Notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22976 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 13:33:56 +00:00
Abdelrazak Younes
6c14a1c406 Add list of Indexes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 13:19:39 +00:00
Richard Heck
040f3431e7 Fix bug 4037 and related problems. The patch has been cleaned up a bit
from the one posted to the list.

The basic idea has two parts. First, we hard code an "empty layout"
(called PlainLayout, for want of a better name) in TextClass and read it
before doing anything else. It can therefore be customized by classes,
if they want---say, to make it left-aligned. Second, InsetText's are
divided into three types: (i) normal ones, that use the "default" layout
defined by the text class; (ii) highly restrictive ones, such as ERT and
(not quite an inset) table cells, which demand the empty layout; (iii)
middling ones, which default to an empty layout and use the empty layout
in place of the default. (This is so we don't get the same problem we
had with ERT in e.g. footnotes.) The type of inset is signaled by new
methods InsetText::forceEmptyLayout() and InsetText::useEmptyLayout().
(The latter might better be called: useEmptyLayoutInsteadOfDefault(),
but that's silly.) The old InsetText::forceDefaultParagraphs() has been
split into these, plus a new method InsetText::allowParagraphCustomization(). 
A lot of the changes just adapt to this change.

The other big change is in GuiToolbar: We want to show LyXDefault and
the "default" layout only when they're active.

There are a handful of places where I'm not entirely sure whether we
should be using forceEmptyLayout or !allowParagraphCustomization() or
both. The InsetCaption is one of these. These places, and some others,
are marked with FIXMEs, so I'd appreciate it if people would search
through the patch and let me know whether these need changing. If they
don't, the FIXMEs can be deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 17:31:07 +00:00
Abdelrazak Younes
0aa490a705 * GuiView::event(): ensure current workarea has the focus on window activation. This prevents document jumps when the outline panel previously had the focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:44:45 +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
5c3f36a25e Support for list of Algorithms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 08:58:32 +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
a464490870 Fix crash with multiple window opening/closing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22952 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:23:44 +00:00
Pavel Sanda
a05f041470 ui-toggle lfun tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 23:52:25 +00:00
Abdelrazak Younes
7c38391754 Add list of notes and list of footnotes to the outline pane.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 13:06:01 +00:00
Abdelrazak Younes
f12126adbd headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 07:12:06 +00:00
Dov Feldstern
a9770a18cd Adding preference for visual mode for bidi cursor movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:51:23 +00:00
Jürgen Spitzmüller
a35ddd3264 * src/frontends/qt4/LyXFileDialog.cpp:
- explicitely set ShowHidden for hidden UNIX directories
	  (workaround for Qt bug, bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 11:50:10 +00:00
Abdelrazak Younes
3e293bb692 Handle full screen mode for all work areas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:29:15 +00:00
Abdelrazak Younes
b409db5d1c Introduce GuiWorkArea::setFullScreen()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:03:53 +00:00
Abdelrazak Younes
1ff60667a6 Put LFUN_UI_TOGGLE in its own method and add FIXMEs WRT multple workareas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:54:28 +00:00
Abdelrazak Younes
6cdf6bd6ab Support full screen in BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:20:23 +00:00
André Pönitz
24fdfc7d5e start work on less-likely-to-misuse iterators.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 15:23:05 +00:00
Pavel Sanda
74632f681e Unneeded headers, doxy cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 12:20:05 +00:00
Pavel Sanda
b9cf09838f Improve fullscreen capabilities ( http://bugzilla.lyx.org/show_bug.cgi?id=4146 ).
- adding frames, adding fullscreen switch.
- LFUN_MENUBAR_TOGGLE, LFUN_STATUSBAR_TOGGLE -> LFUN_UI_TOGGLE.

There are still limitations wrt Outlining in MAC OS - someone could check, 
see http://www.nabble.com/Fullscreen-mode-to15314676.html#a15367830 .




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22893 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 11:58:01 +00:00
Abdelrazak Younes
5b2625fdfe Disable alignment doesn't mean it's not possible (egg. readonly mode).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:11:11 +00:00
Stefan Schimanski
357b4f8603 * show context menu at the right position
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 23:51:30 +00:00
Abdelrazak Younes
c37588d374 simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:55:43 +00:00
Abdelrazak Younes
cb5859929f update controls upon window activation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:47:32 +00:00
Abdelrazak Younes
a67e5ab02b * Dialog::showView(): call checkStatus() after updateView() as some dialogs may re-enable some controls in updateView() (egg the paragraph dialog).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:25:59 +00:00
Jürgen Spitzmüller
9cb6ce57da * GuiSymbols.cpp:
- disable "display all" checkbox for utf8.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:13:06 +00:00
Jürgen Spitzmüller
369f14fa8e * GuiSymbols.{cpp,h}:
- cache symbols list (speedup).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:43:02 +00:00
Abdelrazak Younes
348bc2c599 Fix typo and remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:14:24 +00:00
Abdelrazak Younes
722023c413 Implement GuiParagraph::enableView() for readonly documents. Does not fully work yet as the paragraph alignment are not updated with cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22861 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:08:45 +00:00
Jürgen Spitzmüller
faf2f10824 * GuiSymbols.cpp:
- fix crash due to invalid ListWidgetItem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 13:06:44 +00:00
Jürgen Spitzmüller
92b41f3f98 * GuiSymbols.{cpp,h}:
- consider non-default document encodings.
	- only refresh categories when needed (speedup)
	- add tooltips.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 11:02:23 +00:00
Abdelrazak Younes
46e6cacfe0 Introduce toqstr(char_type) and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22857 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:49:22 +00:00
Abdelrazak Younes
e172898430 compil fix for Qt-4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:44:52 +00:00
Dov Feldstern
e4a1c73009 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 22:46:47 +00:00
Jürgen Spitzmüller
8e6c6e6678 * GuiSymbols.cpp: add another missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22850 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 20:29:14 +00:00
Jürgen Spitzmüller
ea039d6496 * GuiSymbols.cpp:
- fix thinko and ensure visibility on filter toggling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22849 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 18:29:45 +00:00
Jürgen Spitzmüller
78760c719f * src/frontends/qt4/ui/SymbolsUi.ui:
* src/frontends/qt4/GuiSymbols.{cpp,h}:
	- add an option to only display the glyphs of the selected category (= default)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:42:00 +00:00
José Matox
03fb3b0aec Patch to please gcc 4.3. Less bloat in the include headers means that
we need to include explicitly some header files now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22846 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:04:06 +00:00
Abdelrazak Younes
fadf8ba12e * GuiLayoutBox: fix initial readonly disabled state and small cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:46:19 +00:00
Abdelrazak Younes
b0349fd8ed Add missing header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:24:37 +00:00
Abdelrazak Younes
680480d699 Fix initial readonly enabling/disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:14:58 +00:00
Abdelrazak Younes
c43fc027bc * GuiSymbols: implement Dialog::getLfun()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22840 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:41:56 +00:00
Abdelrazak Younes
8fd83ab2dc Don't insert symbols in the edit box if the control is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22839 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:03:07 +00:00
Abdelrazak Younes
0d7c79db6d * some cleanups
* some compile fixes on Windows (char_type is not automatically casted to uint)
* take care of higher ucs4 characters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22838 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:44:17 +00:00
Jürgen Spitzmüller
d25c1d1066 * GuiSymbols.cpp: add missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:23:43 +00:00
Abdelrazak Younes
c76df07c4d remove unused macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:22:41 +00:00
Jean-Marc Lasgouttes
b21b3b346d * do not pass headers without Q_OBJECT through moc
* make sure Resource.* files are cleaned as needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22834 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:45:40 +00:00
Abdelrazak Younes
6a082a6d89 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22833 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:40:31 +00:00
Jürgen Spitzmüller
9bdca85f26 *** New Symbols Dialog ***
* src/Encoding.{cpp,h}:
	- new public member getSymbolsList()

* src/frontends/qt4/GuiSymbols.cpp:
* src/frontends/qt4/GuiSymbols.h:
* src/frontends/qt4/ui/SymbolsUi.ui
	- new files

* src/frontends/qt4/GuiView.cpp:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- add new dialog

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- menu item for symbols dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:18:07 +00:00
Abdelrazak Younes
c3890f1377 small code cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:51:49 +00:00
Abdelrazak Younes
d4068e14e8 The core is now clean enough that we don't need the NoGuiFontLoader/Metrics anymore...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22828 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:12:19 +00:00
Abdelrazak Younes
cb0e41adf7 revert reverted commit, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:12:48 +00:00
Abdelrazak Younes
6efd9002d5 revert wrong commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22823 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:10:34 +00:00
Abdelrazak Younes
7bfbeee612 Transfer FileDialog.h to qt4/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22821 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:05:18 +00:00
Abdelrazak Younes
e6519eb5f6 Transfer some GUI oriented code from core to frontend.
* lyxFunc:
- doImport(): transfered to GuiView::inportDocument() together with LFUN_BUFFER_IMPORT


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22820 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:54:13 +00:00
Abdelrazak Younes
8d99df0c93 Transfer some GUI oriented code from core to frontend.
* Application/GuiApplication:
- restoreGuiSession(): new method for session restoration.

* LyXView/GuiView
- loadDocument(): new pure virtual interface

* lyxFunc:
- loadAndViewFile(): transfered to GuiView::loadDocument()
- openDocument(): transfered to GuiView.

* LyX.h
- Impl::files_to_load_ : now a simple vector<string>.
- restoreGuiSession(): removed.
- execBatchCommands(): simplified and make use of Application::restoreGuiSession().



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:02:57 +00:00
Pavel Sanda
c2e397cdee Add LFUN_MENUBAR_TOGGLE and LFUN_STATUSBAR_TOGGLE.
This partly solves the bug http://bugzilla.lyx.org/show_bug.cgi?id=4146 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 17:54:04 +00:00
Jean-Marc Lasgouttes
049dea1eb1 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:49 +00:00
Jean-Marc Lasgouttes
98104d0e69 silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22791 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:20 +00:00
Abdelrazak Younes
c7a9ddab7a Move debug output to SCROLLING.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:26:22 +00:00
Stefan Schimanski
4a6a7fbe55 * GCC: "QString is an incomplete type"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:22:50 +00:00
Stefan Schimanski
ec88eb82f6 * The BufferView sets up its scrollbar data when it first gets its
actual size via a resize event. So make sure the GuiWorkArea also
  updates the GUI scrollbars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:17:05 +00:00
Abdelrazak Younes
3941b00ec7 Transfer forked process checking from GuiWorkArea to GuiApplication. I got rid of the general timer starting/stopping too. Looking a bit deeper I don't think it was necessary. We'll put them again in case it is needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:10:42 +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
8c27d557b9 * Dialog.cpp: whitespace
* DialogView: remove cruft.

* GuiDialog: add cruft and don't depend on DialogView as GuiDialog is meant for extinction eventually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:53:31 +00:00
Richard Heck
b4c37e82c1 Additional fixes related to disentangling the blinking cursor signal from other signals. Thanks to Abdel for pointing out the need for this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22779 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 00:37:30 +00:00
Abdelrazak Younes
dbfa1a6f46 cleanup DialogView based classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-04 17:06:34 +00:00
Stefan Schimanski
cf333f5ab4 * Support for graphics pasting (with most code in the frontend's GuiClipboard)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:43:03 +00:00
Richard Heck
d4a87d0dce Some comments about a better way to do things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 08:51:58 +00:00
Richard Heck
f8e11caef7 Silly mistake.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22759 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 07:46:45 +00:00
Richard Heck
122bbf4122 Clarify meaning of argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:50:42 +00:00
Richard Heck
86229bd788 Need to go ahead and start this guy....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22755 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:42:05 +00:00
Pavel Sanda
65c0ff6e6b Let the cursor blink frequency depend on qt settings.
Move checking of forked processes into independent timer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22749 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 03:05:54 +00:00
Uwe Stöhr
c39dd88087 Makefile.am: adjust for r22717
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 22:25:25 +00:00
Stefan Schimanski
fe348eb8b7 * The gui change for the mouse wheel speed setting. This includes the
renaming of the keyboard preferences pane into a input preferences pane.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:56 +00:00
Stefan Schimanski
dd3842505b * a configuration value for the mouse wheel scrolling speed:
lyxrc.mouse_wheel_speed 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:29 +00:00
Abdelrazak Younes
e55019967f Simplify scrolling code. Instead of using the actionTriggered() signal we now use valueChanged(). This has the advantage that we can possibly disable scrollbar tracking for low graphical performance systems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22709 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 12:54:23 +00:00
Abdelrazak Younes
1db3eb2113 GuiWorkArea::adjustViewWithScrollBar(): Fix slder to minimum and maximum. The problem was that when QAbstractSlider::actionTriggered() is emitted the scrollbar value is not changed, only its sliderPosition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22706 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 09:37:02 +00:00
Stefan Schimanski
21bf8063a0 * no box around the pixmap option anymore. So we disable the option directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 17:44:36 +00:00
Stefan Schimanski
13a7bdf6b8 * readd the tooltip for the pixmap cache option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22678 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:19:11 +00:00
Stefan Schimanski
2d830ab23b * move the Pixmap Cache check box where it belongs: screen fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:14:37 +00:00
Stefan Schimanski
5b46cbef1a * On Mac it's common to have tool windows which are always in the
foreground and are hidden when the main window is not
  focused. Moreover they are normally "auto applying".

  This patch implements this for the character and the paragraph
  dialog. These text propertied are implemented in major application like Apple
  Pages, OmniGraffle and others via inspectors or toolbars. Our "auto
  apply"-mode resembles these very well. So why not activate it and
  make LyX a bit more Mac-like.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:31:33 +00:00
Stefan Schimanski
8e212b98b4 * optional old-style editing mode for macros with a parameter list.
* combobox in the preferences dialog to choose the macro editing mode of choice.

The reason for the three choices (inline box, inline without box,
list) is that it seems that there are at least these three groups of
people, and each of them is very strong about their opinion what that
the best mode is. So here there are all of them, pick your favourite.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:02:38 +00:00
Stefan Schimanski
0a701fb254 * Option to make macro editing less "noisy" by hiding the grey box with the
macro name when the cursor is inside. The downside of the coin is that
you have to look into the statusbar to see which macro is used. But
some people prefer that than having the slight size change of macros
when the cursor enters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22650 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 21:23:41 +00:00
Pavel Sanda
75a5c1c7a1 Correct toolbar environment sorting for other locales.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:46:03 +00:00
Pavel Sanda
c0414bef66 Environment toolbar is not updated after selection by mouse.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:36:03 +00:00
André Pönitz
c151549004 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 12:33:01 +00:00
Abdelrazak Younes
33b1ab9a9a Fix buffer-next/previous when called with Ctrl-Tab.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 08:26:38 +00:00
Jürgen Spitzmüller
7d16a9c7ea * src/frontends/GuiView.cpp:
- fix bug 4496 ("Retry" and "Cancel" buttons were swapped in the error dialog)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 19:01:01 +00:00
Abdelrazak Younes
29918a2292 Scrolling works:
* enable ScrollBarAsNeeded.
* small cleanups.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:47:01 +00:00
Abdelrazak Younes
ae0667c112 More scrolling work. Now the scrollbar parameters are normalized against the screen geometry and coordinates. This simplifies the logic and the code significantly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:06:55 +00:00
Abdelrazak Younes
689d5c2b99 add some const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22611 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 09:19:52 +00:00
Abdelrazak Younes
ff588411af Delay IconPalette construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:42:28 +00:00
Abdelrazak Younes
139802b193 string optimizations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:32:48 +00:00
Abdelrazak Younes
0aead96461 Introduce class MenuButton in order to delay the math menu button initialisation up until it is first shown. This improve the inital loading time by half a second on windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 08:20:22 +00:00
Edwin Leuven
4559120e8a don't update parent and make sure the icon sizes on the palette are correct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 20:51:00 +00:00
Edwin Leuven
9a0570de4a initialize iconpalettes only when the user asks for them
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22605 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 20:36:45 +00:00
Abdelrazak Younes
95fe0e16a7 Introduce class PaletteButton in order to delay the icon palette initialisation up until it is first shown. This improve the inital loading time by 2.3 seconds on windows!
I think the same thing should be done for POPUPMENU.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 18:27:24 +00:00
Abdelrazak Younes
c2f57f8cfe Fix delay when applying changed Preferences. The reason was that the "math-panels" initialisation takes too long (hence the FIXME).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 17:26:40 +00:00
Abdelrazak Younes
47f929d48d Fix mac menubar only modifying the Prefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 16:50:10 +00:00
Abdelrazak Younes
9b06f2fbd5 Allow use of Tab keys when no document's open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 08:04:49 +00:00
Abdelrazak Younes
5a2231d17b Fix bug 4351 at least on Windows and X11.
http://bugzilla.lyx.org/show_bug.cgi?id=4351

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22596 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-16 07:47:53 +00:00
Richard Heck
1741c87a4e Fix bug 4463. The crash was due to a call to X from inside a child process.
The main change is to support/ForkedCalls.{h,cpp}. We introduce a static variable IAmAChild and a corresponding accessor. This is set to true in a new fork() method, in the branch taken by the child. (Note: fork() is safe cross-platform, as it just returns -1 if we don't have fork().) This ForkedProcess::iAmAChild() method is then used to protect GuiView::message().

As Abdel has pointed out, there may be other such calls to be protected, e.g., the emission of the Buffer::changed() signal. Those are not addressed here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22587 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 18:26:53 +00:00
Jürgen Spitzmüller
1acedf11da * src/frontends/GuiDocument.{cpp,h}:
- do not update dialog when clicking in the main window without buffer change
	  (bug 4302).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 10:38:19 +00:00
Abdelrazak Younes
537481ebe5 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:18:52 +00:00
Richard Heck
f03329a19c I18n for modules. This would seem to complete the module implementation. Test away.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:44:06 +00:00
Peter Kümmel
421fa672a7 remove duplicated code, (fix cmake merge)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 19:52:16 +00:00
Enrico Forestieri
58a0626e80 Use the currentItemChanged() signal instead of itemSelectionChanged()
because in Qt 4.2 the current item has not been updated yet when
itemSelectionChanged() is emitted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 21:35:48 +00:00
Abdelrazak Younes
cf2656e026 fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:48:10 +00:00
Abdelrazak Younes
0ea17620dc fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:44:16 +00:00
Richard Heck
a60b6d90d9 Help from Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:11:55 +00:00
Jürgen Spitzmüller
e3699e1a47 * GuiBibtex.cpp:
- some more tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 15:41:40 +00:00
Jürgen Spitzmüller
445bf425a1 * GuiBibtex.cpp:
- nor _really_: yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 12:00:11 +00:00
Jürgen Spitzmüller
709960ff66 * GuiBibtex.cpp:
- yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:49:49 +00:00
Jürgen Spitzmüller
e94d6b3958 * GuiBibtex.cpp:
- addition to rev. 22507: handle ReadOnly of new buttons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:22:20 +00:00
Jürgen Spitzmüller
fcf47395c5 * src/frontends/qt4/GuiBibtex.{cpp,h}:
* src/frontends/qt4/ui/BibtexUi.ui:
	- add buttons to move databases up and down.
	  Patch from Horst Schirmeier (permission: http://marc.info/?l=lyx-devel&m=120009631506298&w=2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 09:30:21 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
471cf26b11 New files, anticipating a later commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 02:31:32 +00:00
Jürgen Spitzmüller
4b799833e7 *** Support for generic sideways floats ***
* src/Buffer.cpp:
	- format is up to 312.
* src/LaTeXFeatures.cpp:
	- add rotfloat.
* src/Insets/InsetFloat.cpp:
	- handle starred and generic sideways floats.
* src/frontends/qt4/FloatPlacement.{cpp,h}:
	- adjust GUI to the new features.
* lib/chkconfig.ltx:
	- add rotfloat
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion methods for new floats
* lib/lyx2lyx/lyx_1_4.py:
	- add proper reversion method for sideways floats (this was missing).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 18:56:53 +00:00
Pavel Sanda
60c53dcd1e Renaming leftovers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:40:26 +00:00
Bo Peng
f52b73747f Embedding: saving inzip name to .lyx file so that embedded files can always be found under different operating systems (even lyx versions). yet to be tested under windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 23:39:58 +00:00
Abdelrazak Younes
a84fa1ce00 Transfer Tab and Shift-Tab keys special handling from GuiView::event() to GuiWorkArea::event(). Add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 09:04:30 +00:00
Abdelrazak Younes
50b994b08f * GuiWorkArea::event():
- case ToolTip: don't forget to accept the event!
- Clean up the method in order to extend to other events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:19:54 +00:00
Richard Heck
5f91f39309 We do not need to update just because the class has been changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22466 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 06:22:42 +00:00
Richard Heck
5faad9ca68 Additional UI logic related to module requires and excludes.
The logic here is really kind of a mess. If anyone can make it
simpler, I'd be thrilled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 01:33:24 +00:00
Richard Heck
78cc57cd5a Fix copy-paste errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 23:06:16 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Abdelrazak Younes
a82d158e0c Remove archaeological work around scrollbar insanity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 09:54:39 +00:00
Richard Heck
85ac3f0dc4 More whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:19:26 +00:00
Richard Heck
b84e210719 What happened to the whitespace?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:18:41 +00:00
Bo Peng
b5153b3d26 Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22448 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:55:34 +00:00
Bo Peng
c20f5a64d9 Embedding: simplify the interface of EmbeddedFiles, which will be later merged to EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:33:43 +00:00
Bo Peng
52cd35cd5f Embedding: add embedding support for InsetBibtex. (params["embed"] is added, use EmbeddedFileList instead of FileNameList for bibtex handling, use checkable items in GuiBibtex)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 17:02:09 +00:00
Bo Peng
09a6f725d0 Embedding: add embedding support for InsetExternal. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:42:28 +00:00
Bo Peng
c81fd7337d Embedding: add embedding support for InsetInclude. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:35:43 +00:00
Bo Peng
474979d32d Embedding: simplify code in the handling of embedCB in GuiGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 02:34:17 +00:00
Jean-Marc Lasgouttes
cdb78de525 * MenuBackend.cpp (binding): remove forgui argument
* frontends/qt4/GuiPopupMenu.cpp (addBinding): remove (merge into
	getLabel and remove mac-specific code).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22412 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 10:53:04 +00:00
Bo Peng
a63ec64642 Embedding: add embedCB checkboxes to IncludeUi and ExternalUi
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22411 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 06:46:32 +00:00
Bo Peng
c9a7e8c416 Embedding: After another round of EmbeddedFiles changes, embedded figures should more or less work now.
* src/insets/InsetExternal.cpp: fix compiling. (Does not work yet)
	* src/insets/InsetGraphics.cpp: use latexFilename to produce output.
	* src/insets/InsetGraphicsParams.cpp: use availableFile to show preview.
	* src/EmbeddedFiles.h|cpp: More things are moved from EmbeddedFiles to EmbeddedFile
	* src/frontends/qt4/GuiGraphics.cpp: remove embeddable-related operations.
	* src/support/FileName.h: make isReadableFile virtual


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 03:34:21 +00:00
Richard Heck
012c7f3280 Crash fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22398 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-06 16:52:00 +00:00
Richard Heck
9a7cd29f5b Rationalize the handling of makeTextClass().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22388 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 17:04:56 +00:00
Richard Heck
80e98c5b71 Implement checks for available modules both in BufferParams and in the gui.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 16:56:30 +00:00
Bo Peng
9073fd6b9f Embedding: proper embedCB actions in the GuiGraphics dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:48:47 +00:00
Jean-Marc Lasgouttes
d43731fa17 remove extra menu expansion which causes multiple warnings about shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22365 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-04 16:54:56 +00:00
Jürgen Spitzmüller
b0ff3b92d7 * src/frontends/qt4/GuiSendto.cpp:
- add missing pdflatex format.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 09:22:36 +00:00
Enrico Forestieri
62d5000103 Use a less verbose form for warnings in the view source window
and correctly match strings in order to coalesce translations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22337 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 21:28:38 +00:00
Jürgen Spitzmüller
a229a78dff Support for \nocite* from Berhard Reiter. Increments file format to 210.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22327 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 16:56:57 +00:00
Jürgen Spitzmüller
636b655216 Fix multiple cell pasting on Windows and Mac (bug 4436):
* src/Clipboard.h:
* src/frontends/GuiClipboard.{cpp,h}:
	- new member hasInternal() which indicates whether the OS knows
	  the concept of clipboard ownership.

* src/insets/InsetTabular.cpp (doDispatch):
	- consider hasInternal() while pasting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 15:56:05 +00:00
Abdelrazak Younes
c451018f30 enable context menu for the vertical scrollbar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 15:04:20 +00:00
Abdelrazak Younes
02fd454216 header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22316 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 14:21:50 +00:00
Abdelrazak Younes
33eb188fb6 Add an RC setting to disable/enable the tooltips in the work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:52:56 +00:00
Stefan Schimanski
afc761e17b * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:31:17 +00:00
Stefan Schimanski
780556c5d8 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22311 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 13:29:45 +00:00
Abdelrazak Younes
6b0a396d74 * GuiWorkArea::contextMenuEvent(): accept the event otherwise it is passed down to GuiView after pressing the Esc key.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22310 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 12:48:36 +00:00
Abdelrazak Younes
fc2658eff0 initial basic context menu support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 12:40:58 +00:00
Abdelrazak Younes
722329490b Simplify MenuBackend and menubar interactions.
* GuiMenubar: freed from GuiView and QMenuBar, renamed to 'Menus'
* GuiView: just use the standard QMenuBar.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 10:55:43 +00:00
Abdelrazak Younes
4803a77708 Transfer global mac menu bar initialization to GuiApplication ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22305 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 09:54:48 +00:00
Bo Peng
6f57240133 add missing header file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22304 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 06:44:22 +00:00
Abdelrazak Younes
518871a52b Don't pretend we have multiple menu backends: transfer the singleton to GuiApplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22303 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 22:27:32 +00:00
Abdelrazak Younes
4959040015 * GuiMenuBar:
- Get rid of unused menuBar() method.
- make sure mac specific code always compile.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22302 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 21:34:53 +00:00
Abdelrazak Younes
3ffd3f51a1 Free GuiPopupMenu from GuiMenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22301 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 20:51:05 +00:00
Abdelrazak Younes
02110a3d5b Prepare the code for context menu support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22300 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 20:12:07 +00:00
Abdelrazak Younes
2148f86b27 remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22299 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 19:01:10 +00:00
Abdelrazak Younes
7c832d2d84 Implement tooltips for visible insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22298 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 18:53:38 +00:00
Abdelrazak Younes
44383f5162 Fix graphics file name. It is textrm_O.png, not textrm_Oe.png
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-25 09:14:00 +00:00
Jürgen Spitzmüller
09f09e2121 * src/Buffer.cpp:
- better translatable error message for uncodable chars, now also
	  displaying the code point value.
* src/Paragraph.cpp:
	- do not throw in View Source mode, but mark up uncodable chars (fix bug 4437).
* src/frontends/qt4/LaTeXHighlighter.{cpp,h}:
	- highlight LyX warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22294 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 13:55:01 +00:00
Stefan Schimanski
a6f3a3c59c * first clear the menubar, then fill it (with mac menu items)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22285 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 18:51:11 +00:00
Stefan Schimanski
83980d504c * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22267 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:49:18 +00:00
Stefan Schimanski
fc11e21486 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22266 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:48:41 +00:00
Stefan Schimanski
4267ad00cd * math macro toolbar can be made automatic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22265 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:47:37 +00:00
Abdelrazak Younes
93289e8fe1 Fix cursor positionning on new buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:01:11 +00:00
Abdelrazak Younes
717db0a59e add comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22224 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 09:43:23 +00:00
Abdelrazak Younes
7998dfd948 Close to perfect scrolling. Some bugs fixing and behaviour tweaking remains but we are on a much saner ground.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22221 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 08:28:18 +00:00
Richard Heck
e285d2a7d8 Support for nocite, provided by Bernhard Reiter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22217 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-20 15:46:14 +00:00
Abdelrazak Younes
65dc5e8337 Fix some scrolling issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22211 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-19 07:47:03 +00:00
Abdelrazak Younes
9439b6e6e0 * get rid of support::absolutePath()
* remove FileName.h inclusion from filetools.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22188 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:04:46 +00:00
Abdelrazak Younes
e7bb71ff4e header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22178 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 22:09:28 +00:00
Abdelrazak Younes
efbd1d30cb Sanitize the way we use abort() and exit(). With this commit, we should never crash in release mode, even when assertions are enabled. In debug mode, we crash with abort in order to get a useful backtrace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22165 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:34:29 +00:00
Abdelrazak Younes
c66e214724 Transfer getcwd() implementation to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22164 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 10:18:00 +00:00
Abdelrazak Younes
486ac10476 Simplify bind directory creation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22152 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:27:47 +00:00
Abdelrazak Younes
15c9510db4 Use FileName::createDirectory() instead of support::mkdir().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22150 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 18:36:01 +00:00
André Pönitz
f407442b39 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22114 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 22:43:37 +00:00
André Pönitz
ab3459c410 remove a few toutf8 conversion that are done by lyxerr nowadays
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22109 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 20:35:55 +00:00
Abdelrazak Younes
7c392af6ea getting rid of superfluous lyx::support:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22106 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:57:42 +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
Abdelrazak Younes
b89cc942eb 'using namespace lyx::support' instead of 'using support::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:57:56 +00:00
Abdelrazak Younes
2040e10f9d use QClipboard::selectionChanged() signal instead of QClipboard::dataChanged().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22102 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:46:16 +00:00
Enrico Forestieri
d73f28eec1 Revert qprocess code. Revisions reverted: 22026, 22030, 22044, 22048,
22077, 22078, 22079, 22080, 22081.

Sorry Peter, but this was breaking too many things, see discussions
on lyx-devel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:25:53 +00:00
Abdelrazak Younes
d5dcbe169a compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22099 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:53:44 +00:00
Abdelrazak Younes
503a41ad15 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4421
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22098 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:52:23 +00:00
Abdelrazak Younes
9383f4c3c6 'using namespace std' instead of 'using std::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:16:00 +00:00
Abdelrazak Younes
a546950935 GuiProgress is not Buffer dependent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 09:25:57 +00:00
Abdelrazak Younes
b2d28409fe Change GuiProgress identifier and description.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 08:20:30 +00:00
Pavel Sanda
8a393b1f46 Add selection dbg output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 01:38:40 +00:00
Abdelrazak Younes
2732d4cbf4 fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22064 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 17:53:11 +00:00
Abdelrazak Younes
41681e7185 Add common session handling infrastructure for dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 13:05:00 +00:00
Pavel Sanda
2a0d89b8aa Add cleanfiles for monolithic builds.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22056 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 00:53:12 +00:00
Pavel Sanda
3afa79f566 Fix compilation error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22055 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 00:11:22 +00:00
Pavel Sanda
01083a520b Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22054 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:58:47 +00:00
Abdelrazak Younes
e5bac2fe88 fix copy&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22051 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 23:16:07 +00:00
Abdelrazak Younes
604c1148ea Factorize general code out of GuiDialog and into the base Dialog class. This is now possible thanks to the moving of Dialog.{cpp,h} to qt4/. Any dialog must inherit QWidget within Qt so it is safe to use Dialog::asQWidget() method (which is similar to dynamic casting).
* GuiDialog now inherits DialogView. GuiDialog is only there to bring the ButtonController archaeological interface; any new dialog should inherit DialogView and any new dock widget should inherit DockView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22049 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 22:35:04 +00:00
Abdelrazak Younes
2bdb10271c Fix Drag&Drop. LFUN_FILE_OPEN is not handled by GuiView::dispatch() (yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22029 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 08:43:08 +00:00
Peter Kümmel
3af56311a7 add progress view of system calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 20:46:03 +00:00
Abdelrazak Younes
b95a68d476 Revert 22023 and really fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 16:36:56 +00:00
Abdelrazak Younes
eb7c892f84 Fix bug 4410 (http://bugzilla.lyx.org/show_bug.cgi?id=4410).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22023 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 16:22:05 +00:00
Abdelrazak Younes
8cd46dd3c3 No need to update the prefs dialog if it is not visible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22015 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 14:29:29 +00:00
Abdelrazak Younes
db95e2cb85 * Dialog: name_ is const and is ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22014 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 14:24:11 +00:00
Abdelrazak Younes
20e21c1818 Fix bug 4413 (http://bugzilla.lyx.org/show_bug.cgi?id=4413)
The problem was that name_ was a const pointer and the pointer pointed to nothing after leaving the ctor.
Andre': <docstring> is included in every dialog anyway via GuiDialog.h -> InsetCommandParams.h -> docstring.h"; so this change won't affect compilation time.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22012 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 13:59:32 +00:00
Abdelrazak Younes
e19ad69e81 New file is placed in current directory by default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22005 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 22:28:03 +00:00
Abdelrazak Younes
acbb1c9b8c Split LyXFunc::menuNew() into LyXView::newDocument() and buffer_funcs::newUnnamedFile().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22002 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 11:57:13 +00:00
Abdelrazak Younes
f4e787e982 Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21964 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 09:23:19 +00:00
Abdelrazak Younes
ac08e89095 Sanitize the way Buffers are saved, renamed and closed.
* LyXFunc: Transfer and simplify LFUN_BUFFER_WRITE, LFUN_BUFFER_WRITE_AS  and LFUN_BUFFER_WRITE_ALL to GuiView.

* BufferList: Transfer quitWriteAll() and close() to GuiView.

* Buffer: Transfer writeAs() and menuWrite() functionalities to GuiView.

* LyXView::closeBuffer(): new pure virtual method.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21960 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 22:21:25 +00:00
Jürgen Spitzmüller
bf80ebcbd4 * src/frontends/qt4/ui/PrintUi.ui:
- fix bug 4345.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21949 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 11:32:40 +00:00
Jürgen Spitzmüller
8a13582720 * src/frontends/qt4/GuiBox.cpp:
- Fix button activation with pagebreak CB.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21948 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 11:29:43 +00:00
Jürgen Spitzmüller
3582be1441 framed.sty goes InsetBox:
* src/insets/InsetBox.{cpp,h}:
* src/frontends/qt4/GuiBox.{cpp,h}:
* src/frontends/qt4/ui/BoxUi.ui:
	- add and handle Framed and Shaded boxes
	- use more descriptive label names
	- implement name() function for Box:Shaded's sake

* src/insets/InsetNote.{cpp,h}:
* src/frontends/qt4/GuiNote.cpp:
* src/frontends/qt4/ui/NoteUi.ui:
	- remove Framed and Shaded.

* lib/layouts/stdinsets.inc:
	- remove Note:Framed and Note:Shaded
	- add Box:Shaded

* Buffer.cpp:
	- bump format to 304.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add conversion/reversion of framed/shaded notes to boxes.

* development/FORMAT:
	- document file format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21945 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 09:25:50 +00:00
Pavel Sanda
be0895b664 Fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21933 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 23:55:38 +00:00
Abdelrazak Younes
0743f576cb * BufferView:
- dispatch(): transfer LFUN_FILE_INSERT_PLAINTEXT_* to GuiView::dispatch()
- insertPlaintextFile(): split in BufferView::insertPlaintextFile() and GuiView::insertPlaintextFile()

This patch get rid of FileDialog use in BufferView. Remains Buffer, Converters and LyXFunc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21930 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 20:05:17 +00:00
Peter Kümmel
4b465cfc26 fix memory leaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21928 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 18:39:05 +00:00
Abdelrazak Younes
c68601da9f * BufferView:
- dispatch(): transfer LFUN_FILE_INSERT to GuiView::dispatch()
- menuInsertLyXFile(): split in BufferView::insertLyXFile() and GuiView::insertLyXFile()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21923 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 17:50:08 +00:00
Abdelrazak Younes
b1db731a98 * FileName::fileContents(): new argument to define the file encoding.
* BufferView:
- insertPlaintextString(): now accept a FileName.
- contentsOfPlaintextFile(): ditto and use FileName::fileContents().
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21915 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:55:25 +00:00
Peter Kümmel
a66d9c825b also compile without pchs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21910 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 10:52:18 +00:00
Peter Kümmel
333a0cd1bb fix memory leak. addMenu does not take ownership, a Qt bug?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21905 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 09:27:02 +00:00
Abdelrazak Younes
f53f60b1ce fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21881 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 18:34:25 +00:00
André Pönitz
c3c40d3332 five lines plain loop vs seven lines fancy boost & algorithm
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21870 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 22:48:35 +00:00
André Pönitz
81f21577b7 no need for pointers, not even leaking ones...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21869 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 22:38:53 +00:00
André Pönitz
b06df568f3 use structure with named members instead of pair<int, int>...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21868 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 22:12:19 +00:00
André Pönitz
2506e0d643 assimilate BOOST_CURRENT_FUNCTION
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21867 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 21:10:35 +00:00
André Pönitz
0ef0cbbf1a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21864 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 19:56:25 +00:00
André Pönitz
1aafa6ff77 merge the Forked* machinery into a single pair of files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21863 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 19:19:39 +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
150cf11651 hand-crafted LyXErr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21849 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 22:12:03 +00:00
Abdelrazak Younes
c886bc68c2 * FileName:
- introduce changeExtension(): the goal is to replace progressively the one in filetools.cpp
- get rid of internal_path() checking for Win32 as the path is always normalized with slashes with QFileInfo.

* BufferParams: get rid of filepath member. This was used only once and was fixing a path in BufferParam was wrong anyway.

* Buffer::filePath(): always regenerate instead of caching it in BufferParams.

 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21847 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 15:25:07 +00:00
Uwe Stöhr
50b792122e GuiPrefs.cpp: fix copy/paste error from r21776
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21839 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 23:39:44 +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
ab16324b4a unneeded declaration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21836 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 21:45:00 +00:00
Abdelrazak Younes
623389fdcc Move inclusion of "frontends/Delegates.h" to qt4/GuiView.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21815 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 08:24:56 +00:00
André Pönitz
089c21ba76 no need to cast anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21810 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 23:55:16 +00:00
André Pönitz
69f195acd1 make dialog stay above the main window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21809 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 23:42:51 +00:00
Abdelrazak Younes
c06f45a66f Adjust comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21808 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 23:04:01 +00:00
Abdelrazak Younes
1060f922f0 Please JMarc: Make sure we always pass through LyXFunc::dispatch() even if this is a waste of CPU.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21807 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 22:45:17 +00:00
Pavel Sanda
b8e1e86676 Source highlighting of comments (by Bernhard Reiter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21803 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 21:48:41 +00:00
Abdelrazak Younes
1133419a59 Cleanup LyXFunc::dispatch() following JMarc advice.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21797 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 14:36:50 +00:00
Abdelrazak Younes
b897636173 Free src/ from boost::filesystem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21784 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 21:21:03 +00:00
Uwe Stöhr
58135f8b27 support to set the examples folder in the preferences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21776 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 18:26:58 +00:00
Abdelrazak Younes
49051b32ea Remove unused pure virtual method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21774 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 18:18:23 +00:00
André Pönitz
d95451ae5c s/isFileReadable/isReadableFile;
introduce isReadableDirectory
replace isReadable by either isReadableFile or isReadableDirectory
remove isReadable


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21769 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 11:18:16 +00:00
André Pönitz
e7317582fb less boost, just plain C++.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21768 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 22:15:52 +00:00
Abdelrazak Younes
94c0fc55de Getting rid of Application::createView()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21760 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 08:51:11 +00:00
Abdelrazak Younes
662b5dba03 Introducing Application::getStatus() and Application::dispatch(). Transferring some LFUNs to those.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21759 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 07:58:12 +00:00
André Pönitz
502125671a only called once
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21754 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 23:57:11 +00:00
André Pönitz
c610af7ccd cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21749 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 22:15:17 +00:00
André Pönitz
f0230e1d9a remove unneeded default argument value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21748 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 21:49:58 +00:00
André Pönitz
adcb084ea2 merge frontend::Painter into GuiPainter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21747 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 21:39:51 +00:00
André Pönitz
7bf3b204fa remove line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21746 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 20:31:52 +00:00
Abdelrazak Younes
b8cd772329 some more LFUN transfer from LyXFunc to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 12:37:09 +00:00
Abdelrazak Younes
47f54dd68b get rid of LyXView::errors(). This was redundant with GuiBufferDelegate::errors().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:53:10 +00:00
Abdelrazak Younes
f745a9c3c5 Take care of cursor update flags correctly and redraw if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21739 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:45:20 +00:00
Abdelrazak Younes
3eb9c09679 Fix crash on exit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21738 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:19:42 +00:00
Abdelrazak Younes
10cc0a8842 Simplify Dialog::name() handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21736 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 10:45:14 +00:00
Abdelrazak Younes
d4b02ad711 simplify window creation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21735 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 09:56:33 +00:00
Abdelrazak Younes
42015a8ebd Transfer some more dialog related code from core to frontend:
- LFUN_INSET_APPLY handling goes to GuiView.
- Dialog needs a GuiView instead of a LyXView.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21734 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 09:44:02 +00:00
André Pönitz
95b1b94e32 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21721 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:47:13 +00:00
André Pönitz
b43ce80676 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21720 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:34:57 +00:00
André Pönitz
dcac6d3375 small simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21719 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:29:53 +00:00
Abdelrazak Younes
573722b8de compile fix. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21718 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 22:49:11 +00:00
Abdelrazak Younes
baa9153134 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 22:20:51 +00:00
Abdelrazak Younes
b9d2666b98 Move Dialog.{h,cpp} and ButtonPolicy.{h,cpp} to frontends/qt4/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21714 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 08:01:09 +00:00
Abdelrazak Younes
b42e2d61d8 Updates controls after reinitialization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21712 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 07:33:18 +00:00
André Pönitz
e5fe3a68c7 forgot those
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21708 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 00:04:19 +00:00
André Pönitz
974924a5d5 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21703 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:54:10 +00:00
Abdelrazak Younes
a3315920a2 Some more cleanup of LyXView:
- transfer GuiBufferDelegate and GuiBufferViewDelegate to GuiView
- delete showDialog() and use LFUN_DIALOG_SHOW in LyXFunc::dispatch().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:48:13 +00:00
Abdelrazak Younes
4b1812a791 set eol-style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21696 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:18:04 +00:00
André Pönitz
02a7584d5a get rid of a boost::signals::connection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21695 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:15:23 +00:00
Abdelrazak Younes
a37a73e3c9 Introducing GuiMenubar::init() to avoid destructing the object in order to re-initialize it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21694 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:14:34 +00:00
André Pönitz
77a89e1486 remove unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21693 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 20:32:17 +00:00
Abdelrazak Younes
8460c9a072 Introducing Application::resetGui() that will reset all dialogs in all lyx windows (including toolbars and menubars).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 15:12:47 +00:00
Abdelrazak Younes
0f56650139 Fix initial disabling of the layout combo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21686 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:29:17 +00:00
Abdelrazak Younes
e615380e42 Fix crash when closing a buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21685 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:23:06 +00:00
Abdelrazak Younes
ba3fa9bd03 - Cleanup and simplify the layout list GUI handling.
- Transfer toolbar, statusbar and layoutlist handling to the frontend.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21684 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:03:56 +00:00
Abdelrazak Younes
359ced5e65 Transfer some LFUNs from LyXFunc to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21681 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 20:56:05 +00:00
Abdelrazak Younes
37a5647be1 Transfer LyXView::loadLyXFile() to lyxFunc::loadAndViewFile(). This enables to get rid of the flashing tabbar bug and is more correct anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21677 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 12:03:38 +00:00
Abdelrazak Younes
7e9cf3cec1 Resize bug correction. The tabbar hiding trick did not interact correctly with resize events :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21676 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 11:21:45 +00:00
Abdelrazak Younes
c0a9d2587c Painting tweaks:
- avoid one redraw on file loading due to a resize event.
- fix the initial offset_ref_ value of BufferView.
- add new TabWorkArea::addWorkArea() method.
- avoid tab bar flashing when only one file is opened.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21674 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 10:04:14 +00:00
Abdelrazak Younes
dba4159cc2 Remove some methods from GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21672 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 23:49:52 +00:00
Abdelrazak Younes
c61ff2e0b8 cleanup and reorder initialisation code of GuiView and GuiToolbars. Move some things to GuiView::Private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21670 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 23:30:41 +00:00
Abdelrazak Younes
7d209e5c32 Fix long standing initialisation FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21669 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:51:58 +00:00
Abdelrazak Younes
9f26cdda31 rev 21667: Forgot this!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21668 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:29:58 +00:00
Abdelrazak Younes
01470ddcb7 Remove unused methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21667 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:27:04 +00:00
Abdelrazak Younes
1b147f12b0 Spoiling some fun from Andre': put Application on a diet and remove unnecessary string conversions and method indirections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21665 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 20:36:52 +00:00
André Pönitz
7bd8477a60 less string conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 10:14:43 +00:00
André Pönitz
d5fc2425a9 consolidate showDialog() incarnations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21662 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 00:39:15 +00:00
André Pönitz
55b4fbcf21 merge GuiView/Dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21661 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 00:01:14 +00:00
André Pönitz
719a7beb48 make Application slimmer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21659 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:37:33 +00:00
André Pönitz
12f435035a move view_ids from Application to GuiApplication
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21658 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:25:42 +00:00
André Pönitz
d837643c95 make frontend::Application a bit slimmer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21657 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:11:11 +00:00
André Pönitz
1005c166c2 merge frontend::Gui and frontend::Application
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21656 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 20:47:50 +00:00
Abdelrazak Younes
926abae753 Simplify single par drawing:
* ParagraphMetrics::computeRowSignature(): Integrate row's dimensions and selection status in the row signature.
* TextMetrics::drawParagraph(): compute the row signature here and rely on that to decide if a redraw is needed or not.
* BufferView::Private: get rid of the ViewMetricsInfo member. Just keep the ScreenUpdateStrategy.
* BufferView::draw(): full screen update even for singlePar case because the row signature will detect if something needs to be redrawn.
* Text3.cpp: get rid of hack following architecture update.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21650 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 11:27:03 +00:00
Abdelrazak Younes
92b4b75a8f add '-' between LyX and version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21647 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:21:40 +00:00
Abdelrazak Younes
d9194a2fcf Add version to application name in session info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21646 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:10:35 +00:00
Abdelrazak Younes
ce46ca8653 Hopefully fix the ignored -geometry option under X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21645 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 21:52:04 +00:00
Abdelrazak Younes
e0a62da75a Change organization name to LyX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21644 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 17:28:50 +00:00
Abdelrazak Younes
ce84d0b6fc Work around X11 Windows manager limitations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21643 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 17:19:46 +00:00
André Pönitz
72e3177e3d shuffle some code around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21636 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 22:30:16 +00:00
André Pönitz
bb5f33e4d9 merge the two parts of the implementation of frontends::Dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21635 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 21:57:00 +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
Abdelrazak Younes
79e12182cb cosmetics and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 19:46:30 +00:00
Abdelrazak Younes
e73f8040fe Use QSettings for session management of windows geometry. This commit also removes the possibility to fix the window dimensions in the RC file. Instead we have now a single check box for enabling/disabling geometry session management.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21625 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 12:58:44 +00:00
Abdelrazak Younes
b716616322 cleanups and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21612 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:39:16 +00:00
Abdelrazak Younes
a97fcadb9d fix drawing issues following removal of WorkArea::width() and height().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21608 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 14:34:55 +00:00
Abdelrazak Younes
1f4e5c926a Bump the Qt requirement to version 4.0.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21607 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 14:24:59 +00:00
Abdelrazak Younes
e5eabfe067 Transfer geometry related session code from LyX::newLyXView() to GuiView::setGeometry().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21606 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 13:56:13 +00:00
Abdelrazak Younes
9c928fba07 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21602 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 12:31:31 +00:00
Abdelrazak Younes
e4fff1a3df Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21601 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 12:29:42 +00:00
Abdelrazak Younes
0c6306060e Fix the disappearing minibuffer by don't pretending we are flexible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21600 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 11:14:06 +00:00
Pavel Sanda
1098ca796f Fix bug 2738: Wrong sorting of languages in Document dialog
http://bugzilla.lyx.org/show_bug.cgi?id=2738



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 02:01:50 +00:00
André Pönitz
d93679c1db cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21596 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:21:31 +00:00
André Pönitz
5609f23db4 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21595 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:09:52 +00:00
André Pönitz
cc7b2d438f compile fix;
cosmetics;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21594 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:04:00 +00:00
André Pönitz
f625dd7ea0 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21593 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:50:28 +00:00
André Pönitz
cf9d42c670 shuffle stuff around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21591 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:21:29 +00:00
Enrico Forestieri
a53e2ac8dc Fix thinko in r21048
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21590 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:06:40 +00:00
Enrico Forestieri
12aa33ff01 Fix thinko in r21047
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21589 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:05:02 +00:00
André Pönitz
0ee7c6e283 remove #includes; cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21588 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:00:36 +00:00
Abdelrazak Younes
12ecafd76e Transfer createView() from Application to GuiApplication and get rid of LyXView::setGeometry() pure virtual interface. The goal is to switch to Qt session handling for geometry instead of our own house made one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21585 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 15:29:15 +00:00
Abdelrazak Younes
f8490161bd Transfer some LFUNs from LyXFunc to GuiView and get rid of GuiView methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21583 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 14:49:50 +00:00
Abdelrazak Younes
fcdc4f8a6b Some more cosmetics and removal of unused methods in GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21582 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 14:04:32 +00:00
Abdelrazak Younes
f111a8e322 Some cosmetics and a gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21581 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 13:23:44 +00:00
Abdelrazak Younes
37d4a67e0d brown paper bag...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21580 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:47:40 +00:00
Abdelrazak Younes
e2aba1b550 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21579 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:31:37 +00:00
Abdelrazak Younes
4fc7593ab6 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21578 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:24:34 +00:00
Abdelrazak Younes
4eb2740a0d Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21577 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:20:55 +00:00
Abdelrazak Younes
c4db1d0f5a Push latest Andre's changes toward their true direction:
* WorkArea.h and LyXView.h: remove unneeded pure virtual interface.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21575 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 09:52:28 +00:00
Enrico Forestieri
7bfa3826d2 Fix slot connections
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21571 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 00:38:21 +00:00
André Pönitz
ffd3c159bf cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21569 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:41:13 +00:00
André Pönitz
c256661047 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21568 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:37:34 +00:00
André Pönitz
600db8e21d small refactoring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21567 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:26:51 +00:00
André Pönitz
309232d26b make LyXView almost pure virtual. Merge implementation with GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21566 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:23:19 +00:00
André Pönitz
36136efb78 de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21561 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:35:43 +00:00
André Pönitz
bc20c9f382 remove unneeded functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21558 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:23:45 +00:00
André Pönitz
34859c9a4f make WorkArea a pure interface, move all implementation to GuiWorkArea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21557 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:15:51 +00:00
Abdelrazak Younes
fe8bce6676 Transfer readOnly() and updateWindowTitle() from Delegates to WorkArea/WorkAreaManager. This permits to automatically update Windows and Tabs titles (thanks to Qt signal/slot connections).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21551 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 22:30:21 +00:00
André Pönitz
656724ffd0 undef unwanted X11 macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21547 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 12:14:06 +00:00
Abdelrazak Younes
2480fa573c * GuiView:
- addTabWorkArea(): Implement split view.
- maintain current_work_area_ pointer for the need of future embedded workAreas.
- transfer and some code to GuiView::Private and simplify some other things.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21546 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 10:09:48 +00:00
André Pönitz
8d06b3049b cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21544 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 13:44:50 +00:00
Pavel Sanda
87bd0e79ad Fix bug 2739: Option for alphabetical sorting of environments in the toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21536 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 00:21:42 +00:00
Uwe Stöhr
5cd5bf695e GuiFloat.cpp: fix the regression that float placement dialog has no title
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21525 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 23:05:48 +00:00
André Pönitz
f4e883c475 use strfwd when appropriate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21520 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 21:52:09 +00:00
Abdelrazak Younes
b9eecfab8a optimizations (halves the number of multiplication).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21516 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 08:00:31 +00:00
André Pönitz
14f7e7fffe shuffle stuff around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21511 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 00:09:58 +00:00
Abdelrazak Younes
cdf1378200 Introducing TextClassPtr.h to minimize header dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21506 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:25:08 +00:00
André Pönitz
5253f5f17d Abdel?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21495 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 20:44:36 +00:00
André Pönitz
688c186614 we assume (more or less) conforming compilers nowadays.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21482 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:45:24 +00:00
Abdelrazak Younes
0b0c27ef59 * BufferView: Make use of ScreenUpdateStrategy::NoScreenUpdate, avoid a screen redraw when it is not really needed.
* Painter.h: move isDrawingEnabled() to public Area.

* TextMetrics::drawParagraph(): backup and restore original drawing state of the Painter.

* InsetTabular::draw(): ditto.

* InsetMathNest::drawSelection(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21471 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:07:49 +00:00
Jürgen Spitzmüller
f9dd4b000e * src/frontends/qt4/GuiSpellchecker.cpp:
- reanimate the spellchecker.
	- fix bug 2218 (spellchecher skips first word)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21469 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:40:31 +00:00
Abdelrazak Younes
f84080f01c * Bufferview::updateMetrics(): Separate out the SinglePar optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21463 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 08:32:25 +00:00
André Pönitz
77821e11c1 merge helper files;
remove duplicated lyx::frontend::setAutoTextCB(QCheckBox*, QLineEdit*, LengthCombo*)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21455 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 22:20:23 +00:00
André Pönitz
7ced3deb52 use forward declaration...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21454 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 21:42:08 +00:00
Abdelrazak Younes
ff189f6c70 Rename GuiViewBase to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21436 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 13:52:37 +00:00
Jürgen Spitzmüller
097d1d3215 * src/frontends/qt4/GuiPrefs.cpp: fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21418 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 11:12:59 +00:00
André Pönitz
09b7e6e60a some std::string -> filename changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21404 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 17:37:37 +00:00
André Pönitz
09df753df4 pimpl not needed here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21395 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 23:42:27 +00:00
André Pönitz
47cd08999c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21390 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 21:04:52 +00:00
André Pönitz
65ce182131 I wonder why boost::tuple is preferable over a simple struct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21388 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 20:26:28 +00:00
André Pönitz
f370da4113 some de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21387 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 19:59:08 +00:00
André Pönitz
843bddd6cf no controllers directory anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21384 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 18:14:49 +00:00
Abdelrazak Younes
876d88a86e add some assertion for C-style table access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21379 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 16:43:24 +00:00
Bo Peng
ed3d95d16c save prefui in qt422 format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21375 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 16:09:06 +00:00
Jürgen Spitzmüller
33bb075fd8 * src/LyXRC.{cpp,h}:
- new RC_USE_PIXMAP_CACHE
* src/frontends/qt4/GuiPainter.{cpp,h}:
	- use rc.use_pixmap_cache
* src/frontends/qt4/GuiPrefs.cpp:
* src/frontends/qt4/ui/QPref.ui:
	- implement rc.use_pixmap_cache

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21372 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 14:43:09 +00:00
Bo Peng
1d9cfe4b9f save HyperlinkUi.ui in qt 422 format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 04:36:25 +00:00
André Pönitz
a8cd9a4b8f cosmetics. mainly replace #include "dostring.h" by #include "strfwd.h"
in header files when possible. Adjust .cpp files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:17:22 +00:00
Jürgen Spitzmüller
41880f4282 * src/frontends/qt4/GuiErrorList.cpp:
- do not close the dialog on double click (bug 4090).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21351 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:52:52 +00:00
Uwe Stöhr
2749683873 GuiHyperlink.cpp /HyperlinkUi.ui: follow the LyX naming conventions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21350 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:49:17 +00:00
Uwe Stöhr
0a7567ce3b - add entry to FORMATS file for Stefan's format change (Richards to 296 change is still not correctly listed)
- add support for hyerlink targets - fileformat changed
  (For Hyperlink.cpp I still need help to get rid of the strings and chars and use docstrings and char_type instead!)

Can anyone please open the changed Hyperlink.ui with a Qt 4.2 designer or below, save it and commit? Thanks. (Otherwise you cannot compile it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21347 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:37:43 +00:00
Stefan Schimanski
6408f99b31 * monochrome rendering support. You can set two color, the min and max. Every painting operation later on will map every color into this interval. By calling enterMonochrome and leaveMonochrome you can nest this process.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21322 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:52:51 +00:00
Edwin Leuven
3b07f0f851 get rid of clear button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21321 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:39:20 +00:00
André Pönitz
a5263e0f92 introduce a header to forward declare std::string.
hope there are only conforming implementaions out there ;-}


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 22:40:34 +00:00
Bo Peng
e91114cdcb PrefShortcuts: remove color, remove third column, use bold and cross-out font for new and removed items respectively
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21311 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 18:46:03 +00:00
Bo Peng
6cf20c52b7 PrefShortcuts: use KeySequence::ForGui to display shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 17:15:10 +00:00
Uwe Stöhr
7e62189e7e GuiErrorList.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21297 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 20:22:50 +00:00
Bo Peng
c2440d06d1 Cosmetic changes to how shortcuts are printed: S-C-S => C-S-s because S-S can be confusion, and Ctrl-Shift is more natural than Shift-Ctrl
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:34:35 +00:00
Bo Peng
bc86ac1804 Fix the shortcut input dialog bug (can not input Ctrl-blah)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21291 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:04:48 +00:00
Bo Peng
de8492cd1c To reduce confusion, stop displaying UserExtraUnbind items in the shortcut customization dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21290 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 15:25:30 +00:00
Bo Peng
a9519bda94 Document->settings: update embedded file list properly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21289 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 15:20:59 +00:00
Jürgen Spitzmüller
8c908a56f1 * src/frontends/qt4/GuiSearch.cpp:
- use selectAll function instead of home-brewn method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21287 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 13:16:45 +00:00
Bo Peng
eabe6081c9 Document->Settings: add currently embedded files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21284 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 02:59:24 +00:00
Bo Peng
7fb4a57ab9 Put bindings in defaultKeyBindings() to site.bind
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21268 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 19:45:43 +00:00
Bo Peng
3f6c8981ed Use proper label in the shortcut panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21266 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 17:09:50 +00:00
Richard Heck
a0a04e4886 Make GuiRef and GuiInclude subclasses of GuiCommand.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21264 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 16:51:07 +00:00
Edwin Leuven
608236c0db - add label and remove subclassed SearchLineEdit
- put ShortcutLineEdit in namespace lyx::frontend
- additional dialog layout tweaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21254 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 08:56:30 +00:00
Bo Peng
97db33209f Add initial embedding files panel in the Document->Settings dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21251 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 04:07:38 +00:00
Abdelrazak Younes
5ddc612b73 Splitup Font in saner bits:
* Font::FontBits -> FontInfo
* Font::FONT_XXX -> all enums transfered to FontEnums.h and renamed to FontXxx

I've replaced Font uses with FontInfo were the language() member was not needed, basically all draw() and metrics methods. There's one problematic cases with InsetQuotes which I solved by taking the Buffer main language.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21240 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 18:51:54 +00:00
André Pönitz
053e705779 move stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21239 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 16:42:18 +00:00
André Pönitz
9be03a87f9 start some work on file dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 16:32:20 +00:00
Bo Peng
4973ea12c0 simplify code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21231 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 04:13:40 +00:00
Bo Peng
0a554a5216 add a missing header file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21223 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 23:49:16 +00:00
Bo Peng
e6dd868635 PrefShortcuts: improve the Shortcut input dialog
* src/KeyMap.h|cpp: change interface and allow bind(KeySequence, FuncRequest)
	* src/frontends/qt4/CustomizedWidgets.h|cpp: use KeySequence, add event filter from Edwin
	* src/frontends/qt4/GuiPrefs.cpp: add another column, get KeySequence from the shortcut edit dialog directly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 20:43:22 +00:00
Richard Heck
dc45268132 Fix compilation problem due to same static variable in different files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21207 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 21:39:47 +00:00
André Pönitz
aece85ea30 188094 lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21206 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 20:36:17 +00:00
André Pönitz
3fa21d5b43 remove broken promises
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21204 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 18:27:08 +00:00
Bo Peng
6981d14f80 Fix spaces to please Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21203 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 15:56:32 +00:00
Abdelrazak Younes
eea79637c7 Move Color::color enum to ColorCode.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21198 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 12:41:02 +00:00
Bo Peng
e52c1ed1f9 Properly extend qt standard widgets, remove the search button in PrefShortcuts.
*  src/frontends/qt4/ui/ShortcutUi.ui: use ShortcutLineEdit
	*  src/frontends/qt4/ui/PrefShortcutsUi.ui: remove searchPB
	*  src/frontends/qt4/CustomizedWidgets.h|cpp: define ShortcutLineEdit and SearchLineEdit.
	*  src/frontends/qt4/GuiPrefs.h|cpp: remove ShortcutEdit
	*  src/frontends/qt4/Makefile.am: build system changes
	*  development/scons/scons_manifest.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21193 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 03:08:22 +00:00
André Pönitz
e7aa8ce683 cosmetics... less than intented
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21190 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 22:55:02 +00:00
Uwe Stöhr
35240f328d EmbeddedFiles.cpp, GuiPrefs.cpp, PDFSupportUi.ui: fix some typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21188 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 22:02:48 +00:00
Abdelrazak Younes
d7c3ab3203 * Paragraph: Move more things to Paragraph::Private
- remove META_INSET from Paragraph.h
- move text_ container to Private. I know this put there for performance reason but I don't see any penalty with this move. I guess this is because Buffer loading doesn't use Paragraph::getChar() anymore. I will move performance critical code to Paragraph::Private when/if we detect them.
- replace Paragraph::value_type with straight char_type: this was more noise than anything.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21163 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:08:55 +00:00
André Pönitz
b99433e73b cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21157 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 21:41:17 +00:00
Richard Heck
2f4d0ae27e Remove methods marked for removal from InsetCommandParams. Yeah, we can do that now. ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21154 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 18:51:04 +00:00
Richard Heck
85bad159fe Some comments and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21151 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 15:58:10 +00:00
Richard Heck
4064d2c468 InsetInclude becomes an InsetCommand.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21149 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 15:02:15 +00:00
Jürgen Spitzmüller
72801c16e2 * src/frontends/qt4/ui/ParagraphUi.ui:
- fix several duplicated accelerators (bug 4277)
* src/frontends/qt4/GuiParagraph{.cpp, h}:
	- reintroduce labelMap; the current implementation
	  displays wrong accelerators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21144 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 08:10:55 +00:00
Richard Heck
82d27555cd Licensing info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21141 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 05:07:45 +00:00
Bo Peng
9c17666dd3 PrefShortcuts: ShortcutEdit, adapted from Edwin's patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21140 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 03:48:02 +00:00
Dov Feldstern
3d33cd8bd3 Compilation fix for Qt 4.2.1 in GuiPrefs.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21125 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:49:55 +00:00
Jean-Marc Lasgouttes
31df080af2 * qt4/Makefile.am: make sure that Resource-related files are deleted by make clean
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21119 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 13:58:13 +00:00
Jean-Marc Lasgouttes
e044946f23 * GuiPrefs.cpp (PrefShortcuts::setItemType): compilation fix for
qt 4.1 and some simplification.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 13:56:59 +00:00
Abdelrazak Younes
9ec9f70df5 fix MSVC warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21107 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 22:12:12 +00:00
Bo Peng
f8836d8b12 Embedding: remove the embeddingChanged signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 19:08:53 +00:00
Bo Peng
97c59d6e6d Remove the embedding dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 17:56:22 +00:00
Stefan Schimanski
8a301ccc16 * make it compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21100 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 17:15:02 +00:00
Bo Peng
64bd1b1f38 PrefShortcuts: handle user unbind items that have no corresponding item in system bind file. Its removal action should be treated differently
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21096 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 05:30:43 +00:00
Bernhard Roider
1a77c867a2 CmdDef.cpp/h: A class that manages command definitions. The definitions are
by default read from lib/commands/default.def 
              A .def file allows to define a command with
              \define "Name" "lfun"
              where Name is the name of the new command and lfun is the code
              to be executed.
              \def_file "FileName"
              allows to include another .def file.
              The implementation of CmdDef is similar to KeyMap, i.e. there is 
              one instance created in the LyX.cpp that reads the .def file, holds 
              a list containing all definitions, and supplies access methods.


LFUN_CALL:    The new lfun is used to execute a command definition, e.g.
              call Name

If a toolbar item has the associated action "call Name" then the image 
lib/images/commands/Name.png is used for the button.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21093 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 23:27:03 +00:00
Bernhard Roider
3e6d4a6168 Search for toolbar images in the filesystem and afterwards in the resource.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21092 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 23:08:02 +00:00
Bo Peng
0755a1c9dc PrefShortcuts: Roughly finish the shortcut configuration panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21090 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:50:56 +00:00
Bo Peng
9321ad2736 add a \unbind keyword and a few utility functions (unbind, write, delkey) to KeyMap.h,.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:35:33 +00:00
Bo Peng
36f7fcdee0 add another format (BindFile) to KeySequence::print()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21087 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:28:05 +00:00
André Pönitz
fbb3abfeac cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21085 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:35:27 +00:00
André Pönitz
34889ec7b3 remove unused method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21082 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 14:56:46 +00:00
André Pönitz
f762cbf3c6 mainly cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 10:03:45 +00:00
Peter Kümmel
04ba7e1bb2 rcc: use -name option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21074 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 18:45:09 +00:00
Richard Heck
e158e07c29 InsetCommandParams() now takes an InsetCode rather than a string.
These changes are just adaptations to the new signature.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21072 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 17:22:55 +00:00
Bo Peng
b6c89e2db0 PrefShortcuts: Hide unmatched items instead of highlighting matched ones (JMarc's suggestion )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21071 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 16:49:04 +00:00
Enrico Forestieri
026013e1eb Compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21065 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 15:16:40 +00:00
Abdelrazak Younes
dc2f94a8b1 fix some warning and a bogus empty test.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21053 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 09:38:28 +00:00
Bo Peng
1503743eda PrefShortcuts: the buttons are almost usable now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21050 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 03:09:14 +00:00
André Pönitz
a02653e4dd isome more FileName shuffling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21048 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 23:03:51 +00:00
André Pönitz
988f372843 use FileName::isDirectory()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21047 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 21:10:35 +00:00
Peter Kümmel
0f939f0a79 add qrc file to cmake build process
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21045 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 19:35:38 +00:00