Abdelrazak Younes
79beb91e3a
Sanitize LyX singleton access by getting rid of ref() and cref() methods.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
647ac4a221
safeguards:
...
- move Previews singleton to LyX
- LyX.cpp: set singleton to zero at destruction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25594 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 07:16:00 +00:00
Abdelrazak Younes
f04afc6585
reverting the safeguard in 25591. There is an awful lot of things to clean up before we can add this safeguard!!!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:22:41 +00:00
Abdelrazak Younes
10c7f636a6
Add safeguard
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:17:52 +00:00
Abdelrazak Younes
d748af0299
Add a preference combo box for the preferred user interface language. The rc variable gui_language now require a language name and not its code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 13:32:27 +00:00
Abdelrazak Younes
1c83bf9420
GUI language via RC: some bug corrections.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 11:10:10 +00:00
Abdelrazak Younes
43d9183798
Idea from JMarc:
...
Merge env_gui_language into gui_language. "auto" now means that the language will be retrieved from the environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 13:23:44 +00:00
Abdelrazak Younes
b04c22ba67
Add two RC variables that can be used to set the GUI language:
...
- env_gui_language: set to true (default) if the language is to be retrieved from current environment variable.
- gui_language: specify language for GUI strings. Only used if env_gui_language is false
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25379 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:55:40 +00:00
Enrico Forestieri
593e06989a
Fix bug 4951
...
http://bugzilla.lyx.org/show_bug.cgi?id=4951
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25261 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:21:53 +00:00
Abdelrazak Younes
430296f4af
Hopefully fix http://bugzilla.lyx.org/show_bug.cgi?id=4918
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25207 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 13:05:24 +00:00
Abdelrazak Younes
af7b5b5e26
More sensible error messages.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25202 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 09:57:10 +00:00
Abdelrazak Younes
48cd43fd51
First part of http://bugzilla.lyx.org/show_bug.cgi?id=4918
...
Prevent deletion of LyX temporary directory is this is not a LyX created directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25199 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 09:34:11 +00:00
Abdelrazak Younes
b5f4c93599
Remove bug work around due to bad event loop startup process in 1.5.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25071 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 14:19:39 +00:00
Richard Heck
8921a18a89
Add LFUN_BRANCH_ACTIVATE and LFUN_BRANCH_DEACTIVATE, fixing bug 4341.
...
These have been added to BufferView::dispatch() and BufferView::getStatus() for now. Shortly, we'll be making wider use of Buffer::dispatch() and introducing Buffer::getStatus() and moving these and some other LFUNs there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 16:02:09 +00:00
Richard Heck
2ce7c41f03
Fix bug 4097: Give LyX an intelligent return value on file load errors.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24976 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 00:25:42 +00:00
Abdelrazak Younes
145585dc18
First step towards fixing bug 4588: move the ui file reading and the ToolbarBackend to the frontend.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24921 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:28:05 +00:00
Abdelrazak Younes
6186965651
Get rid of Application::initGlobalMenu().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 08:57:41 +00:00
Jean-Marc Lasgouttes
9b4a26a252
rename assert.h to lassert.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
André Pönitz
7f461f4392
infrastructure for 'graceful asserts'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 21:49:34 +00:00
André Pönitz
c88e7a7ef6
simplify Lexer handling a bit more
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-03 20:55:09 +00:00
André Pönitz
11a0458d3f
next try...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 23:06:22 +00:00
André Pönitz
2012beb58e
revert last patch. there's something wrong, possibly unrelated to this
...
patch, but as this was rather largish...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 22:44:33 +00:00
André Pönitz
7677e9487c
simplify Lexer use a bit
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24098 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 22:14:45 +00:00
André Pönitz
8a14d5380a
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 09:32:38 +00:00
André Pönitz
821e276407
remove unused code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-22 09:05:09 +00:00
Stefan Schimanski
d63821939c
* create global menubar on Mac without a parent. It will be shown if no GuiView exists.
...
* fill global menubar with the normal actions
* capture the keyboard on the menubar if no GuiView exists. This
enables the shortcuts on Mac in those cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:11 +00:00
Richard Heck
6edb3984bf
BaseClassList --> LayoutFileList
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:53:21 +00:00
André Pönitz
e13cc7e90d
start moving MenuBackend to the frontend
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23523 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:50:27 +00:00
Richard Heck
224e6ad0a3
baseclasslist --> BaseClassList singleton. Prep for further type safety.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23322 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 14:49:01 +00:00
Abdelrazak Younes
8c8ff137da
Get rid of 'quitting' global variable. It is not needed anymore because all windows are closed in order now and the frontend/core is properly separated.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 12:30:41 +00:00
Richard Heck
4c6180d209
Try to make the distinction between base classes and text classes clearer in the code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:59:49 +00:00
Abdelrazak Younes
39e5dc250a
Fix crash with command line export
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22825 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 08:57:12 +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
91b4c2dfc6
Remove unneeded code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22817 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 23:12:32 +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
Richard Heck
5bef46157c
Add some comments, and change enum terminology to reflect actual purpose.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:25:25 +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
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
f2f7ec1a05
Cleanup the mess I introduced in rev 22165. This happened frequently lately, I am very sorry!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22167 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:46:34 +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
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
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
Enrico Forestieri
40dd6a1b08
Shutdown LyX server and socket before trying to remove the tempdir,
...
otherwise it would not be empty and could not be removed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21992 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 18:52:17 +00:00
André Pönitz
9b93a45374
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21855 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:41:23 +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
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
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
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