Commit Graph

3365 Commits

Author SHA1 Message Date
Edwin Leuven
74344a8f4b further ui cleanup: correct tab order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14856 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 13:46:28 +00:00
Edwin Leuven
27fa8c7d12 correct tab order + layout cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14855 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 13:07:05 +00:00
Abdelrazak Younes
4d5767fd9c * qt_helpers.[Ch]: new conversion from/to ucs4 strings and chars to/from QChar and QString.
* qfont_metrics.C: make use of above methods instead of those in unicode.[Ch]

* QLPainter.C: ditto

* QLyXKeySym.C: ditto + simplification and a BOOST_ASSERT that verifies that the event is one char only.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14852 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-30 14:59:07 +00:00
Abdelrazak Younes
72a680e261 small cleanup: delete two unneeded lines of code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14850 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-29 09:08:51 +00:00
Georg Baum
0df0e32b22 fix dropping of UNC filenames on windows (from Enrico)
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::dropEvent): Use toLocalFile instead of toString,
	because toString omits the first backslash of UNC paths.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14846 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-27 16:10:41 +00:00
Edwin Leuven
e28114779b minimal effort implementation of:
* float widget as a .ui file
* floatplacement.[Ch] -> FloatPlacement.[Ch] 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14838 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 13:40:01 +00:00
Edwin Leuven
e18dcb5b9d get rid of comments, c++ style casts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14837 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 10:52:49 +00:00
Georg Baum
f7d81fbabf clean up Abdel's cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14836 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 19:43:06 +00:00
Abdelrazak Younes
3cf9a75bb3 remove qPixmapFromMimeSource. This caused the inclusion of Qt3 support headers which we want to get rid of.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14835 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 19:37:40 +00:00
Abdelrazak Younes
4cdd558c70 * BufferView: delete firstLayout()
* LyXView: save two setLayout() calls that are done in updateLayoutChoice() anyway.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14833 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 16:55:31 +00:00
Abdelrazak Younes
c70f77354a That commit replaces the Buffer::message() signal emissions from within "BufferView_pimpl.C" and "lyxfind.C" with BufferView::message() signal emission.
* BufferView.h: new message boost signal.

* BufferView_pimpl.C: replace Buffer::message() with BufferView::message() signal emission.

* lyxfind.C: ditto.

* WorkArea:
  - displayMessage(): new private method that calls LyXView::message().
  - messageConnection_: new signal connection.
  - setBufferView(): handle BufferView connection/disconnection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14831 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 14:10:22 +00:00
Jean-Marc Lasgouttes
07864bd9f8 * src/frontends/LyXView.C (setBuffer): update the list of layouts
before setting the current layout.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14830 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 09:46:29 +00:00
Abdelrazak Younes
cd8b0e563c This commit fixes the crash caused by loading an empty corrupted document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14828 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 08:17:47 +00:00
Michael Schmitt
d2232b650e resolve last occurrence of QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14824 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 14:01:24 +00:00
Michael Schmitt
b124158c34 drop linuxdoc support (part 3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14818 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:57:45 +00:00
Abdelrazak Younes
83eb07fc4b Fix crash on exit after a Buffer switch.
Log:
* lyxfunc.C:
  - LyXFunc::dispatch(): put some save guards before using
    BufferView::cursor() and sendDispatchMessage().

* BufferView_pimpl.C
  - BufferView::Pimpl::setBuffer(): return before if exiting.

* WorkArea.C:
  - WorkArea::redraw(): update the toolbar when greying out.

* LyXView.C:
  - LyXView::setBuffer(): sanitization 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14815 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 08:27:51 +00:00
Jean-Marc Lasgouttes
9ee8395133 Do not make all menu entries checkable
* src/frontends/qt4/Action.C (Action): do not set entry to
	checkable by default; invoke update() to set it up.
	(update): only set checkable property if needed.

	* src/frontends/qt4/QLPopupMenu.C (populate): in the case of
          a Command menu item, let Action set itself up.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14811 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-22 09:38:03 +00:00
Abdelrazak Younes
61443d8641 * src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent):
new methods; invoke LyXView::updateToolbars() (bug 2423).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14809 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-21 09:14:18 +00:00
Abdelrazak Younes
4237016770 GuiWorkArea::inputMethodEvent(): remove unneeded Qt::KeyboardModifiers construction and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14803 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-18 09:25:45 +00:00
Abdelrazak Younes
a2d2d0c997 Fix resize bug (WorkArea not redrawn).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14800 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 22:01:59 +00:00
Abdelrazak Younes
8b67b6e357 This commit moves the busy cursor and formatting message handling from BufferView to WorkArea.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14799 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 22:00:07 +00:00
Abdelrazak Younes
5bda7ca222 This patch moves the dialogs hidding/update from BufferView::setBuffer() to LyXView::setBuffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14798 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:46:52 +00:00
Abdelrazak Younes
58e769d564 Cosmetic changes:
- put some spaces
- delete some comments
- reorder #include
- delete unneeded workWidth_ and workHeight_ members.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14787 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 17:15:17 +00:00
Abdelrazak Younes
440c634377 GuiWorkArea::inputMethodEvent(QInputMethodEvent * e):
compile fix and use of the proper QKeyEvent prototype.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14782 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 12:39:11 +00:00
Abdelrazak Younes
a9f3ec2b60 delete unneeded #ifdef
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14781 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:58:15 +00:00
Abdelrazak Younes
2223e5414e get rid of QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14780 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:49:25 +00:00
Abdelrazak Younes
1d985ede5f set eol-style to native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14777 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:01:27 +00:00
Abdelrazak Younes
bbd7b86d98 this was a remnant of qt3...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14772 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:04:54 +00:00
Abdelrazak Younes
4535977545 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14771 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:03:26 +00:00
Abdelrazak Younes
d150b99ed7 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14770 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:03:01 +00:00
Abdelrazak Younes
840a9a6d0e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14769 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:02:46 +00:00
Abdelrazak Younes
7ecb04d91e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14768 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:46 +00:00
Abdelrazak Younes
8a57064442 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14767 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:25 +00:00
Abdelrazak Younes
6e9dd92302 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14766 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:06 +00:00
Abdelrazak Younes
7774e06950 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14765 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:54 +00:00
Abdelrazak Younes
26c9642c16 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14764 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:36 +00:00
Abdelrazak Younes
778964380e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14763 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:11 +00:00
Abdelrazak Younes
ca6e17c52a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14762 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:59:28 +00:00
Abdelrazak Younes
fe5a193198 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14761 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:59:00 +00:00
Abdelrazak Younes
16d37fd803 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14760 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:46 +00:00
Abdelrazak Younes
9aac0f789a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14759 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:35 +00:00
Abdelrazak Younes
a9a6a5447d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14758 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:28 +00:00
Abdelrazak Younes
be9ae60c82 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14757 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:16 +00:00
Abdelrazak Younes
7bf7f56194 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14756 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:01 +00:00
Abdelrazak Younes
d1fd1a1f97 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14755 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:44 +00:00
Abdelrazak Younes
df076c43f4 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14754 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:29 +00:00
Abdelrazak Younes
8ae752ec32 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14753 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:15 +00:00
Abdelrazak Younes
b0203c1d15 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14752 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:05 +00:00
Abdelrazak Younes
19b3779d44 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14751 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:56:53 +00:00
Abdelrazak Younes
6240926584 get rid of QT3_SUPPORT (not complete) and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14750 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:56:30 +00:00
Abdelrazak Younes
6b399ede5d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14749 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:55:41 +00:00
Abdelrazak Younes
6aabd01568 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14748 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:55:23 +00:00
Abdelrazak Younes
6d3edcf760 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14747 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:44 +00:00
Abdelrazak Younes
ad45381bd6 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14746 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:22 +00:00
Abdelrazak Younes
550d0f0be8 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14745 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:12 +00:00
Abdelrazak Younes
dba6b54acc get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14744 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:53:44 +00:00
Abdelrazak Younes
77b7e8adea get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14743 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:53:10 +00:00
Abdelrazak Younes
ae2cce4188 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:59 +00:00
Abdelrazak Younes
4a2016826d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14741 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:45 +00:00
Abdelrazak Younes
766be8d03c get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14740 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:32 +00:00
Abdelrazak Younes
cb05434d79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14739 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:14 +00:00
Abdelrazak Younes
4b2eb61391 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14738 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:54 +00:00
Abdelrazak Younes
715685a31f get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14737 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:41 +00:00
Abdelrazak Younes
7b6815810d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14736 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:30 +00:00
Abdelrazak Younes
e6a07c092a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14735 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:02 +00:00
Abdelrazak Younes
49852dca94 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14734 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:34 +00:00
Abdelrazak Younes
92b3cd4074 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14733 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:14 +00:00
Abdelrazak Younes
43a8d1529b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14732 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:57 +00:00
Abdelrazak Younes
8eb5da91da get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14731 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:40 +00:00
Abdelrazak Younes
773f079a56 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14730 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:05 +00:00
Abdelrazak Younes
4a59eb800b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14729 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:48:24 +00:00
Abdelrazak Younes
c1bf7d7c8b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14728 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:52 +00:00
Abdelrazak Younes
7b8f73cc9a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14727 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:20 +00:00
Abdelrazak Younes
73f862e94b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14726 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:59 +00:00
Abdelrazak Younes
e2cf98e4f5 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14725 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:38 +00:00
Abdelrazak Younes
8762a5cab8 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14724 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:00 +00:00
Abdelrazak Younes
64317e45cd get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14723 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:48 +00:00
Abdelrazak Younes
e30a1e10a7 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14722 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:13 +00:00
Abdelrazak Younes
8670d821c4 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14721 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:44:15 +00:00
Abdelrazak Younes
76bf4f5a79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14720 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:43:48 +00:00
Abdelrazak Younes
05c1fd0832 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14718 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:46 +00:00
Abdelrazak Younes
b1bb25dbb3 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14717 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:26 +00:00
Abdelrazak Younes
82a90fceb7 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14716 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:36:59 +00:00
Georg Baum
9e87592940 autotools support for including moc files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14715 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 23:10:31 +00:00
Bo Peng
0ba726bb7a Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually.
* src/frontends/qt3/[all mocable files].C: add #include _moc.cpp at the end.
	* development/scons/SConstruct: do not compile _moc files individually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14714 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 22:10:20 +00:00
Jean-Marc Lasgouttes
f8a5da9048 * configure.ac: add LYX_DATE variable for release date.
* config/lyxinclude.m4: reset release date for development versions.

	* src/version.C.in: make lyx_release_date a placeholder.

	* src/lyx_main.C (parse_version): 
	* src/frontends/controllers/ControlAboutlyx.C (getVersion): change a 
	bit the display of LyX release date.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14712 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:54:55 +00:00
Jean-Marc Lasgouttes
a772437054 Fix bug 2068 and do some cleanup
* src/CutAndPaste.C (setSelectionRange, replaceWord): remove.
	(replaceSelectionWithString): select the new string after
	replacement; add a bool parameter indicating in which sense the
	selection is made.

	* src/lyxfind.C (replace): adapt to above changes.
	(find): comment out debug message.

	* src/frontends/controllers/ControlSpellchecker.C (isLetter):
	rename parameter.
	(nextWord): take a LCursor as parameter; set the selection over
	the word that has been found.
	(check): adapt to changes above (the length of the word is not
	necessarily the length of the selection -- fixes bug 2068).
	(replace): use cap::replaceSelectionWithString




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14708 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:12:20 +00:00
Abdelrazak Younes
dd429b7f26 This commit should hopefully fix all scrolling issues. As an added bonus, mouse scrolling should be faster due to a deleted call to BufferView::update() that was not usefull (the important call to updateMetrics() is done in WorkArea()).
Log:
* BufferView/pimpl:
  - scrollDocView(): call to BufferView::update() deleted.
  - scrollDocView(): second part is now in setCursorFromScrollbar()
  - setCursorFromScrollbar(): new method.

* WorkArea:
  - setBufferView(): show the cursor immediately
  - redraw(): call to updateScrollbar()
  - updateScrollbar(): new method
  - scrollBufferView(): fix it and show the cursor immediately.

* qt4/GuiWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.
  - paintEvent(): scrollbar related code deleted

* qt3/QWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.

* qt3/QContentPane
  - paintEvent(): scrollbar related code deleted




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14704 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 15:24:38 +00:00
Edwin Leuven
c98992f774 rework mathdelimiter dialog and add size combo...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14703 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 14:22:47 +00:00
Abdelrazak Younes
1004ba79f1 Port of Martin Vermeer's QNote work: fix of framed and shaded note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14696 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 08:57:00 +00:00
Abdelrazak Younes
f475b7bde6 This commit transfers most of the LyXView use from BufferView to WorkArea, most notably:
LyXView::updateLayoutChoice();
LyXView::updateToolbars();
LyXView::getLyXFunc().processKeySym(key, state);
LyXView::dispatch(cmd);

* BufferView
  - workAreaKeyPress(): deleted

* BufferView::pimpl
  - gui(): deleted
  - workAreaKeyPress(): deleted
  - workAreaDispatch(): special FuncRequest transfered to WorkArea::dispatch()

* WorkArea
  - WorkArea(): now needs a LyXView
  - lyx_view: new member
  - scrollBufferView(): new method

* qt4/GuiWorkArea: adapted to above changes
* qt4/GuiImplementation: ditto
* qt3/GuiWorkArea: ditto
* qt3/QContentPane: ditto
* gtk/GuiWorkArea: ditto
* gtk/GWorkArea: ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14695 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 21:57:23 +00:00
Edwin Leuven
e305fdea55 replace depreciated bitBlt() with calls to qpainter's drawPixmap()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14691 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 14:55:34 +00:00
Edwin Leuven
5d28253e20 * furter simplifications:
- simplify setting/unsetting of item
  - consolidate 2 methods that set bulletSelected
  - store character (int) instead of pointer to item

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:07:13 +00:00
Lars Gullik Bjønnes
c46b7d8955 Merge the unicode branch into trunk.
- src/support/unicode.[Ch]: new files with functions for converting
  to and fro ucs4, ucs2 and utf8.
- src/support/docstring.h: specialization of basic_string that
  holds a uint32_t internally.
- Several functions changed to use char_type instead of char or unsigned char.
- Qt3 and Qt4 sends ucs2 on to core
- Gtk sends ucs4 on to core
- Read and write utf-8 .lyx files.
- font_metrics and painter updated to handle ucs4 chars as input.
- Quite a bit of ugly compability code, conversion string->docstring, etc.
- Have fun...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 22:54:59 +00:00
Abdelrazak Younes
c5a4f61f33 This commit creates a error_lists map member inside the Buffer class.
I had no choice but to use string for the map key. This is
because the only information that could be passed to the controller is a
string.

With this new architecture, persistent error lists are now possible.

* Buffer
  - errorList_, addError(),  : deleted
  - std::map<std::string, ErrorList> errorLists_ : new member
  - errorList(std::string const & type): associated accessors

* buffer_funcs.C
  - bufferErrors(Buffer const & buf, TeXErrors const & terr): now needs a third errorList argument
  - bufferErrors(Buffer const & buf, ErrorList const & el): deleted.

* Converter
  - convert(): now needs an ErrorList argument instead of filling the Buffer errorList member directly.
  - runLaTeX(): ditto
  - scanLog(): ditto

* CutAndPaste.C
  - pasteParagraphList(): ditto
  - pasteSelection(): ditto

* lyxtext.h/text.C
  - readParagraph(): ditto
  - LyXText::read(): ditto

* importer:
  - Importer::Import(): ditto

* BufferView_pimpl.C
  - loadLyXFile(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly.

* exporter.C
  - Export(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly in lyxfunc.C

* ControlErrorList.C
  - initialiseParams(): translation operation transfered here from LyXView::showErrorList().

* LyXView.C
  - LoadLyXFile(): add a showErrorList("Parse") call.
  - showErrorList(): simplified due to code transferred to the ControlErrorList.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14652 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:16:43 +00:00
Peter Kümmel
f01c7f5983 GuiWorkArea: #undef QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14649 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:55:03 +00:00
Edwin Leuven
1a08a29b0f make bullet configuration functional in the document settings dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14647 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:44:05 +00:00
Abdelrazak Younes
58d136aa60 * GuiView:
- mainWidget(): deleted

* GuiImplementation.C: adapted to above change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14624 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 16:25:51 +00:00
Edwin Leuven
e9df3c9a5e remove accelerator keys (Alt+) from designer files...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14608 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-10 14:16:30 +00:00
Bo Peng
3002118616 Add more controls to the view-source dialog.
* src/buffer.[nC]: can write full source, separaet/rename makeXXXFile.
	* src/graphics/PreviewLoader.C: rename maleLaTeXFile to writeLaTeXSource
	* src/frontends/qt3/QViewSourceDialog.h, ui/QViewSourceDialogBase.ui,
		QViewSource.[hC], QViewSourceDialog.[hC]: qt3 frontend
	* src/frontends/qt4/QViewSource.[hC], ui/QViewSourceUi.ui,
		QViewSourceDialog.[hC]: qt4 frontend
	* src/frontends/controllers/ControlViewSource.[hC]: controller


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14539 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-04 13:59:12 +00:00
Bo Peng
7119a923d8 Add rc.geometry_height, geometry_width, geometry_xysaved to the preference dialogs (qt3/qt4).
* src/frontends/qt3/QPrefs.C, QPrefsDialog.C, ui/QPrefUIModule.ui
	* src/frontends/qt4/QPrefsDialog.C, ui/QPrefUi.ui


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14518 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-30 15:52:43 +00:00
Georg Baum
e6e554d68c Fix redraw problems in qt3 and gtk
* src/frontends/gtk/GWorkArea.C
	(GWorkArea::onScroll): redraw the workarea
	(GWorkArea::onButtonPress): Call WorkArea::dispatch instead of
	BufferView::workAreaDispatch in order to redraw the workarea
	(GWorkArea::onButtonRelease): ditto
	(GWorkArea::onMotionNotify): ditto

	* src/frontends/WorkArea.h
	(dispatch): make public

	* src/frontends/qt3/QContentPane.C
	(QContentPane::scrollBarChanged): redraw the workarea
	(QContentPane::generateSyntheticMous): Call WorkArea::dispatch instead
	of BufferView::workAreaDispatch in order to redraw the workarea
	(QContentPane::mousePressEvent): ditto
	(QContentPane::mouseReleaseEvent): ditto
	(QContentPane::mouseMoveEvent): ditto
	(QContentPane::doubleClickTimeout): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14517 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-30 14:57:01 +00:00
Bo Peng
c8e5ee867f load files from lyx_main.C instead of lyx_gui.C, do not add session-restored files to lastfile list.
* src/frontends/lyx_gui.h: add prototype for create_view
	* src/frontends/(gtk,qt3,qt4)/lyx_gui.C: separate start()
	* src/lyx_main.C: call create_view, load file, and call start


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14500 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 14:13:45 +00:00
Georg Baum
af5a867982 Give feedback if TeXFiles.py fails
* src/frontends/controllers/tex_helpers.h: doxyfy comment

	* src/frontends/controllers/tex_helpers.C
	(rescanTexStyles): Pop up a message box when TeXFiles.py fails


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14488 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-19 16:25:54 +00:00
Georg Baum
766709e999 fix bug 2687
* src/lyxfunc.C
	(quoteArg): new, quotes arguments for the "log" dialog
	(LyXFunc::dispatch): quote log filename

	* src/frontends/controllers/ControlLog.C
	(ControlLog::initialiseParams): parse \" as " and \\ as \ in filename


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14481 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 20:06:58 +00:00
Georg Baum
025a200c03 Fix bug 2524
* src/support/tests/test_convert: Change shell from bash to sh
	* src/support/tests/test_filetools: ditto
	* src/support/tests/test_lstrings: ditto
	* src/frontends/controllers/tests/test_biblio: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14468 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-16 10:04:26 +00:00
Abdelrazak Younes
00c37e4781 This commit transfer the ErrorList handling from LyXView to Buffer. It also removes the need for the error signal and simplify the kerbel <-> frontend communication. I think it should speed-up _significantly_ the latex compilation for example in case of problematic files.
TODO 1: All occurrences of "LyXView::showErrorList()" in the "kernel" should be replaced by a boost signal emission (Buffer::errors()). This signal is already connected to this showErrorList() slot.

TODO 2: The ErrorList mechanism is used wrongly in a number of place, most notably in "Converter.C". Instead of replacing the ErrorList in the "Buffer" class, the "Converter" class should maintain its own list instead and connect directly to the LyXView::showErrorList() slot.

Buffer:
* errorList_: new private member and associated access methods.
* setErrorList(): new accessor method.
* addError(): apend an error to the errorList_.
* error(): deleted.
* errors(): new boost signal, unused for now. Shall be used instead of LyXView::showErrorList().

LyXView:
* getErrorList(), addError(), errorlist_, errorConnection_: deleted.
* errorsConnection_: new boost connection for the Buffer::errors() signal.

lyx_main.C:
* LyX::exec2(): manually print all errors.

BufferView.h: remove unneeded ErrorList forward declaration.

BufferView::pimpl::menuInsertLyXFile(): delete Buffer::error() connection and add a FIXME comment

text.C: Use Buffer::addError() instead of Buffer::error() signal emission.

ControlErrorList.C: get the ErrorList from the Buffer instead of LyXView


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14467 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 22:43:37 +00:00
Georg Baum
5ddabc82ac compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14461 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 11:39:58 +00:00
Georg Baum
c77d599622 fix line ending
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14460 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 11:37:20 +00:00
Abdelrazak Younes
a4032074c9 This commit continues the drastic diet operated on BufferView. It removes all boost signal connections from BufferView::pimpl and put them in LyXView. LyXView already inherits from boost::signals::trackable so this is not a big deal. If you look closely at the signal connections, it all makes sense IMO.
With this change, the only difference between BufferView.h and BufferView_pimpl.h is "cursor.h" so I think it is time to merge the two classes at last.

BufferView:
* showErrorList(), getErrorList(): transfered to LyXView.

BufferView::pimpl
* addError(), showReadonly(), connectBuffer(), disconnectBuffer(): transfered to LyXView.

CutAndPaste.C: adapted to API changes
frontends/controllers/ControlErrorList.C: ditto
lyxfunc.C: ditto 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14458 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-14 21:47:48 +00:00
Edwin Leuven
5f9b864a20 Math Panel:
* add dropdown menu with fractions
* repair panel switching



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14457 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-14 13:14:41 +00:00
Abdelrazak Younes
93f7adabbb This commit removes the needRedraw() interface and simplify the screen update procedure. It also fixes all crash problems.
The performance may suffer a bit because we do the second drawing step in all cases. This could be possibly optimized out by checking the return value of the BufferView::update() method in "lyxfunc.C:1610". But it is maybe better to keep those two parts of the frontend ignorant of each other: the event handling and the drawing.

BufferView:
* needRedra(), need_redraw_: deleted.
* updateMetrics(): now public.
* update(): only do the first drawing step. Returns true if a full updateMetrics is needed before drawing on screen.

WorkArea:
* redraw(): no check on BufferView::needRedraw(), call updateMetrics() unconditionally. 
* processKeySim(): uneeded "redraw()" call commented out. When/if the call to LyXView::redrawWorkArea() in "lyxfunc.C:1610" is not needed anymore, this line should be uncommented out.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14456 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-14 09:56:21 +00:00
Abdelrazak Younes
e1a5cb74a8 GUI API Cleanup step 3: merge with "younes" branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14448 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-13 16:37:55 +00:00
Michael Schmitt
5c6840c106 remove redrawGUI()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-12 19:10:17 +00:00
Michael Schmitt
03c97c2f3c * gtk/lyx_gui.C:
* qt3/lyx_gui.C:
        * qt3/Dialogs.C:
        * qt4/lyx_gui.C:
        * qt4/Dialogs.C: remove special handling of preamble dialog
        (which no longer exists)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14416 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 18:58:44 +00:00
Abdelrazak Younes
c07d5e9dd0 delete some Qt "signals" macro reference.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14414 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 17:44:36 +00:00
Abdelrazak Younes
a1b60fb963 delete Painter::fillPolygon() and associated frontend implementations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14410 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 15:14:29 +00:00
Georg Baum
c9c6ed0b7f Split clipboard and X selection
* src/LyXAction.C
	(LyXAction::init): handle new LFUN_CLIPBOARD_PASTE

	* src/insets/insettabular.C
	(InsetTabular::doDispatch): ditto

	* src/insets/insetbox.C
	(InsetBox::doDispatch): ditto

	* src/insets/insetert.C
	(InsetERT::doDispatch): ditto
	(InsetERT::getStatus): ditto

	* src/insets/insetcharstyle.C
	(InsetCharStyle::doDispatch): ditto

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::selectionRequest): stuff selection, not clipboard

	* src/mathed/math_nestinset.C
	(MathNestInset::lfunMousePress): get stuff selection, not clipboard
	(MathNestInset::lfunMouseRelease): clipboard -> selection in
	commented code

	* src/CutAndPaste.C
	(cutSelection): ditto

	* src/frontends/{qt3,gtk}/GuiImplementation.C
	(GuiImplementation::newWorkArea): create new selection, not clipboard,
	since the clipboard is now an object
	(GuiImplementation::destroyWorkArea): destroy selection, not clipboard

	* src/frontends/{qt4,qt3,gtk}/GuiSelection.h: new, copied from
	GuiClipboard.h

	* src/frontends/{qt4,qt3,gtk}/GuiSelection.C: new, copied from
	GuiClipboard.C

	* src/frontends/{qt3,gtk}/GuiImplementation.h
	(selection): new accessor for selection_
	(selection_): new, the global selection object

	* src/frontends/{qt4,qt3,gtk}/Makefile.am: add GuiSelection.C and
	GuiSelection.h

	* src/frontends/{qt4,qt3,gtk}/GuiClipboard.C
	(GuiClipboard::get): return clipboard, not selection
	(GuiClipboard::put): stuff clipboard, not selection

	* src/frontends/{qt4,qt3,gtk}/GuiClipboard.h
	(haveSelection): remove (this is now in GuiSelection)

	* src/frontends/{qt3,gtk}/GuiClipboard.h
	(old_work_area_): remove, since it is not needed anymore

	* src/frontends/gtk/ghelpers.C
	(getGTKStockIcon): handle LFUN_CLIPBOARD_PASTE

	* src/frontends/Clipboard.h
	(haveSelection): remove (this is now in Selection)

	* src/frontends/qt4/GuiImplementation.[Ch]
	(GuiImplementation::selection): new accessor for selection_

	* src/frontends/Gui.h
	(selection): New accessor for the global selection object

	* src/frontends/Selection.h; new, copied from Clipboard.h

	* src/frontends/Makefile.am: add Selection.h

	* src/text3.C
	(various): s/clipboard().haveSelection/selection().haveSelection/

	(LyXText::dispatch): handle LFUN_CLIPBOARD_PASTE
	(LyXText::getStatus): ditto

	* src/lfuns.h: new lfun LFUN_CLIPBOARD_PASTE

	* lib/ui/stdmenus.ui: add new lfun LFUN_CLIPBOARD_PASTE


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14408 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 11:32:25 +00:00
Georg Baum
e8d3644466 disable concept checks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14407 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 08:53:57 +00:00
Lars Gullik Bjønnes
66d51d71f9 Let Meta be an alias for Alt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14404 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 17:30:21 +00:00
Michael Schmitt
0961bc2d97 * FileDialog.h: make private_ member private
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14403 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 17:27:17 +00:00
Lars Gullik Bjønnes
7afbc908eb Fix some WorkArea fallouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14391 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 01:08:47 +00:00
Lars Gullik Bjønnes
e7b69c030e Extracted from r14281
* BufferView:
    - hideCursor(): deleted (for real)
* frontends/GuiCursor:
    - deleted. Functionality transfered to WorkArea.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14389 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 22:55:22 +00:00
Lars Gullik Bjønnes
ae348f8af9 Extracted from r14281
* BufferView:
    - hideCursor(): deleted
* frontends/WorkArea:
    - now each instance handles its blinking cursor independently.
    - hideCursor(), howCursor(), toggleCursor(): new methods


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14387 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 22:06:50 +00:00
Lars Gullik Bjønnes
34eb5e241e Extracted from r14281
* rowpainter:
    - paintText: take the painter as an argument


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14384 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 21:16:21 +00:00
Lars Gullik Bjønnes
721497d5e5 Extracted from 14281
* frontends/WorkArea:
  - processKeySym(): new method that should be used by all frontends
    instead of buffer_view_->workAreaKeyPress().
* frontends/qt4/GuiWorkArea:
  - keyPressEvent(): call WorkArea::processKeySym() instead of
    buffer_view_->workAreaKeyPress().
* frontends/gtk/GWorkArea.C:
* frontends/qt3/QContentPane.C:
  - call WorkArea::processKeySym() instead of
    buffer_view_->workAreaKeyPress()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14383 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 21:04:21 +00:00
Lars Gullik Bjønnes
28c5673ff4 Extracted from r14281
* frontends/LyXView:
	- redrawWorkArea(): new temporary method called from within
	  BufferView::pimpl::update() that calls WorkArea::redraw()
	  in order to do the actual screen redrawing.
* frontends/WorkArea:
	- the redraw() method now check if the the attached bufferView
	  needs a screen redraw().
* BufferView:
	- needsRedraw(): new method for WorkArea::redraw()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 20:24:32 +00:00
Georg Baum
457b334926 Move more methods from WorkArea to Clipboard in qt3 and gtk
* src/frontends/gtk/GWorkArea.[Ch]
	(getClipboard): Move to GuiClipboard.[Ch]
	(putClipboard): ditto

	* src/frontends/gtk/Makefile.am: add GuiClipboard.C

	* src/frontends/gtk/GuiClipboard.C: new file

	* src/frontends/gtk/GuiClipboard.h
	(get, put): only declare

	* src/frontends/qt3/Makefile.am: add GuiClipboard.C

	* src/frontends/qt3/QWorkArea.[Ch]
	(getClipboard): Move to GuiClipboard.[Ch]
	(putClipboard): ditto

	* src/frontends/qt3/GuiClipboard.C: new file

	* src/frontends/qt3/GuiClipboard.h
	(get, put): only declare

	* src/frontends/qt4/GuiClipboard.C: remove unneeded include
	(GuiClipboard::get): adjust debug output
	(GuiClipboard::put): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14378 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 15:11:18 +00:00
Georg Baum
a7fe209a13 * src/frontends/gtk/GuiImplementation.C: include config.h
* src/frontends/qt4/GuiImplementation.C: ditto
	* src/frontends/qt4/TocModel.C: ditto
	* src/frontends/qt4/GuiClipboard.C: ditto

	* src/frontends/gtk/GuiClipboard.h fix spelling
	* src/frontends/qt3/GuiClipboard.h: ditto
	* src/frontends/qt4/GuiClipboard.h: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14375 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 13:27:43 +00:00
Michael Schmitt
4eccc22119 remove xforms relicts
* src/frontends/qt3/QPrefs.C:
        * src/frontends/controllers/BCView.tmpl:
        * src/support/package.h: fix/remove comment

        * po/pocheck.pl: no longer check for xforms shortcuts
        * development/Win32/lyx.vcproj: ignore ControlPreamble.[Ch]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 09:40:15 +00:00
Michael Schmitt
0be696bff0 * remove various xforms relicts, in particular:
* src/frontends/controllers/ControlPreamble.[Ch]:
        remove files, since this controller was only used
        by the xforms frontend


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14352 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 19:28:59 +00:00
Abdelrazak Younes
a0d93c0c49 * MSVC Compilation fix: #warning is not supported.
* Change the comment to "This is not a memory leak:"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14347 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 11:28:05 +00:00
Lars Gullik Bjønnes
1afb2a6b05 Remove quite a few compiler warnings:
- Change unsigned -> signed
	- Change signed -> unsigned
        - Add a cast or two (really few of those)
	- Remove/comment out unused variables
	- Comment out unused arguments
	- Add missing cases to switches.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14344 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 08:18:51 +00:00
Georg Baum
da9cdaf218 Reduce calls of ::exit()
* src/main.C
	(main): return LyX::exec()

	* src/frontends/{gtk,qt3,qt4}/lyx_gui.C
	(lyx_gui::exec): Change return value to int
	(lyx_gui::start): ditto

	* src/frontends/qt[3,4]/lyx_gui.C
	(lyx_gui::exit): Call QApplication::exit instead of ::exit, this
	hack is not needed anymore

	* src/frontends/lyx_gui.h
	(lyx_gui::exec): Change return value to int
	(lyx_gui::start): ditto

	* src/lyxtextclasslist.[Ch]
	(LyXSetStyle): SChange return value to bool and don't call ::exit

	* src/lyx_main.C
	(showFileError): Don't exit anymore

	* src/lyx_main.[Ch]
	(LyX::exec): Change return value to int
	(LyX::priv_exec): ditto
	(LyX::exec2): ditto
	(LyX::init): Change return value to bool
	(LyX::readRcFile): ditto
	(LyX::readUIFile): ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14339 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-05 17:01:26 +00:00
Lars Gullik Bjønnes
1ff081141d Extraced from r14281 from the younes branch.
* BufferView, BufferView::pimpl:
	- metrics_info_: private variable holding ViewMetricsInfo
	- viewMetricsInfo(): accessor function
	- updateMetrics(): renamed from metrics(), sets metrics_info_
	- update(): change to use updateMetrics()

* frontends/WorkArea:
	- redraw(): get the ViewMetricsInfo through accessor to BufferView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14331 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 00:04:46 +00:00
Lars Gullik Bjønnes
b1a87cc778 Extracted from r14281 from the younes branch.
* BufferView,BufferView::Pimple:
	-  workArea_ removed
* frontends/LyXView:
	- now contains a pointer reference to the current
	  WorkArea instead of the BufferView.
        - workArea(): temporary access method
* frontends/WorkArea:
	- bufferView(): new access methods.

* GuiImplementation: updated due to above changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14329 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 22:31:51 +00:00
Lars Gullik Bjønnes
22861453fe Remove the XForms frontend, update the autotools files, and fixup po.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14320 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 19:20:25 +00:00
Georg Baum
0c0c43b8eb merge booktabs branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14319 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 19:13:56 +00:00
Bo Peng
84d52901d7 Add config.h to src/frontends/qt4/Application.C to avoid MSVC BOOST_ALL_NO_LIB problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14284 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-01 18:14:58 +00:00
Jürgen Spitzmüller
4644b0a2a4 * ui/QPrefUIModule.ui: fix layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14282 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-01 11:22:33 +00:00
Lars Gullik Bjønnes
05eeb3ae77 make sure eol-style native is set and fix eol style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14279 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 14:50:44 +00:00
Lars Gullik Bjønnes
d2b2aa8124 Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14277 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 14:37:33 +00:00
Lars Gullik Bjønnes
ecaff823df delete some emits that I missed, add comments about emitting signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14273 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 14:11:50 +00:00
Georg Baum
4ae87a3bb8 Call python with the -tt switch to make mixed tab/space indentation an error
* src/support/os.[Ch]
	(python): new function, return the python command

	* lib/lyx2lyx/lyx_1_5.py
	(revert_font_settings): replace tabs with spaces

The rest is simply s/python/python -tt/ and
s/"python"/lyx::support::os::python()/ where appropriate.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14270 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 13:54:01 +00:00
Lars Gullik Bjønnes
96a7b5d0af Do not use the qt "keyword" emit. Make qt not emit it at all. (pun intended)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14269 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 11:57:17 +00:00
Jean-Marc Lasgouttes
a185f95d32 remove annoying debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14260 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 14:22:31 +00:00
Edwin Leuven
c8a91657d2 some connections not made because of:
- signal typo
- slots typos 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14257 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 12:48:51 +00:00
Abdelrazak Younes
9f5f309ea2 QURL renamed to UrlView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14256 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 12:09:25 +00:00
Edwin Leuven
1f0a608b99 put citation dialog in good state:
- natbib style (the combox) works
- when moving/up down the item stays selected (allowing sequential ups/downs)
- when deleting the next selected entry gets focus (allowing sequential deletes)
- the info is now shown and updated
- find subsets the available entries as you type
- no additional find dialog (removed QCitationFind.ui)
- selecting with double-click
- removal of unused: Citation class, toVector() function


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14252 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 08:28:16 +00:00
Jean-Marc Lasgouttes
f861ba839d Patch from Martin Vermeer for bug 2218.
* src/frontends/xforms/FormSpellchecker.C (update): 
	* src/frontends/qt[34]/QSpellchecker.C (update_contents): fix bug 
	2218: Spellchecker doesn't pop up dialogue window for the first 
	misspelled word.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14246 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 12:20:16 +00:00
Jean-Marc Lasgouttes
44a5cfc89c Renaming:
cygwin_path_fix		->	windows_style_tex_paths
	cygwin_path_fix_needed	->	tex_expects_windows_paths
	check_cygwin_path	->	check_windows_style_tex_paths
	use_cygwin_paths	->	use_windows_paths
	RC_CYGWIN_PATH_FIX	->	RC_TEX_EXPECTS_WINDOWS_PATHS

	* src/frontends/qt4/ui/QPrefCygwinPathUi.ui
	* src/frontends/qt3/ui/QPrefCygwinPathModule.ui
	  Updated checkbutton label and description

	* src/frontends/qt4/QPrefsDialog.C
	  (PrefCygwinPath): cygwin_path_fix -> windows_style_tex_paths
	  (QPrefsDialog): Enable checkbutton for native WIN32 builds

	* src/frontends/xforms/forms/form_preferences.fd
	  Updated label and name of checkbutton

	* src/frontends/xforms/FormPreferences.C
	  (apply): cygwin_path_fix -> windows_style_tex_paths
	           check_cygwin_path -> check_windows_style_tex_paths
	  (build): Enable checkbutton for native WIN32 builds
	  (update): Ditto
	  (feedback): Updated description

	* src/frontends/qt3/QPrefs.C
	* src/frontends/qt3/QPrefsDialog.C
	* src/frontends/qt3/QPrefsDialog.h
	  Renaming as above, enabled checkbutton for native WIN32 builds

	* src/support/os_unix.C
	* src/support/os.h
	* src/support/os_win32.C
	  Renaming cygwin_path_fix -> windows_style_tex_paths
	* src/support/os_cygwin.C
	  Ditto
	  (external_path, external_path_list): always return windows
	  style paths, not depending on the checkbutton status

	* src/lyxrc.C
	* src/lyxrc.h
	* src/lyxfunc.C
	* src/lyx_main.C
	  Renaming

	* lib/configure.py
	  Renaming, more meaningful diagnostics




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:51:24 +00:00
Abdelrazak Younes
f6cf605786 Potential Bux fix: call "update()" instead of "vieport()->update()"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14241 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:28:04 +00:00
Peter Kümmel
152d55cdf6 add link to the task tracker of the Qt4 bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14240 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 07:53:44 +00:00
Bo Peng
f58609c765 Replace TeXFiles.sh by TeXFiles.py
* src/frontends/controllers/tex_helpers.C: call TeXFiles.py
	* lib/scripts/TeXFiles.py: add
	* lib/scripts/TeXFiles.sh: remove
	* lib/scripts/convertDefault.py: add encoding line
	* lib/Makefile.am


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14238 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 02:39:03 +00:00
Peter Kümmel
2deec8a96a Pass width = 0 and height = 0 as unsigned int to indicate the usage of the geometry option
* lyx_main.C set             width and height to 0
	* frontends/qt3/lyx_gui.C    test on 0
	* frontends/qt4/lyx_gui.C    test on 0  
	


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14235 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 18:07:10 +00:00
Abdelrazak Younes
a8bf36a413 GUI API Cleanup step 2: merge of the "younes" branch. What's missing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14234 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 17:18:28 +00:00
Abdelrazak Younes
2d4589b4ae Removed files because of conflict when merging the "younes" branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14233 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 17:14:25 +00:00
Abdelrazak Younes
33a6fc122c Removed file because of conflict when merging the "younes" branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14232 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 17:13:31 +00:00
Abdelrazak Younes
3287c44f33 GUI API Cleanup step 2: merge of the "younes" branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14231 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 16:55:35 +00:00
Bo Peng
5ea7194a60 Generate python code in GraphicsConverter.C, replace convertDefault.sh by convertDefault.py
* src/graphics/GraphicsConverter.C: generate python instead of shell scripts
	* src/converter.C: use convertDefault.py
	* lib/scripts/convertDefault.sh: translated to convertDefault.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14223 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 14:17:12 +00:00
Lars Gullik Bjønnes
702621aabd Fix 64bit<->32bit issue.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14203 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-25 11:27:33 +00:00
Edwin Leuven
641fae7ed5 * reset color/linestyle/linewidth cache to QPen defaults on QPainter creation
* get rid of QPainter arg in setQPainterPen(..)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14201 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-25 11:18:56 +00:00
Abdelrazak Younes
2335670309 * qp_ member is now used for painting
* QLPainter::start() now re-initialize qp_
* QLPainter::end() now end qp_


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14184 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-23 14:12:17 +00:00
Peter Kümmel
0afff7f598 * frontends/qt3/QtView.C: use QRect ctor, coding style
* frontends/qt4/lyx_gui.C: coding style
	* frontends/qt4/GuiView.C: use QRect ctor, coding style



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14183 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-23 10:19:31 +00:00
Georg Baum
dbc5bf6f8a * readd accidentally removed code (rev 14143)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14177 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-22 09:25:02 +00:00
Peter Kümmel
04cfa65a96 fix: qt3/qt4 save/restore of the window geometry and maximize status
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14166 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-21 10:30:32 +00:00
Abdelrazak Younes
42e04448d5 QtView renamed to GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14162 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-20 14:35:36 +00:00
Abdelrazak Younes
d46add7754 QtView renamed to GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14154 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-20 09:33:01 +00:00
Abdelrazak Younes
c7d3458f99 * [qt3, xforms, gtk]/GuiImplementation::newWorkArea: return 0
* qt4/Application.[Ch]: was not merged (GUI API cleanup merge) for an unknown reason
* qt4/clipboard.C: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14153 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-20 09:17:19 +00:00
Abdelrazak Younes
d8ae51dbe1 This is the merging of the GUI API cleanup branch that was developed in svn+ssh://svn.lyx.org/lyx/lyx-devel/branches/personal/younes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14152 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-20 08:39:16 +00:00
Jürgen Spitzmüller
54acb900ad The Grand Font Selection Redesign:
* lib/lyx2lyx/LyX.py (format_relation): add file format 247 (from Georg BAUM).

        * lib/lyx2lyx/lyx_1_5.py: add convert_font_settings, revert_font_settings (from Georg BAUM).

        * lib/chkconfig.ltx: Test for newly supported font packages

        * lib/doc/LaTeXConfig.lyx.in: document newly supported font packages

        * lib/doc/UserGuide.lyx: document new UI.

        * lib/doc/Extended.lyx: update PostScript font documentation

        * development/FORMAT: document file format change 246->247.

        * src/tex-strings.[Ch]: new strings tex_fonts_roman, tex_fonts_sans, 
           tex_fonts_monospaced (with GUI equivalents).

        * src/buffer.C: Format up to 247.

        * src/bufferparams.C:
        new params fontsRoman, fontsSans, fontsTypewriter, fontsDefaultFamily,    
        fontsSC, fontsOSF, fontsSansScale and fontsTypewriterScale
        (LyXFont const BufferParams::getFont): consider switch of default family.
        (string const BufferParams::loadFonts): new method to get all the LaTeX 
        font stuff done.

        * src/paragraph.C
        (LyXFont const Paragraph::getFont):
        (LyXFont const Paragraph::getLabelFont):
        (LyXFont const Paragraph::getLayoutFont): user buffer's not textclass's 
        default font

        * src/text.C
        (int LyXText::leftMargin):
        (int LyXText::rightMargin): user buffer's not textclass's default font

        * src/text2.C
        (LyXFont LyXText::getFont):
        (LyXFont LyXText::getLayoutFont):
        (LyXFont LyXText::getLabelFont): check if the family of the default document 
        font has been customized.

        * src/frontends/gtk/GDocument.[Ch]: implement new font ui (from Georg BAUM).

        * src/frontends/gtk/glade/document.glade: implement new font ui (from Georg BAUM). 

        * src/frontends/qt3/Makefile.dialogs: add new FontModuleBase

        * src/frontends/qt3/ui/FontModuleBase.ui: new File

        * src/frontends/qt3/ui/TextLayoutModuleBase.ui: remove font widgets

        * src/frontends/qt3/QDocument.C
        * src/frontends/qt3/QDocumentDialog.[Ch]: implement new font ui

        * src/frontends/qt4/Makefile.dialogs: add new FontUi

        * src/frontends/qt4/QDocumentDialog.[Ch]: implement new font ui

        * src/frontends/qt4/ui/FontUi.ui: new File

        * src/frontends/qt4/ui/TextLayoutUi.ui: remove font widgets

        * src/frontends/qt4/ui/compile_uic.sh: add new FontUi

        * src/frontends/xforms/FormDocument.[Ch]: implement new font ui

        * src/frontends/xforms/forms/form_document.fd: add new font tab.

        * src/frontends/controllers/ControlDocument.[Ch]
        (char ControlDocument::fontfamilies):
        (char ControlDocument::fontfamilies_gui):
        (bool ControlDocument::isFontAvailable):
        (bool ControlDocument::providesSC):
        (bool ControlDocument::providesOSF):
        (bool ControlDocument::providesScale): new methods, providing font info.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14143 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-19 08:10:17 +00:00
Peter Kümmel
1ec4d26038 restore (14087) save/load geometry logic of qt3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14140 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-18 09:05:41 +00:00
Abdelrazak Younes
30649ec3b6 Those classes (and their associated [Ch] files) are renamed :
QLAction -> Action
lcolorcache -> ColorCache
qfont_loader.C -> FontLoader




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14136 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-17 09:14:58 +00:00
Jean-Marc Lasgouttes
2b8d396ef2 use our own font width cache with Qt/Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14128 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-16 14:39:52 +00:00
Peter Kümmel
e97a9f1043 don't break the geometry option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14122 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-15 16:01:55 +00:00
Georg Baum
20802b7c9b remove references to deleted file QtLyXView.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14112 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 19:26:23 +00:00
Georg Baum
9cbcb8a39e * src/frontends/qt3/lyx_gui.C: compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14109 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 15:49:36 +00:00
Peter Kümmel
fcdbd2357d load and restore correct windows postion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14104 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 14:42:24 +00:00
Peter Kümmel
f6c5d0d63a load and restore correct windows postion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14103 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 14:34:50 +00:00
Peter Kümmel
cd53c67f79 load and restore correct windows postion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14102 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 14:32:39 +00:00
Peter Kümmel
c02f6409ec Fix Qt4 resize bug.
Don't use  multiple QPainter::begin on the same QPaintDevice.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14101 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-14 14:23:25 +00:00
Peter Kümmel
bbc587ee9a coding style and readability corrections
Index: frontends/qt3/lyx_gui.C
===================================================================
--- frontends/qt3/lyx_gui.C     (revision 14088)
+++ frontends/qt3/lyx_gui.C     (working copy)
@@ -222,12 +222,12 @@


 void start(string const & batch, vector<string> const & files,
-          unsigned int width, unsigned int height, int posx, int posy, bool isMax)
+          unsigned int width, unsigned int height, int posx, int posy, bool maximize)
 {
        // this can't be done before because it needs the Languages object
        initEncodings();

-       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
+       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize));
        LyX::ref().addLyXView(view_ptr);

        QtView & view = *view_ptr.get();
Index: frontends/qt3/QtView.C
===================================================================
--- frontends/qt3/QtView.C      (revision 14088)
+++ frontends/qt3/QtView.C      (working copy)
@@ -55,12 +55,12 @@



-QtView::QtView(unsigned int width, unsigned int height, bool isMax)
+QtView::QtView(unsigned int width, unsigned int height, bool maximize)
        : QMainWindow(), LyXView(), commandbuffer_(0)
 {
        resize(width, height);

-       if(isMax)
+       if (maximize)
                this->setWindowState(WindowMaximized);

        qApp->setMainWidget(this);
@@ -164,7 +164,7 @@
 void QtView::closeEvent(QCloseEvent *)
 {
        LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
-       //don't save maximized values
+       // don't save maximized values
        this->showNormal();
        // save windows size and position
        LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
Index: frontends/qt3/QtView.h
===================================================================
--- frontends/qt3/QtView.h      (revision 14088)
+++ frontends/qt3/QtView.h      (working copy)
@@ -37,7 +37,7 @@
        Q_OBJECT
 public:
        /// create a main window of the given dimensions
-       QtView(unsigned int w, unsigned int h, bool isMax);
+       QtView(unsigned int w, unsigned int h, bool maximize);

        ~QtView();

Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C     (revision 14088)
+++ frontends/qt4/lyx_gui.C     (working copy)
@@ -228,12 +228,12 @@


 void start(string const & batch, vector<string> const & files,
-          unsigned int width, unsigned int height, int posx, int posy, bool isMax)
+          unsigned int width, unsigned int height, int posx, int posy, bool maximize)
 {
        // this can't be done before because it needs the Languages object
        initEncodings();

-       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
+       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize));
        LyX::ref().addLyXView(view_ptr);

        QtView & view = *view_ptr.get();
Index: frontends/qt4/QtView.C
===================================================================
--- frontends/qt4/QtView.C      (revision 14088)
+++ frontends/qt4/QtView.C      (working copy)
@@ -70,12 +70,12 @@
 } // namespace anon


-QtView::QtView(unsigned int width, unsigned int height, bool isMax)
+QtView::QtView(unsigned int width, unsigned int height, bool maximize)
        : QMainWindow(), LyXView(), commandbuffer_(0)
 {
        resize(width, height);

-       if(isMax)
+       if (maximize)
                this->setWindowState(Qt::WindowMaximized);

        mainWidget_ = this;
Index: frontends/qt4/QtView.h
===================================================================
--- frontends/qt4/QtView.h      (revision 14088)
+++ frontends/qt4/QtView.h      (working copy)
@@ -47,7 +47,7 @@
        Q_OBJECT
 public:
        /// create a main window of the given dimensions
-       QtView(unsigned int w, unsigned int h, bool isMax);
+       QtView(unsigned int w, unsigned int h, bool maximize);

        ~QtView();

Index: frontends/lyx_gui.h
===================================================================
--- frontends/lyx_gui.h (revision 14088)
+++ frontends/lyx_gui.h (working copy)
@@ -57,7 +57,7 @@
  * batch commands, and loading the given documents
  */
 void start(std::string const & batch, std::vector<std::string> const & files,
-           unsigned int width, unsigned int height, int posx, int posy, bool isMax);
+           unsigned int width, unsigned int height, int posx, int posy, bool maximize);

 /**
  * Enter the main event loop (\sa LyX::exec2)
Index: lyx_main.C
===================================================================
--- lyx_main.C  (revision 14088)
+++ lyx_main.C  (working copy)
@@ -307,7 +307,7 @@
                // initial geometry
                unsigned int width = 690;
                unsigned int height = 510;
-               bool isMax = false;
+               bool maximize = false;
                // first try lyxrc
                if (lyxrc.geometry_width != 0 && lyxrc.geometry_height != 0 ) {
                        width = lyxrc.geometry_width;
@@ -322,7 +322,7 @@
                        if (!val.empty())
                                height = convert<unsigned int>(val);
                        if (session().loadSessionInfo("WindowIsMaximized") == "yes")
-                               isMax = true;
+                               maximize = true;
                }
                // if user wants to restore window position
                int posx = -1;
@@ -335,7 +335,7 @@
                        if (!val.empty())
                                posy = convert<int>(val);
                }
-               lyx_gui::start(batch_command, files, width, height, posx, posy, isMax);
+               lyx_gui::start(batch_command, files, width, height, posx, posy, maximize);
        } else {
                // Something went wrong above
                quitLyX(false);



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14089 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-13 08:24:43 +00:00
Peter Kümmel
226acfcbab Qt3/Qt4:
- don't save geometry values of the maximized lyx window
   - save/restore the maximized property of the lyx window

- fix changed lyx_gui::start interface for xform and gtk


Index: frontends/gtk/lyx_gui.C
===================================================================
--- frontends/gtk/lyx_gui.C	(revision 14083)
+++ frontends/gtk/lyx_gui.C	(working copy)
@@ -123,7 +123,7 @@
 
 
 void lyx_gui::start(string const & batch, std::vector<string> const & files,
-		    unsigned int width, unsigned int height, int posx, int posy)
+		    unsigned int width, unsigned int height, int posx, int posy, bool)
 {
 	boost::shared_ptr<GView> view_ptr(new GView);
 	LyX::ref().addLyXView(view_ptr);
Index: frontends/qt3/lyx_gui.C
===================================================================
--- frontends/qt3/lyx_gui.C	(revision 14083)
+++ frontends/qt3/lyx_gui.C	(working copy)
@@ -222,12 +222,12 @@
 
 
 void start(string const & batch, vector<string> const & files,
-	   unsigned int width, unsigned int height, int posx, int posy)
+	   unsigned int width, unsigned int height, int posx, int posy, bool isMax)
 {
 	// this can't be done before because it needs the Languages object
 	initEncodings();
 
-	boost::shared_ptr<QtView> view_ptr(new QtView(width, height));
+	boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
 	LyX::ref().addLyXView(view_ptr);
 
 	QtView & view = *view_ptr.get();
Index: frontends/qt3/QtView.C
===================================================================
--- frontends/qt3/QtView.C	(revision 14083)
+++ frontends/qt3/QtView.C	(working copy)
@@ -55,10 +55,13 @@
 
 
 
-QtView::QtView(unsigned int width, unsigned int height)
+QtView::QtView(unsigned int width, unsigned int height, bool isMax)
 	: QMainWindow(), LyXView(), commandbuffer_(0)
 {
 	resize(width, height);
+	
+	if(isMax)
+		this->setWindowState(WindowMaximized);
 
 	qApp->setMainWidget(this);
 
@@ -160,6 +163,9 @@
 
 void QtView::closeEvent(QCloseEvent *)
 {
+	LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
+	//don't save maximized values
+	this->showNormal();
 	// save windows size and position
 	LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
 	LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(height()));
Index: frontends/qt3/QtView.h
===================================================================
--- frontends/qt3/QtView.h	(revision 14083)
+++ frontends/qt3/QtView.h	(working copy)
@@ -37,7 +37,7 @@
 	Q_OBJECT
 public:
 	/// create a main window of the given dimensions
-	QtView(unsigned int w, unsigned int h);
+	QtView(unsigned int w, unsigned int h, bool isMax);
 
 	~QtView();
 
Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C	(revision 14083)
+++ frontends/qt4/lyx_gui.C	(working copy)
@@ -228,12 +228,12 @@
 
 
 void start(string const & batch, vector<string> const & files,
-	   unsigned int width, unsigned int height, int posx, int posy)
+	   unsigned int width, unsigned int height, int posx, int posy, bool isMax)
 {
 	// this can't be done before because it needs the Languages object
 	initEncodings();
 
-	boost::shared_ptr<QtView> view_ptr(new QtView(width, height));
+	boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
 	LyX::ref().addLyXView(view_ptr);
 
 	QtView & view = *view_ptr.get();
Index: frontends/qt4/QtView.C
===================================================================
--- frontends/qt4/QtView.C	(revision 14083)
+++ frontends/qt4/QtView.C	(working copy)
@@ -70,11 +70,14 @@
 } // namespace anon
 
 
-QtView::QtView(unsigned int width, unsigned int height)
+QtView::QtView(unsigned int width, unsigned int height, bool isMax)
 	: QMainWindow(), LyXView(), commandbuffer_(0)
 {
 	resize(width, height);
 
+	if(isMax)
+		this->setWindowState(Qt::WindowMaximized);
+
 	mainWidget_ = this;
 
 //	setToolButtonStyle(Qt::ToolButtonIconOnly);
@@ -182,11 +185,12 @@
 void QtView::closeEvent(QCloseEvent *)
 {
 	// save windows size and position
-	LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
-	LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(height()));
+	LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(this->normalGeometry().width()));
+	LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(this->normalGeometry().height()));
+	LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
 	if (lyxrc.geometry_xysaved) {
-		LyX::ref().session().saveSessionInfo("WindowPosX", convert<string>(x()));
-		LyX::ref().session().saveSessionInfo("WindowPosY", convert<string>(y()));
+		LyX::ref().session().saveSessionInfo("WindowPosX", convert<string>(this->normalGeometry().x()));
+		LyX::ref().session().saveSessionInfo("WindowPosY", convert<string>(this->normalGeometry().y()));
 	}
 	// trigger LFUN_LYX_QUIT instead of quit directly
 	// since LFUN_LYX_QUIT may have more cleanup stuff
Index: frontends/qt4/QtView.h
===================================================================
--- frontends/qt4/QtView.h	(revision 14083)
+++ frontends/qt4/QtView.h	(working copy)
@@ -47,7 +47,7 @@
 	Q_OBJECT
 public:
 	/// create a main window of the given dimensions
-	QtView(unsigned int w, unsigned int h);
+	QtView(unsigned int w, unsigned int h, bool isMax);
 
 	~QtView();
 
Index: frontends/xforms/lyx_gui.C
===================================================================
--- frontends/xforms/lyx_gui.C	(revision 14083)
+++ frontends/xforms/lyx_gui.C	(working copy)
@@ -256,7 +256,7 @@
 
 
 void start(string const & batch, vector<string> const & files,
-	   unsigned int width, unsigned int height, int posx, int posy)
+	   unsigned int width, unsigned int height, int posx, int posy, bool)
 {
 	int const geometryBitmask =
 		XParseGeometry(geometry, &posx, &posy, &width, &height);
Index: frontends/lyx_gui.h
===================================================================
--- frontends/lyx_gui.h	(revision 14083)
+++ frontends/lyx_gui.h	(working copy)
@@ -57,7 +57,7 @@
  * batch commands, and loading the given documents
  */
 void start(std::string const & batch, std::vector<std::string> const & files,
-           unsigned int width, unsigned int height, int posx, int posy);
+           unsigned int width, unsigned int height, int posx, int posy, bool isMax);
 
 /**
  * Enter the main event loop (\sa LyX::exec2)
Index: lyx_main.C
===================================================================
--- lyx_main.C	(revision 14083)
+++ lyx_main.C	(working copy)
@@ -307,6 +307,7 @@
 		// initial geometry
 		unsigned int width = 690;
 		unsigned int height = 510;
+		bool isMax = false;
 		// first try lyxrc
 		if (lyxrc.geometry_width != 0 && lyxrc.geometry_height != 0 ) {
 			width = lyxrc.geometry_width;
@@ -320,6 +321,8 @@
 			val = session().loadSessionInfo("WindowHeight");
 			if (!val.empty())
 				height = convert<unsigned int>(val);
+			if (session().loadSessionInfo("WindowIsMaximized") == "yes")
+				isMax = true;
 		}
 		// if user wants to restore window position
 		int posx = -1;
@@ -332,7 +335,7 @@
 			if (!val.empty())
 				posy = convert<int>(val);
 		}
-		lyx_gui::start(batch_command, files, width, height, posx, posy);
+		lyx_gui::start(batch_command, files, width, height, posx, posy, isMax);
 	} else {
 		// Something went wrong above
 		quitLyX(false);



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14088 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-13 08:05:00 +00:00
Abdelrazak Younes
7efc6e9e0a Deleted because not used anywhere.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14079 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-11 21:45:01 +00:00
Abdelrazak Younes
5c4d89d816 Simple optimisation: reuse current QPainter if no there's no change in settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14078 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-11 21:22:36 +00:00
Edwin Leuven
73a4be7143 more cleanup: some formatting and handle mouse events in their event handlers (and not in event())
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14072 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-11 14:28:10 +00:00
Abdelrazak Younes
a9390a6b8d Fix Windows crash on exit with "static LQApplication"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14055 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-09 09:37:51 +00:00
Peter Kümmel
8a552374b9 - remove usage of qt3 support functions.
- undef QT3_SUPPORT until the QT3_SUPPORT-logic will be inverted.
- QLocale::system().name() returns e.g de_DE but the Qt file name is 
  qt_de.


Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C     (revision 14043)
+++ frontends/qt4/lyx_gui.C     (working copy)
@@ -9,6 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */

+#undef QT3_SUPPORT
+
 #include <config.h>

 #include "lyx_gui.h"
@@ -55,6 +57,8 @@
 #include <QEventLoop>
 #include <QTranslator>
 #include <QTextCodec>
+#include <QLocale>
+#include <QLibraryInfo>

 using lyx::support::ltrim;
 using lyx::support::package;
@@ -167,19 +171,22 @@

        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x
-       QTranslator qt_trans(0);
-       if (qt_trans.load(QString("qt_") + QTextCodec::locale(),
-                         qInstallPathTranslations())) {
+       QTranslator qt_trans;
+       QString language_name = QString("qt_") + QLocale::system().name();
+       language_name.truncate(5);
+       if (qt_trans.load(language_name,
+               QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
+       {
                qApp->installTranslator(&qt_trans);
                // even if the language calls for RtL, don't do that
-               qApp->setReverseLayout(false);
+               qApp->setLayoutDirection(Qt::LeftToRight);
                lyxerr[Debug::GUI]
                        << "Successfully installed Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << fromqstr(language_name) << std::endl;
        } else
                lyxerr[Debug::GUI]
                        << "Could not find  Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << fromqstr(language_name) << std::endl;

 /*#ifdef Q_WS_MACX
        // These translations are meant to break Qt/Mac menu merging
@@ -260,9 +267,7 @@
        // During screen update/ redraw, this method is disabled to
        // prevent keyboard events being handed to the LyX core, where
        // they could cause re-entrant calls to screen update.
-#if QT_VERSION >= 0x030100
-       qApp->processEvents(QEventLoop::ExcludeUserInput);
-#endif
+       qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
 }



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14046 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-08 14:27:44 +00:00
Georg Baum
716626aa0b app -> qApp, forgot this with the last patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14038 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-08 06:53:11 +00:00
Georg Baum
042d5a0242 Fix crash on exit (bug 2549) by correct usage of QApplication
* src/lyx_cb.C
	(quitLyX): lyx_gui::exit takes now an argument

	* src/frontends/{gtk,xforms}/lyx_gui.C
	(lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2
	(void lyx_gui::exit): add exit status argument

	* src/frontends/qt{3,4}/lyx_gui.C
	(cleanup): new function for pointer cleanup
	(lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2,
	turn static variables into automatic variables
	(void lyx_gui::exit): add exit status argument
	(start): Use cleanup()
	(exit): ditto

	* src/frontends/lyx_gui.h
	(parse_init): remove
	(exec): new
	(exit): Take exist status argument

	* src/lyx_main.[Ch]
	(LyX::priv_exec): split into LyX::priv_exec and LyX::exec2

	* src/lyx_main.C
	(lyx_exit): New, choose the right exit function
	(showFileError): call lyx_exit
	(LyX::queryUserLyXDir): ditto
	(LyX::init): ditto
	(LyX::priv_exec): ditto
	(LyX::priv_exec): Replace want_gui by lyx_gui::use_gui
	(LyX::priv_exec): replace lyx_gui::parse_init by lyx_gui::exec and
	exec2
	(LyX::init): Replace gui argument by lyx_gui::use_gui


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14036 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-07 20:08:37 +00:00
John Spray
84d0c509b4 Text encoding hack and removal of cited-keys searching
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14023 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-06 17:47:28 +00:00
John Spray
87ce9b7647 escape special characters in strings passed to gtk as markup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14022 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-06 16:49:23 +00:00
Georg Baum
56cd160c39 compile fix for OS X
* src/frontends/qt4/QRef.C: s/ControlRef/lyx::frontend::ControlRef/

	* src/frontends/qt4/QRef.h: ditto

	* src/frontends/qt4/Dialogs.C:
	(Dialogs::build): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14020 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-06 10:10:11 +00:00
Georg Baum
d98eaedac7 * src/frontends/qt4/QCitation.h: Fix compiler warning about /*
inside a comment


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14009 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-05 16:09:56 +00:00
Abdelrazak Younes
4f9ddcbcb4 remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14001 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-04 21:15:33 +00:00
Abdelrazak Younes
52557ce331 remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14000 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-04 20:50:41 +00:00
Abdelrazak Younes
f9f72cfa0c remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13999 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-04 20:49:09 +00:00
Martin Vermeer
1a77233c5f Add support for framed.sty
* src/LaTeXFeatures.C: add framed.sty

	(const * simplefeatures[]: add framed.sty
	(const LaTeXFeatures::getPackages): define shadecolor

	* src/insets/insetnote.h

	* src/insets/insetnote.C
	(const init_notetranslator):
	(InsetNote::setButtonLabel): add Framed and Shaded
	(InsetNote::latex): add output
	(InsetNote::validate): require framed.sty

	* src/buffer.C
	(BufferList bufferlist): new LyX version 246

	* src/frontends/qt3/ui/QNoteDialogBase.ui: add

	* src/frontends/qt3/QNoteDialog.C: add

	* src/frontends/qt3/QNote.C
	(QNote::update_contents): add framed, shaded
	(QNote::apply): add framed, shaded

	* src/LColor.[Ch]: add background colour for shaded

	* lib/lyx2lyx/LyX.py: New version support

	* lib/lyx2lyx/lyx_1_5.py: convert/revert

	* lib/chkconfig.ltx: add framed.sty

	* src/frontends/xforms/FormNote.C
	(FormNote::build):
	(FormNote::update): add FIXME

	* src/frontends/gtk/GNote.C
	(GNote::doBuild):
	(GNote::update):
	(GNote::apply): add FIXME

	* development/FORMAT: document format increase



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13993 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-03 16:46:27 +00:00
Georg Baum
e8bb11969d * src/frontends/qt3/lyx_gui.C
(LQApplication): remove empty destructor

	* src/frontends/qt4/lyx_gui.C
	(LQApplication): remove empty destructor


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13992 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-03 14:18:33 +00:00
Abdelrazak Younes
6a742b7aa0 This patch removes qscreen.[Ch] and simplify the cursor drawing on screen. Basically, we paint now only if needed. So there's no need anymore to handle the "no cursor" pixmap saving.
SConscript: removed qscreen.C
frontends/qt4/Makefile.am: removed qscreen.C
frontends/screen.h: remove workarea() constness
frontends/qt3/qscreen.[Ch]: ditto
frontends/gtk/GScreen.[Ch]: ditto
frontends/xforms/xscreen.[Ch]: ditto
frontends/qt4/LyXScreenFactory.C: now return the QWorkarea directly
frontends/qt4/QWorkArea.[Ch]: inherits LyXScreen, handle the cursor painting
frontends/qt4/qscreen.[Ch]: removed 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13981 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-02 12:01:28 +00:00
Edwin Leuven
924d8f471c small cleanup: we don't need to store the funcrequest
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13980 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-01 20:34:22 +00:00
Edwin Leuven
40783d2ebb don't crash: apply values before closing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13979 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-01 20:33:37 +00:00
Edwin Leuven
98a75b6456 replace if/else with switch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13974 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-31 14:46:01 +00:00
Edwin Leuven
5c8f40106a Add new tableinsertwidget
+ Remove table widget from inserttable dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13972 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-31 12:53:05 +00:00
Abdelrazak Younes
c4edb019f5 fix "posx, posx" typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13968 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-30 13:39:34 +00:00
Jean-Marc Lasgouttes
0fbd5c2588 * src/frontends/*/lyx_gui.C:
* src/frontends/lyx_gui.h: change width and height parameters to unsigned int.

* src/frontends/xforms/lyx_gui.C: compilation fix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13967 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-30 10:20:35 +00:00
Bo Peng
f9c7473ed3 Move window width/height/posx/posy from frontends to lyx_main.C, from Bo Peng (ben.bob@gmail.com)
* src/frontends/ALLFRONTENDS/lyx_gui.C: use passed width/height/posx/posy in lyx_gui::start
	* src/frontends/lyx_gui.h: prototype change for lyx_gui::start
	* src/lyx_main.C: determine windows size and position from lyxrc or session.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13953 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 15:11:19 +00:00
Bo Peng
a21c78f25b Some MSVC2003/2005 compatibility fixes, from Bo Peng (ben.bob@gmail.com)
* src/support/lyxsum.C: fix HAVE_DECL_ISTREAMBUF_ITERATOR
	* src/support/mkdir.C: add direct.h for windows
	* src/support/forkedcall.C: add cerrno under windows
	* src/support/tempname.C: define S_IRUSR and S_IWUSR
	* src/support/package.C.in: define PATH_MAX=256



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13951 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 14:56:08 +00:00
Abdelrazak Younes
2485efbf75 additional comments related to rev 13948
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13949 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 07:38:09 +00:00
Abdelrazak Younes
d1d896e23c Fix hang on exit under Windows.
TODO: reorganize this code. In particular make sure that this advise from Qt documentation is respected:

Since the QApplication object does so much initialization, it must be created before any other objects related to the user interface are created.

Right now this is not the case. For example, "FontLoader::initFontPath()" is called before the QApplication creation. Moreover, I suspect that a number of global variables contains Qt object that are initialized before the passage through parse_init(). This might also explain the message displayed by Qt that caused the hanging:

QObject::killTimer: timers cannot be stopped from another thread



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13948 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-28 22:10:33 +00:00
Abdelrazak Younes
9614a1d698 Fix for Qt4 crash on exit under linux by Georg Baum and myself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13943 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-27 19:58:02 +00:00
Georg Baum
cf7e4e5e03 * src/frontends/qt4/ui/pch.h: remove
* src/frontends/qt4/ui/Makefile.am: remove unused rules


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13942 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-27 14:38:34 +00:00
Abdelrazak Younes
a7c2820c49 Enable Font width caching.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13931 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 22:37:01 +00:00
Georg Baum
d544373734 Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
"Don't view/edit this format", and 'auto' means "Use the default viewer/editor".
	* src/format.C
	(fixCommand): Change semantics: "none" is equal to "", and "auto"
	is removed if canAutoOpenFile returns false.

	* src/frontends/xforms/FormPreferences.C
	(FormPreferences::SpellOptions::apply): "none" -> ""

	* src/lyxrc.C
	(LyXRC::read): "none" -> ""

	* lib/doc/Customization.lyx: Document the autoopen feature

	* lib/configure.py
	(checkProg): add optional not_found argument, defaulting to 'none'
	(checkViewer): new, equivalent to checkProg with not_found = 'auto'
	(checkFormatEntries): call checkViewer instead of checkProg for
	viewers and editors


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13929 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 11:57:22 +00:00
Abdelrazak Younes
04e8d1e65b qt3/qfont_loader.h: added comment about pointer reference.
qt4/qfont_loader.h: reverted to last version and added comment about pointer reference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13927 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 10:02:01 +00:00
Abdelrazak Younes
3efac59557 qt4 optimisation:
* qfont_loader.h: enable the font caching
* QWorkArea: disable intermediate QImage caching, use QPixmap directly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13893 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-21 08:49:02 +00:00
Georg Baum
5b83287abe * src/format.[Ch]
(document_): new flag, telling whether this is a document format and
	we want to show this format in the export and view menus
	(documentFormat): accessor for document_

	* src/format.h: Add some documentation

	* src/frontends/qt3/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt3/ui/QPrefFileformatsModule.ui: Add documentCB checkbox

	* src/frontends/qt4/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt4/ui/QPrefFileformatsUi.ui: Add documentCB checkbox

	* src/frontends/xforms/FormPreferences.C
	(FormPreferences::Formats::build): handle new check_document checkbox
	(FormPreferences::Formats::input): ditto
	(FormPreferences::Formats::Add): ditto
	(FormPreferences::Formats::Browser): ditto

	* src/frontends/xforms/forms/form_preferences.fd: Add check_document
	checkbox

	* src/lyxrc.C
	(LyXRC::read): Remove compatibility code for 1.3 \format entries.
	Read the new format flags (but don't require them for 1.4
	compatibility)
	(LyXRC::write): Write the new format flags

	* src/MenuBackend.C
	(expandFormats): Remove the hardcoded exception for image formats
	and use Format::isDocument() instead

	* lib/doc/Customization.lyx: Document auto viever/editor and the
	"document format" flag


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13887 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-20 12:03:40 +00:00
Abdelrazak Younes
f8918b0859 * QPrefsDialog.[Ch]: Split up of QPrefsDialog into different modules (one per .ui file)
* panelstack.C: automatic creation of parent category if not already created.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13886 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-20 11:49:53 +00:00
Jean-Marc Lasgouttes
b5987c69a1 * src/frontends/qt3/qfontloader.C (initFontPath, ~FontLoader):
* src/frontends/qt4/qfontloader.C (initFontPath, ~FontLoader): add fonts in
lyxdir/fonts to system fonts in windows; remove them in destructor.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13877 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-20 08:21:58 +00:00
Edwin Leuven
cd457e07c8 make the formats/converters panels in the pref dialog set the correct parameters.
atm this does not work because it depends on the order in which these entries were added.

now the order is alphabetical and things are messed up.

the attached patch adds the nr of the format/converter to the listwidgetitem as a type and uses that to get to the right details


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13864 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 11:14:10 +00:00
Abdelrazak Younes
4a8ffce850 Small cleanup recommended by Lars Gullik Bjønnes:
Can you move the SUBDIRS var back to the top of the file pleae.
Also EXTRA_DIST should be at the top.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13863 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 09:37:35 +00:00
Abdelrazak Younes
995da7bafc Qt4 compilation speedup patch by Bo Peng and me.
* configure.ac: removed frontends/qt4/moc compilation.
* frontends/qt4/: moc files (*_moc.cpp) are now included at the end of relevant source file (*.C)
* SConscript: adapted to "moc included in .C file" change.
* frontends/qt4/Makefile.am:  adapted to "moc included in .C file" change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13860 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 08:51:12 +00:00
Georg Baum
e6a167ea5e Add \overset and \underset to math panel (bug 2533):
* lib/images/math/underset.xpm: new
	* lib/images/math/overset.xpm: new

	* lib/Makefile.am: add new files

	* src/frontends/controllers/ControlMath.C
	(latex_deco[]): add overset and underset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13858 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 07:10:56 +00:00
Lars Gullik Bjønnes
98f299e223 also add the qt4 setup to SConstruct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13826 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-10 18:31:13 +00:00
Lars Gullik Bjønnes
5e3b997b85 Remove the now superseeded SConscript files, and some small missing parts to SConstruct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13825 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-10 18:05:12 +00:00
Bo Peng
97e53edb81 Make scons work on mingw/windows, from Bo Peng (ben.bob@gmail.com)
* SConstruct: force the use of g++ under windows, and use the right libraries 
	* config/qt4.py: check QtGui4 etc as well.
	* src/SConscript: link to the right libraries
	* src/tex2lyx/SConscript: use the right libraries
	* src/frontends/qt3/SConscript: manually moc .h files under windows


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13814 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-09 13:01:45 +00:00
Bo Peng
4b5fae61d3 Some fixes to the scons-based building sytem, from Bo Peng (ben.bob@gmail.com)
* SConstruct: add extra_inc_path1, fix mingw logged spawn, try to handle QtCore4 etc
	* src/SConscript: remove lyx_base library
	* src/frontends/qt4/SConscript: remove some extra files 
	* Move scons_utils.py and qt4.py to config directory


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13813 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-08 21:03:01 +00:00
Michael Schmitt
1396ade8b1 fix LFUN enum values (some of them were broken by r13801)
adjust some commands according to the LyX naming conventions
(toggle-tooltip => tooltip-toggle, *-change(s) => change(s)-*) 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13811 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-08 18:09:19 +00:00
John Spray
39976d4a74 Glade tweakage: make OK button default in citation dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13810 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-08 14:47:03 +00:00
Edwin Leuven
f92abd5576 replaced last convenience class in iconpallete
browsebox is not build anymore and commented out in bulletsmodule

bullets are disabled in documentdialog: wasn't working before either

remove qt3support!



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13809 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-08 11:44:37 +00:00
Bo Peng
7168ce58b5 scons-based build system, by Bo Peng (ben.bob@gmail.com)
* SConstruct: main SConstruct file
	* scons_utils.py: utility functions
	* qt4.py: qt4 support is not yet official, and I have to patch this file
	* src/SConscript
	* src/insets/SConscript
	* src/graphics/SConscript
	* src/mathed/SConscript
	* src/frontends/qt3/SConscript
	* src/frontends/qt4/SConscript
	* src/frontends/SConscript
	* src/frontends/controllers/SConscript
	* src/support/SConscript
	* src/client/SConscript
	* src/tex2lyx/SConscript
	* boost/libs/SConscript
	* boost/libs/signals/src/SConscript
	* boost/libs/filesystem/src/SConscript
	* boost/libs/iostreams/src/SConscript
	* boost/libs/regex/src/SConscript


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13807 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-07 22:44:54 +00:00
Georg Baum
b6c3478eda Implement GUI for fixed size math delimiters (by Enrico Forestieri and me):
* src/lfuns.h
	(enum kb_action): New lfun LFUN_MATH_BIGDELIM

	* src/LyXAction.C
	(void LyXAction::init): New lfun LFUN_MATH_BIGDELIM

	* src/mathed/math_nestinset.C
	(void MathNestInset::doDispatch): remove debug message
	(void MathNestInset::doDispatch): remove LFUN_MATH_DELIM test for
	multiple cells (now in getStatus)
	(void MathNestInset::doDispatch): Handle LFUN_MATH_BIGDELIM
	(bool MathNestInset::getStatus): Disable LFUN_MATH_DELIM and
	LFUN_MATH_BIGDELIM when the selection spans multiple cells

	* src/frontends/qt3/ui/QDelimiterDialogBase.ui
	Added a combobox for selecting delimiter size.

	* src/frontends/qt3/QDelimiterDialog.[Ch]
	(fix_name, QDelimiterDialog, insertClicked, size_selected):
	Allow for fixed size delimiters.

	* src/frontends/gtk/GMathDelim.C: Add FIXME commnent for fixed size
	delimiters
	* src/frontends/qt4/QDelimiterDialog.C: ditto
	* src/frontends/xforms/FormMathsDelim.C: ditto

	* src/frontends/controllers/ControlMath.[Ch]:
	Added dispatchBigDelim() to deal with fixed size delimiters.

	* src/text3.C
	(void LyXText::dispatch): Handle LFUN_MATH_BIGDELIM
	(bool LyXText::getStatus): ditto

	* src/ToolbarBackend.C
	(string const ToolbarBackend::getIcon): Handle LFUN_MATH_BIGDELIM


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13806 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-07 10:51:19 +00:00
Edwin Leuven
123cc28dba getting rid of qt4 convenience classes:
Index: src/frontends/qt4/QCitationDialog.C
Index: src/frontends/qt4/QCitationDialog.h
Index: src/frontends/qt4/ui/QCitationFindUi.ui

Index: src/frontends/qt4/QPrefsDialog.C
Index: src/frontends/qt4/QPrefsDialog.h
Index: src/frontends/qt4/ui/QPrefColorsUi.ui
Index: src/frontends/qt4/ui/QPrefCopiersUi.ui
Index: src/frontends/qt4/ui/QPrefFileformatsUi.ui
Index: src/frontends/qt4/ui/QPrefConvertersUi.ui

Index: src/frontends/qt4/QParagraphDialog.C

no more qt3 drag n drop:

Index: src/frontends/qt4/QWorkArea.C

as discussed on list:

Index: src/frontends/qt4/QLyXKeySym.C
Index: src/frontends/qt4/QLyXKeySym.h

bit of repair here:

Index: src/frontends/qt4/ui/QAboutUi.ui
Index: src/frontends/qt4/QAbout.C

bit of cleaning here (no separate color column, but rather icon)

Index: src/frontends/qt4/QBranches.C

got rid of this altogether:

Index: src/frontends/qt4/qcoloritem.C
Index: src/frontends/qt4/qcoloritem.h
Index: src/frontends/qt4/Makefile.am

+ filedialog to qt4 one



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13805 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-07 10:20:43 +00:00
Abdelrazak Younes
aabf2d6d5a Remove <climits> for pch.h as this header is not used anywhere in the qt4 frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13804 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-06 14:41:23 +00:00
Abdelrazak Younes
668beb6c25 Remove "limits.h" for pch.h as this header is not used anywhere in the qt4 frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13803 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-06 13:58:41 +00:00
André Pönitz
da65e2b7fb rename LFUN enum values according to their command (as used in th minibuffer/bind files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13801 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-05 20:23:12 +00:00
Edwin Leuven
1032cc5ae8 getting rid of even more qt3 convenience classes and unused headers...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13796 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-04 07:31:46 +00:00
Edwin Leuven
3c4e073313 get rid of convenience classes in the following dialogs (and associated implementation files):
Index: src/frontends/qt4/ui/QErrorListUi.ui
Index: src/frontends/qt4/ui/QExternalUi.ui
Index: src/frontends/qt4/ui/QSendtoUi.ui
Index: src/frontends/qt4/ui/QSpellcheckerUi.ui
Index: src/frontends/qt4/ui/QThesaurusUi.ui
Index: src/frontends/qt4/ui/QTexinfoUi.ui
Index: src/frontends/qt4/ui/QRefUi.ui



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13794 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-03 19:51:15 +00:00
Edwin Leuven
ee3e1bbba7 Replace Q3ListBox with QListWidget:
* QBibtexDialog.C
 * QBibtex.C
 * QBibtexUi.ui
 * QBibtexAddUi.ui
    


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13791 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-02 19:17:59 +00:00
Georg Baum
9e3c2e7cb9 * src/frontends/qt3/moc/Makefile.am: Remove extra qt3 include path
* src/frontends/qt3/ui/moc/Makefile.am: ditto
	* src/frontends/qt3/ui/*.ui: Add extra includes to the
	implementation rather than the declaration


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13789 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-02 13:07:38 +00:00
Georg Baum
f5ca956ab1 Convert ui files to qt3 format:
* src/frontends/qt3/moc/Makefile.am: Add src/frontends/qt3 to includes
	* src/frontends/qt3/ui/moc/Makefile.am: ditto

	* src/frontends/qt3/ui/*.ui: Convert to qt3 format, no functional
	change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13787 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-01 09:16:50 +00:00
Abdelrazak Younes
ff83a99e94 * QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772
* TocModel.[Ch]: small cleanup + eol-style set to native


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13774 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 09:16:48 +00:00
Martin Vermeer
2219197cfe Brown paper bag for r13772
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13773 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 07:45:37 +00:00
Martin Vermeer
be0dd89019 Change capitalization for outline (DOWN -> Down etc.)
* BufferView_pimpl.C
	(BufferView::Pimpl::dispatch): change

	* frontends/controllers/ControlToc.C
	(ControlToc::outline): replace by outlineUp ... outlineOut

	* toc.[Ch]
	(outline): change

	* frontends/qt3/QToc.C
	(QToc::set_depth): change



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13772 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 07:28:10 +00:00
Bo Peng
7cff3d5d5e Add lyxrc.use_lastfilepos and load_session to the qt4 preference dialog.
* src/frontends/qt4/QPrefsDialog.C, connect checkboxes to lyxrc
	* src/frontends/qt4/ui/QPrefUi.ui, add two checkboxes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13766 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 18:19:14 +00:00
Martin Vermeer
71f356c372 Outlining improvements/fixes
* LyXAction.C
	(LyXAction::init): add LFUN_OUTLINE_(UP|DOWN|IN|OUT)

	* BufferView_pimpl.C
	(BufferView::Pimpl::getStatus):
	(BufferView::Pimpl::dispatch): handling of new LFUNS

	* frontends/controllers/ControlToc.C
	(ControlToc::canOutline): modify dispatch logic

	* lfuns.h
	(kb_action): add LFUNs

	* toc.[Ch]
	(outline): changes

	* TocBackend.h: modifify == operator for Item



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13751 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 17:43:03 +00:00
Bo Peng
1d1df1a5f1 Add lyxrc.use_lastfilepos and load_session to the preference dialog. Bo Peng (ben.bob@gmail.com)
* src/frontends/qt3/QPrefs.C, QPrefsDialog.C, ui/QPrefUIModule.ui: add two checkboxes
	*	src/lyxrc.C: turn off load_session by default (since we now can turn it on)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13741 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-25 22:22:11 +00:00
Georg Baum
4fd1ce3af6 undo compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13734 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 15:07:24 +00:00
John Spray
5b92f48666 Add the const-ized functions that GExternal needs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13733 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 14:22:32 +00:00
Georg Baum
7855aa5b13 make GExternal.C compile. GTK people, please fix this!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13732 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 14:17:16 +00:00
Lars Gullik Bjønnes
eefc9ad640 * Rename src/frontends/qt2 to src/frontends/qt3,
update users of the dir accordingly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13731 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 13:48:24 +00:00
Lars Gullik Bjønnes
69567e26be change string "qt2" to "qt4"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13727 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 13:25:50 +00:00
Abdelrazak Younes
f8c8b75706 simple two one-liner fixes to show all toc items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13716 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-23 09:25:25 +00:00
Abdelrazak Younes
8c0bd3a77b * TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted code from former toc.C
* toc.[Ch]:
    - rewritten to take advantage of new TocBackend class. The toc
    cache is implemented as a static variable:
    static map<Buffer const *, lyx::TocBackend> toc_backend_;

* buffer_funcs.C:
    updateLabels(Buffer const & buf) now calls
    "lyx::toc::updateToc(buf);"

* pariterator.h: added default constructor
    ParConstIterator(): DocIterator() {}

* insetfloat.C: added pit parameter to TocItem construction

* insetwrap.C: added pit parameter to TocItem construction

* MenuBackend.C: use a const ref instead of a copy of TocList

* ControlToc.[Ch]: optimisation of the API by using const reference instead of copy.

* qt4/TocPanel.[Ch]:
    - optimisation of the API by using const reference instead of
    copy
    - directly use of TocBackend::TocIterator instead of identification by paragraph contents.

* qt4/QToc.C:
    - optimisation of the API by using const reference instead of
    copy
    - makes use of TocBackend::Item::uid()

* qt2/QToc.C:
    - use TocItem::depth() and TocItem::str() instead of public member access.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13713 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-22 18:48:28 +00:00
Martin Vermeer
11145e20eb Grey out outlining movement buttons for non-ToC
* qt2/QTocDialog.[Ch]: Add enableButtons

	* qt2/QToc.[Ch]
	(QToc::build_dialog):
	(QToc::updateType):
	(QToc::updateToc):
	(QToc::updateToc):
	(QToc::set_depth): Change update logic



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13709 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-21 22:51:39 +00:00
Abdelrazak Younes
fc57e5e4ad Two ways toc navigation:
* Toc.[Ch]: new function getCurrentTocItem()
* ControlToc.[Ch]: new function getCurrentTocItem()
* QToc.[Ch]: new function getCurrentIndex()
* QTocDialog.C
  - QTocDialog::update() calls QToc::getCurrentIndex()



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13695 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-19 14:48:22 +00:00
John Spray
70fb7833dd Commit Bernhard Reiter's implementation of GExternal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13694 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-19 09:13:54 +00:00
John Spray
35948be234 Changes to External controller for GTK implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13693 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-19 09:11:25 +00:00
Abdelrazak Younes
9db70c5346 * ControlToc.[Ch]
- bool ControlToc::canOutline(): new method to test if outline is possible.
* TocModel: new class
* QToc is now the controller (inheriting ControlToc directly) and the model (using TocModel)
* QTocDialog is now only the view (inheriting Dialogs::View directly)
* Dialogs.C: updated toc controller and view correspondingly



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13692 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-18 09:57:47 +00:00
Georg Baum
4700431096 * src/frontends/qt2/QWorkArea.C: fix compilation on OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13690 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-17 16:44:37 +00:00
Abdelrazak Younes
f6bcac7285 * src/buffer_funcs.[Ch]
- updateCounters renamed to updateLabels
 - void updateLabels(Buffer const & buf,
   ParIterator & it): new convenience function
 - void updateLabels(Buffer const & buf,
   ParIterator & from, ParIterator & to): new convenience function
 - setCounter renamed to setLabel
 - bool tryToUpdateCurrentLabel(Buffer const & buf,
   ParIterator & it): new method
 - needsUpdateCounters: deleted

* src/BufferView_pimpl.C
* src/CutAndPaste.C
* src/frontends/controllers/ControlDocument.C
* src/lyxfunc.C
* src/text.C
* src/text2.C
* src/text3.C
 - fixed the calls to updateLabels


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13689 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-16 14:19:25 +00:00
Jürgen Spitzmüller
a90ee19486 * src/frontends/qt4/QTocDialog.C: Hide the pointless QHeader
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13688 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-16 08:33:30 +00:00
Jürgen Spitzmüller
9d8aadcc64 * src/frontends/qt4/QTocDialog.C
(updateToc, populateItem): fix the logic of depth calculation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13687 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-15 17:56:20 +00:00
Jürgen Spitzmüller
436adb1605 * src/frontends/qt4/ui/QTocUi.ui: lay out in a grid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13685 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-15 15:50:13 +00:00
Bo Peng
2f3ac2d20f Initial Qt4 support for view-source feature (r13610), from Bo Peng (ben.bob@gmail.com)
* add src/frontend/qt4/QViewSource.h/C, QViewSourceDialog.h/C, ui/QViewSourceUi.ui
	* modify corresponding qt4/Makefile.am Makefile.dialogs, Dialogs.C


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13682 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-15 14:13:41 +00:00
Abdelrazak Younes
e2ddbdca5c use const_cast<QWorkArea*> instead of C-style cast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13673 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 20:44:38 +00:00
Abdelrazak Younes
544d542c7d compilation fixes following rev 13671
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 20:39:42 +00:00
Lars Gullik Bjønnes
67d576f75e * frontends/WorkArea.h(workAreaResize, scrollDocView, workAreaKeyPress,
dispatch, selectionReuqested, selectionLost): remove signals

* BufferView.[Ch] (selectionRequested, selectionLost, workAreaResize,
  workAreaKeyPress, workAreaDispatch): add forwarding functions to the pimpl

* BufferView_pimpl.C (Pimpl): Remove the setup of the now deleted signals,
  also remove corresponding connection objects.

* frontends/xforms/XWorkArea.h:
* frontends/qt2/QWorkArea.h:
* frontends/qt4/QWorkArea.h:
* frontends/gtk/GWorkArea.h: add LyXView as class variable view_ (qt
  classes also get view() medthod)

* frontends/qt2/QWorkArea.C:
* frontends/qt2/QContentPane.C:
* frontends/qt4/QWorkArea.C:
* frontends/xforms/XWorkArea.C:
* frontends/gtk/GWorkArea.C: Change from calling signals to call
  the functions directly through view_.view()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13671 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 18:58:48 +00:00
Lars Gullik Bjønnes
3b44c08e43 * lyxfunc.h:
* BufferView_pimpl.h: delete LyXKeySymPtr typedef

* kbmap.h: include LyXKeysym.h and remove forward declaration of LyXKeySym,
  and delete LyXKeySymPtr typedef

* kbsequence.h:
* frontends/WorkArea.h: delete LyXKeySymPtr typedef, include LyXKeySym.h
   and don't include boost/shared_ptr.hpp, remove forward declaration of
   LyXKeySym.

* frontends/LyXKeySym.h: include boost/shared_ptr.hpp, and add typedef
  for LyXKeySymPtr


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13663 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 12:18:42 +00:00
Jean-Marc Lasgouttes
637a28fe60 Compilation fix: Replace MakeAbsPath with makeAbsPath
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13657 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-12 14:02:23 +00:00
Abdelrazak Younes
5b66bd5d4c Compilation fix: Replace MakeAbsPath with makeAbsPath
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13656 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-12 13:53:01 +00:00
Abdelrazak Younes
5b448e549e Fix enableCustom
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13645 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 10:51:59 +00:00
Abdelrazak Younes
9960bf9278 Fix related to r13635
closePB renamed to cancelPB

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13644 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 10:13:17 +00:00
Abdelrazak Younes
1ddacf35e0 added "none" color special case.
TODO: see how to get rid of these special cases...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13642 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 09:59:56 +00:00
Abdelrazak Younes
107356b439 Transfered closePB handlling (GUI code) from QToc.C to QTocDialog.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13641 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 09:56:56 +00:00
Abdelrazak Younes
31d7f2ed30 I have continued a bit on my track to do a real model view separation for the Citation Dialog. In this new scheme, QCitation is the controller and the model at the same time, it inherits ControlCitation and it doesn't know about the view. QCitationDialog is the view, it is using QCitation to get its model and for communication with the core; it is inheriting Dialog::View directly.
In frontend/qt4/Dialog.C, we use these class like this:

    } else if (name == "citation") {
        QCitation * ci = new QCitation(*dialog);
        dialog->setController(ci);
        dialog->setView(new QCitationDialog(*dialog, ci));
        dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);

Now, it should be possible to define another view like this:

    } else if (name == "citation-inline") {
        QCitation * ci = new QCitation(*dialog);
        dialog->setController(ci);
        dialog->setView(new QCitationInline(*dialog, ci));

All the citation functionalities are not there yet but the basic ones are there. There are still a few "intelligence" still to be transfered from the view to the dialog.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13635 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 08:26:43 +00:00
Bo Peng
d7bccc5f88 Update on view-source feature (r13610), from Bo Peng (ben.bob@gmail.com)
* src/text3.C, src/lyxfunc.C: no special treatment of view-source dialog now.
	* src/frontends/controllers/ControlViewSource.h, .C:
		handle everything (get source type, code) in the controller.
	* src/insets/insetbibtex.C, insetexternal.C insetinclude.C:
		add dryrun mode to file copying etc.
	* src/frontends/qt2/QViewSource.C: small changes when calling the controller.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13627 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-10 16:27:59 +00:00
Abdelrazak Younes
c7511f4cab clean up the function renaming cleanup (libFileSearch instead of LibFileSearch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13615 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 21:24:01 +00:00
Abdelrazak Younes
9dfa853d2c lib/Makefile.am: move math icons from no-install
QMathDialog.C: set icon paths
QMathUi.ui: set icon paths to lib/images/math for visual feedback in designer


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13614 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 21:14:58 +00:00
Georg Baum
6170926512 clean up the function renaming cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13613 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 08:42:58 +00:00
Bo Peng
eb485caa96 view-source feature, from Bo Peng <ben.bob@gmail.com>
* src/buffer.h buffer.C - getSourceCode()
	* src/lyxfunc.C -  open view-source dialog
	* src/text3.C - change LFUN_MOUSE_RELEASE
	* src/output_linuxdoc.C, src/output_docbook.C, src/output_latex.C 
		- intercept output
	* src/outputparams.h, outputparams.C - add par_begin, par_end, dryrun
	* src/insets/insetgraphics.C  - add dryrun mode of file conversion
	* lib/ui/stdmenus.ui - add view-source menu item under view
	* Add view-source dialog, add 
	    src/frontends/qt2/QViewSourceDialog.h, QViewSource.C, QViewSource.h, QViewSourceDialog.C
	    src/frontends/qt2/ui/QViewSourceDialogBase.ui
	    src/frontends/controllers/ControlViewSource.h ControlViewSource.C
	  modify
	    src/frontends/qt2/Makefile.dialogs, Makefile.am, Dialogs.C,
	    src/frontends/controllers/Makefile.am, po.POTFILES.in


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13610 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 02:48:54 +00:00
Lars Gullik Bjønnes
618ca28af6 * support/types.h: introduce the char_type type
* paragraph.h: make value_type point at char_type
* other files: change some bald 'char' to 'char_type'


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13609 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 02:30:40 +00:00
Lars Gullik Bjønnes
cf4293824f * Change several freestanding and class methods with first letter
capitalized to have first letter lowercased.
* Adjust all affected files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13605 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 00:26:19 +00:00
Lars Gullik Bjønnes
8c93f63b48 * filetools.[Ch]: Make functions that start with a capital
letter start with a lower letter.
	* All other .C and .h in the cs: adjust for above change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13603 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 22:31:11 +00:00
Martin Vermeer
2c300dd10d * ControlMath.C
(ControlMath::dispatchInsert): fix broken GUI for sub/superscript
	insertion



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13602 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 19:32:52 +00:00
Georg Baum
6b753c5d97 Remove the images directory
* Makefile.am: remove image files
	* images/ChangeLog: delete
	* images/smallcaps.xpm: move to lib/images/font-smallcaps.xpm
	* lib/Makefile.am: add images to noinst files

Move the following files to lib/images/math:
	* images/README
	* images/delim.xbm
	* images/ams_misc.xbm
	* images/equation.xpm
	* images/delim.xpm
	* images/arrows.xbm
	* images/bop.xbm
	* images/matrix.xpm
	* images/delim0.xpm
	* images/delim1.xpm
	* images/misc.xbm
	* images/greek.xbm
	* images/ams_nrel.xbm
	* images/style.xbm
	* images/ams_ops.xbm
	* images/varsz.xbm
	* images/font.xbm
	* images/sub.xpm
	* images/sqrt.xpm
	* images/dots.xbm
	* images/space.xpm
	* images/deco.xbm
	* images/super.xpm
	* images/ams_arrows.xbm
	* images/style.xpm
	* images/ams_rel.xbm
	* images/brel.xbm
	* images/font.xpm
	* images/deco.xpm
	* images/frac.xpm

Adjust the following files to the moved images:
	* src/frontends/gtk/GMathPanel.C
	* src/frontends/gtk/Makefile.am
	* src/frontends/qt4/ui/QMathUi.ui
	* src/frontends/xforms/Makefile.am
	* src/frontends/xforms/FormMathsPanel.C


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13598 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 11:33:26 +00:00
André Pönitz
1f5c5a06ee support/textutils.h:
support/filetools.h: rename IsDirWriteable IsFileReadable IsLyXFilename
IsSGMLFilename IsLineSeparatorChar IsLetterChar IsPrintable
IsPrintableNonspace IsDigit to lower case initial

lyxvc.C:
LaTeXFeatures.C:
lyx_cb.C:
insets/insetbibtex.C:
insets/insetexternal.C:
insets/insetgraphics.C:
insets/ExternalSupport.C:
insets/insetinclude.C:
BufferView_pimpl.C:
graphics/GraphicsCacheItem.C:
text2.C:
converter.C:
buffer.C:
lyxfunc.C:
frontends/gtk/ghelpers.C:
frontends/controllers/ControlGraphics.C:
frontends/controllers/ControlInclude.C:
frontends/controllers/ControlSpellchecker.C:
support/filetools.C:
support/filetools.h: adjust


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13595 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 09:09:57 +00:00
Edwin Leuven
bfce1347ad compile fixes + update in pref dialog
QtView.C: typo in include
      QPrefsDialog.C: update after changing color
      QPrefsDialog.h: default parent in constructor



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13580 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-07 12:01:11 +00:00
Abdelrazak Younes
8a2a78ddf3 Fix: The modules' parent is not QPrefsDialog but the widget inside PanelStack.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13575 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 21:16:54 +00:00
Edwin Leuven
e3630e4076 clean up of the graphics dialog:
-layout
-enabling/disabling widgets
-tab order



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13574 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 21:04:27 +00:00
Abdelrazak Younes
e03298bb36 compilation fix: session.h and support/convert.h were missing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13573 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 20:19:51 +00:00
Abdelrazak Younes
bcb89509b3 * QMathUi.ui:
- replaced the sqrt etc QPushButton with QToolButton
 - modified the layout

* QMathDialog::QMathDialog
 - got rid of the fixed width for function QWidgetList


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13571 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 15:08:48 +00:00
Martin Vermeer
9e6c3bd7c2 The nicefrac patch
* LaTeXFeatures.C
	(simplefeatures[]: add nicefrac

	* mathed/math_factory.C
	(createMathInset): change frac semantics

	* mathed/math_fracinset.[Ch]

	(MathFracInset::metrics):
	(MathFracInset::draw):
	(MathFracInset::drawT):
	(MathFracInset::write):
	(MathFracInset::mathmlize): add nicefrac stuff

	* mathed/math_dfracinset.C:
	* mathed/math_tfracinset.C: adapt semantics

	* frontends/qt2/ui/QMathDialogBase.ui

	* frontends/qt2/QMathDialog.[Ch]
	(QMathDialog::symbol_clicked): provide GUI



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13566 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 09:46:01 +00:00
Lars Gullik Bjønnes
3b9338a3a8 Whitespace cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 23:56:29 +00:00
Lars Gullik Bjønnes
b2effebe20 2006-04-06 Bo Peng <ben.bob@gmail.com>
session support that
    * handle recent opened files (previously lastfile)
    * save/load bookmarks when quit lyx
    * save/load buffer cursor location whan a file is closed
    * save/load windows position and size when a file is closed
    * add rc entries load_session, use_lastfilepos,
      screen_geometry_height, screen_geometry_width,
      screen_geometry_xysaved.
    * trigger LFUN_QUIT when Alt-F4 or close-button is used to close lyx.
    * remove lastfile.h lastfile.C (merged in session.h, session.C)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13561 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 22:56:18 +00:00
Georg Baum
0dcc1e0cce Fix mess up of internal/external paths (from Enrico Forestieri)
* src/frontends/qt2/QPrefs.C:
	(internal_path_list, external_path_list): Handle the PATH prefix
	style according to the user-prefs style.
	(QPrefs::apply, QPrefs::update_contents): fix inverted logic of
	rc.cygwin_path_fix

	* src/support/os.h: New declarations to deal with PATH lists.
	* src/support/os_cygwin.C: Major rewrite to account for path style
	problems.
	* src/support/os_unix.C:
	* src/support/os_win32.C: Stub functions for PATH lists.
	* src/support/environment.C: fix bug 2344: Wrong path_prefix handling
	in cygwin
	* src/support/filetools.C (ChangeExtension): fix for the path
	style to be written in .tex files (cygwin related).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13558 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 19:26:08 +00:00
Abdelrazak Younes
ed6eb3e4f2 Porting work from Edwin Leuven:
* QMathUi.ui: Port to Qt4, icons paths are hacked to point to ../lib/images/
* QMathDialog: Port to qt4
* iconpalette.C: fix cols calculation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13557 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 15:10:34 +00:00
Abdelrazak Younes
dd69416f11 Fix from Edwin Leuven:
BulletsModule is a widget not a dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13553 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 14:02:37 +00:00
Abdelrazak Younes
ca474cf0d5 Resize the dialog so that the delimiters appears by couple on screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13552 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 13:16:52 +00:00
Abdelrazak Younes
2fcb3d9b18 Log:
* convert to automatic slot connections
* fix TOC navigation
* delete non useful commented out code


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13536 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-31 13:17:44 +00:00
Martin Vermeer
ce1170d887 * QToc.C
(QToc::updateToc): Better scroll behaviour

	* ui/QTocDialogBase.ui: Keyboard shortcuts, Dn -> Down



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13534 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-30 12:34:49 +00:00
Abdelrazak Younes
5a4d33d97e Add outlining functionality to the Qt4 TOC dialog.
The Toc dialog is not finished yet, there's some clean-up to do especially in select_adapdator which doesn't seem to work. This makes lyx crash when clicking on the Up, Down, In or Out buttons.

    * frontends/qt4/QTocDialog.[Ch]: add automatic slots

    * frontends/qt4/QTocDialog.[Ch]: add "enableButtons(bool)"

    * frontends/qt4/ui/QTocUi.ui: add pushbuttons

    * frontends/qt4/QToc.[Ch]: add move* methods.

The following Qt4 equivalent changes to revision r13521 are not done yet:
    * frontends/qt2/QToc.[Ch]: add move* method.
    (QToc::updateToc):
    (QToc::select): add code for TOC window positioning, and
    outlining methods



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13530 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 16:57:47 +00:00
Martin Vermeer
c0b204c0a8 Add outlining functionality to the TOC dialog.
* LyXAction.C
	(LyXAction::init): define command

	* BufferView_pimpl.C
	(BufferView::Pimpl::getStatus): 
	(BufferView::Pimpl::dispatch): add handling code

	* frontends/qt2/QTocDialog.C: add connections, adapters

	* frontends/qt2/ui/QTocDialogBase.ui: add pushbuttons

	* frontends/qt2/QTocDialog.h: add adapters

	* frontends/qt2/QToc.[Ch]
	(QToc::updateToc): 
	(QToc::select): add code for TOC window positioning, and 
	outlining methods 

	* frontends/controllers/ControlToc.[Ch]: implement methods

	* lfuns.h
	(kb_action {): define LFUN

	* toc.[Ch]: implement up, down, in and out operations in Outline
	method



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13521 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 05:08:42 +00:00
Jürgen Spitzmüller
7b81bf1108 * frontends/{qt2,qt4}/QPrefsDialog.C (remove_format):
Prevent deletion of file formats if they are used by a converter 
	and warn the user accordingly.
	Fixes crash (bug 2431).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13514 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-28 12:01:31 +00:00
Abdelrazak Younes
b9ff894f8b * QCitation::findKey() use QRegExp but find still doesn't work
* QCitationDialog::on_applyPB_clicked(): calls form_->apply
* QCitationDialog::on_oKPB_clicked(): calls form_->apply

TBDone: extract the code from controller&co in order to update the view with a new citation inset (or a modified one).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13499 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-26 18:35:15 +00:00
John Spray
107d32b49f Revert patch from bug 1954, to fix bug 2421
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13498 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-26 10:18:52 +00:00
Abdelrazak Younes
2f415cfbb1 This new citation dialog follows a new design similar to lyx-1.3:
- two panes for Selected/Available keys
- find as you search (Regular expression are supported)
- advanced search button

There are a lot of work still:
- selected citations are not inserted in the document
- find does not select the found key
- the graying/un-graying of buttons does not work properly
- the Advanced Search Dialog (which will search inside the citation) is not done yet
- ...
But the good news is that I have used the Model/View separation of Qt4. QCitation contains the list models and QCitationDialog contains the list views. The idea would be to reuse the model for a new dialog, I am thinking of a simple combo box placed on the toolbar which insert citations with default style, etc. Or a context menu insert->citation...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13496 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-25 21:26:09 +00:00
Abdelrazak Younes
299a19c3c0 - The layout combox box has now a maximum number of 30 visible items. In the future it would be better to calculate the optimal value based on the work area height.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13491 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 20:53:40 +00:00
Abdelrazak Younes
6b354a2230 Oups, compilation fix (missing a '{')
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13488 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 17:37:44 +00:00
Abdelrazak Younes
cf9417bb2d * src/frontends/qt4/QDocumentDialog.C
(void QDocumentDialog::apply):
(void QDocumentDialog::update_contents): only take action when there is a ToC structure
* port of preampleUi from Q3MultilineEdit to QTextEdit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13485 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 16:37:06 +00:00
Abdelrazak Younes
87c311f815 Compilation Fix: Appended "Ui" to main objectName so that it is the same as the ui file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13484 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 15:59:11 +00:00
Jean-Marc Lasgouttes
a9b0afd3b5 Partial fix to bug 2355.
* src/bufferparams.C
	(bool BufferParams::writeLaTeX):
	(void BufferParams::useClassDefaults): only take action when there is
	a ToC structure

	* src/frontends/qt2/QDocument.C
	(void QDocument::apply):
	(void QDocument::update_contents): only take action when there is
        a ToC structure

	* src/frontends/xforms/FormDocument.C
	(bool FormDocument::language_apply):
	(bool FormDocument::options_apply):
	(void FormDocument::options_update): only take action when there is
        a ToC structure; disable 
	(void FormDocument::UpdateClassParams): disable the secnumdepth and
	tocdepth widgets when there is no ToC structure

	* src/frontends/xforms/FormDocument.h
	(options_apply): do not return a bool (was not used)

	* src/lyxtextclass.C
	(hasTocLevels): new method.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13471 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 11:57:19 +00:00
Georg Baum
399e6e788c Store colors as rgb values in branches.
* src/frontends/xforms/Color.[Ch]: move to src

	* src/Color.[Ch] (getRGBColor): move to src/frontends/*/lyx_gui.C

	* src/BranchList.h
	(Branch::color_): change type to lyx::RGBColor

	* src/BranchList.[Ch]
	(Branch): new constrcutor, set color_ to LColor::background
	(getColor, setColor): adapt to type change of color_

	* src/bufferparams.C
	(BufferParams::writeFile): adapt to type change of branch color

	* src/frontends/lyx_gui.h
	* src/frontends/gtk/lyx_gui.C
	* src/frontends/qt2/lyx_gui.C
	* src/frontends/qt4/lyx_gui.C
	* src/frontends/xforms/lyx_gui.C
	(getRGBColor): move from src/Color.[Ch] here

	* src/frontends/gtk/lyx_gui.C
	* src/frontends/xforms/lyx_gui.C
	(hexname): use getRGBColor

	* src/frontends/gtk/GDocument.C
	(update): adapt to type change of branch color
	(apply): add comment about color chooser

	* src/frontends/qt2/QDocumentDialog.C
	(updateBranchView): adapt to type change of branch color
	(toggleBranchColor): ditto

	* src/frontends/qt2/lcolorcache.[Ch]
	* src/frontends/qt4/lcolorcache.[Ch]
	(rgb2qcolor): new utility function

	* src/frontends/qt4/QBranches.C
	(QBranches::update): adapt to type change of branch color
	(QBranches::on_colorPB_clicked): ditto

	* src/frontends/xforms/FormDocument.C
	(get_current_color): adapt to type change of branch color
	(FormDocument::branch_update):

	* src/frontends/xforms/FormPreferences.C
	(FormPreferences::Colors::LoadBrowse): adapt to RGBColor changes

	* src/frontends/xforms/FormPreferences.h: remove unneeded RGBColor
	forward declaration 

	* src/frontends/xforms/XWorkArea.C
	(XWorkArea::XWorkArea): adapt to RGBColor changes

	* src/frontends/xforms/Makefile.am: remove Color.[Ch]

	* src/frontends/xforms/FormColorpicker.[Ch]: adapt to RGBColor changes

	* src/frontends/xforms/xformsImage.C: adapt to RGBColor changes

	* src/frontends/controllers/ControlDocument.C
	(ControlDocument::dispatchParams): adapt to type change of branch color

	* src/Makefile.am: add Color.[Ch]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13466 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 20:04:05 +00:00
Abdelrazak Younes
f44bd092bc * src/frontends/qt4/QPrefsDialog.C
(QPrefsDialog::QPrefsDialog):
         (void QPrefsDialog::apply):
         (void QPrefsDialog::update):
         * src/frontends/qt4/ui/QPrefUI.ui:  remove wheel mouse spin box (bug 783).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13464 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 16:38:46 +00:00
Jean-Marc Lasgouttes
4fd5c07875 * src/frontends/qt2/qscreen.C
(void QScreen::showCursor):
        (void QScreen::removeCursor): use update instead of repaint.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13459 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 11:15:00 +00:00
Jean-Marc Lasgouttes
556da959ae Add the tests/ subdirectory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13458 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 11:11:19 +00:00
Jürgen Spitzmüller
e951788e37 * src/frontends/qt2/QPrefs.C
(void QPrefs::apply):
	(void QPrefs::update_contents):
* src/frontends/qt2/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog):
* src/frontends/qt2/ui/QPrefUIModule.ui:
	remove wheel mouse spin box (bug 783).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13457 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 09:37:05 +00:00
Georg Baum
f68868707d compile fix from Ling Li: remove superflous class name of members
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13454 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-22 21:38:40 +00:00
Abdelrazak Younes
29564e5f54 Changelog:
* QDialogView.h: interface methods and slots are now public instead of protected. This allow to avoid making friend classes.
* QPrefs.[Ch]: removed everything GUI related. The controller does not know anything about what the Dialog is doing, it is here only to transfer request one way or the other.
* QPrefsDialogs.[Ch]: transfered everything GUI related here. Things are gathered per module in contructor, apply() and update() methods so that it will be easy to transfer code to separate class afterward
  - QPrefsDialogs::apply(LyXRC & rc): fill in rc parameters from GUI.
  - QPrefsDialogs::update(LyXRC const & rc): update GUI from rc parameters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13453 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-22 18:59:17 +00:00
Georg Baum
bdcfe69b98 set svn:eol-style to native in qt4 frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13447 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 19:56:57 +00:00
Georg Baum
f7bbfca3a0 remove qgridview.[Ch] (these files were only needed for qt2)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13446 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 19:15:31 +00:00
Abdelrazak Younes
6c2e78e128 * QPrefsDialog::QPrefsDialog():
- fix from Edwin Leuven: colorsModule did not recognize colornames grey40, etc.
  - delete unused variable.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13445 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 12:49:43 +00:00
Abdelrazak Younes
4213d1851a clean up dos style line ending.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13442 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 17:25:02 +00:00
Jean-Marc Lasgouttes
13c546c460 * src/frontends/qt2/QWorkArea.C
(QWorkArea::QWorkArea): do not set background of the workarea (bug 2197)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 15:33:24 +00:00
Martin Vermeer
a193ea09f9 Selective expose patch
* metricsinfo.h
	(ViewMetricsInfo): add size parameter

	* BufferView_pimpl.C
	(BufferView::Pimpl::metrics): return size

	* frontends/screen.C
	(LyXScreen::redraw): expose selectively, using y1, y2 in vi, and
	exposing lower grey at end using size test



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13432 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 15:05:07 +00:00
Abdelrazak Younes
812b5ebfa9 When I created the Branches dialog class, I forgot to connect it to the Document settings panel dialog.
* QDocumentDialog.C: added connection to QBranches::changed signal.
* QBranches.h: added changed signal
* QBranches::update() added changed signal emission. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13430 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 14:40:27 +00:00
Abdelrazak Younes
967d3e3cd6 QBranches::on_colorPB_clicked() one-line bug fix:
When you click the "Alter button" on a added branch in "Document Settings/Branches" Dialog, clicking on the palette on the right to select a color won't work (selected color stays black). After selecting a color from the "Basic Colors" or the "Custon colors"
(which works fine), the color selection from the palette will work correctly. The problems lies in that the QColor() constructor produces an invalid color (RGB 0,0,0). "lightskyblue" is now the default color for a branch when you click the alter button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13429 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 14:10:31 +00:00
Abdelrazak Younes
4a5053d34e * qscreen.[Ch]:
- Cursor handing is done on the server -> *cursor are
    QPixmap
  - Use new drawScreen and copyScreen methods.
* QWorkArea.[Ch]:
  - Pixel manipulation is done on the client -> paint_device_ is a
    QImage
  - an intermediate Screen device is updated whenever expose is called
    -> sreen_device_ is a QPixmap. This screen_device is the one that is
    painted on screen in QWorkArea::repaintEvent().
  - new update, drawScreen and copyScreen methods. 
* QLPainter.C: use the new paintDevice interface.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13428 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 10:43:21 +00:00
Jürgen Spitzmüller
4c4b3e3cff frontends/controllers/ControlBibtex.[Ch]: new members bibtotoc(), getStylefile(),
which hold functionality that has been moved from the frontends
	and implement a method to use a default stylefile for new bibtex 
	insets (bug 2322).

frontends/gtk/GBibtex.C:
frontends/qt2/QBibtex.C:
frontends/qt4/QBibtex.C:
frontends/xforms/FormBibTex.C: Move parsing of Options (stylefile, bibtotoc) to the 
	controller (bug 2322).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13427 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 10:24:23 +00:00
Georg Baum
3626d1ce04 Remove qt2 support in the following files:
* src/frontends/qt2/qt_helpers.C
	(makeFontName):

	* src/frontends/qt2/QWorkArea.C
	(QWorkArea::haveSelection):
	(QWorkArea::haveSelection):
	(QWorkArea::getClipboard):

	* src/frontends/qt2/panelstack.C
	(PanelStack::PanelStack):

	* src/frontends/qt4/qt_helpers.C
	(makeFontName):

	* README: remove notice about qt2

	* config/qt.m4: make 3.0 the minimum required qt version


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13414 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-17 19:02:43 +00:00
Georg Baum
c9c37cab4e * src/frontends/qt4/QWorkArea.C
(QWorkArea::mouseMoveEvent): Use qt wide scroll wheel setting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13409 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 20:34:20 +00:00
Georg Baum
4c772b2376 QContentPane::mouseMoveEvent: Use qt wide scroll wheel setting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13401 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 15:26:44 +00:00
Abdelrazak Younes
937d6d1111 PanelStack::addPanel(): fixed document settings dialog size when first showed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13391 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 13:15:42 +00:00
Abdelrazak Younes
e16b61096d Edwin Leuven <e.leuven@uva.nl>
* entries in the combobox in the toolbar are not legible
* same for entries in the listview in the preferences dialog
* the color is not updated after changing it (i always change the murky pink color of lyx's background to white)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13387 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 11:23:23 +00:00
Abdelrazak Younes
371dc18f22 fixed inset buttons grey colors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13386 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 10:52:20 +00:00
Jean-Marc Lasgouttes
4b7512f767 fix drawing of buttons (bug 2328)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 15:32:32 +00:00
Abdelrazak Younes
c6d4e2b9c6 removed topLevelMenu_.clear() call in QLPopupMenu::update() following MenuBackend change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13380 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 15:26:21 +00:00
Georg Baum
2470320dd6 fix symbols fonts on X11
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13378 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 13:39:59 +00:00
Abdelrazak Younes
f43f4ed94f QLPopupMenu.[Ch]: renamed topLevelMenu to topLevelMenu_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 11:27:32 +00:00
Abdelrazak Younes
5ea9a78905 QLMenubar.C: Fix potential MACX crash on menubar initialisation.
The MACX specific menubar hack present in qt2 frontend is still not ported to the qt4 frontend.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13376 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 11:12:52 +00:00
Georg Baum
369fe1ab82 restore entries from 11/2002 to 5/2005
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-14 19:56:00 +00:00
Abdelrazak Younes
6d21659ce0 QWorkArea.[Ch]: Wheel one-liner mouse fix
QWorkArea.h: Added comments
Reverted to Q_WS_X11 and Q_WS_MACX instead of Q_OS_*


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13371 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-14 14:50:00 +00:00
Jürgen Spitzmüller
98b1da0248 Abdelrazak Younes: Compile fixes for the Mac (ChangeLog follows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 17:44:38 +00:00
Jürgen Spitzmüller
4035592aee (Abdelrazak Younes:)
* QWorkArea.[Ch] cleanup:
	- Added private members workWidth_ and workHeight_ in order to
	  make sure QWorkArea is always able to draw (link to
	  workArea::WorkAreaResize).
	- deleted superfluous debugging stuff
	- deleted superfluous commented out code.
	- placed all specific stuff (Qt-immodule, X11 and Mac OSX) in a
	  separate place at the end of QWorkArea.C.
	- initial support for Wheel mouse (still does not work).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13348 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 17:29:34 +00:00
Lars Gullik Bjønnes
41cfebb8eb src/frontends/qt4/ui/pch.h: new file
boost/libs/regex/src/Makefile.am: remove non-existant file


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13343 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 08:52:08 +00:00
Martin Vermeer
b557e3790e fix bug 2212: First change is skipped in Merge changes... dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13331 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-10 16:46:03 +00:00
Georg Baum
f02a98497d fix bug 1955
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13322 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-10 14:51:28 +00:00
Georg Baum
9c5fcfa383 fix nullstream also in pch files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13311 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-07 10:02:07 +00:00
Lars Gullik Bjønnes
bd9c55944f Update for boost::regex v4, add test
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13306 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-06 22:33:16 +00:00
Lars Gullik Bjønnes
0226612481 add svn:ignore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13300 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 20:41:35 +00:00
Lars Gullik Bjønnes
0c21c114d4 setup the buildsystem for building qt4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13295 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 17:29:08 +00:00
Lars Gullik Bjønnes
12e5a52b92 Added initial qt4 work by Abdelrazak Younes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13294 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 17:24:44 +00:00
John Spray
44fc7b62a5 window size tweak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13262 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:12:01 +00:00
John Spray
b59621bc59 Rewording in GTK document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13261 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:07:25 +00:00
John Spray
786759e106 Some work on GTK tabular dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13260 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:03:24 +00:00
John Spray
e4c3c00f80 revise layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13259 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 16:26:45 +00:00
John Spray
153c985ba2 grayscale and monochrome
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13258 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 16:26:23 +00:00
John Spray
757cb58173 Spellchecker options for gtk preferences dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13253 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 17:05:24 +00:00
John Spray
dfaf9a11a1 Fix update() of GTK wrap dialog for default placement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13252 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 01:39:07 +00:00
John Spray
c822a28e39 Escape underscores in GTK menu labels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13251 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 01:24:22 +00:00
John Spray
a67c5829cb Fix spinbutton limits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13250 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:53:30 +00:00
John Spray
01b554be2a Fix rows and columns getting confused in table creation dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13249 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:52:58 +00:00
John Spray
b7039ba891 revert removal of update() from show() - I misunderstood.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13248 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:46:25 +00:00
John Spray
9aa58f9986 Make GCitation show selected keys even if they're not in
the list of bibkeys.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13247 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-16 19:31:03 +00:00
Jürgen Spitzmüller
414a11684e code cosmetics to the iterator fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-15 14:12:54 +00:00
Jürgen Spitzmüller
36945644e7 fix crash due to invalidated iterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13241 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-15 11:13:37 +00:00
John Spray
5d14da2001 Fix double-updating, thus fixing GChanges skipping first change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13240 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 16:14:33 +00:00
John Spray
5943449516 Add comments to mark questionable text encoding conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13239 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 14:55:27 +00:00
John Spray
a50e83ea38 Fix copy and paste text encoding in GTK frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13238 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 14:49:41 +00:00
John Spray
42843b1c02 ...and the changelog entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13237 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 14:47:42 +00:00
John Spray
29e7776c34 Remove broken multibyte stuff from GTK frontend, make single-byte
stuff work properly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13236 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 14:46:22 +00:00
John Spray
72c40bc700 Try to make GPainter a bit more efficient
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13230 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-13 19:36:10 +00:00
John Spray
61133c4b56 Tweak layout in GToc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13229 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-13 18:12:56 +00:00
John Spray
65ca7003ba Fix event loop to no longer eat CPU
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13228 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-13 18:01:41 +00:00
John Spray
e820144307 Fix some font names getting mangled in GPreferences, as
pointed out by Bartok.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13227 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-13 17:51:11 +00:00
John Spray
b67c859551 Get lots of nice icons from the desktop theme
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13224 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-13 01:53:22 +00:00
John Spray
2bb8621129 Rearrange GTK icon lookup code, get rid of comboBoxTextSet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13220 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 23:58:29 +00:00
John Spray
ed6d4b736f Bartek Kostrzewa's fix for crash in GMenubar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13217 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 16:03:55 +00:00
John Spray
17cc48720a Make enter button work in GTK text dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13216 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:56:37 +00:00
John Spray
e073019bb8 Get rid of mnemonics on tabs in GTK document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13215 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:55:48 +00:00
John Spray
12916902e0 Revamp GTK citation dialog appearance
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13214 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:55:07 +00:00
John Spray
45bd72333f Try to fix GMenubar for UTF-8 locales
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13213 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:53:56 +00:00
John Spray
b6ab9d8886 Don't show preamble item in menus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13212 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:52:16 +00:00
John Spray
134abbe788 More work on GPreferences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13211 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-12 15:03:50 +00:00
Lars Gullik Bjønnes
4a7ab830bc Delete all .cvsignore files from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13208 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-10 22:09:45 +00:00
John Spray
b3f859406a Keyboard and graphics options in GTK preferences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10825 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 22:29:13 +00:00
John Spray
ec0483b508 Tweak glade for GSearch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10824 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 22:21:13 +00:00
John Spray
ec195eb254 Fix sensitivity in GBibtex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10823 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 22:20:37 +00:00
John Spray
78b20cb25a Add items with double click in GCitation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10822 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 10:42:10 +00:00
John Spray
3b19fb295a Fix compilation of gtklengthentry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10821 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 10:39:52 +00:00
John Spray
670fc3e2c5 Sexy new GTK about dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10820 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-07 00:48:47 +00:00
John Spray
d928a9d0a2 Whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10819 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 22:52:53 +00:00
John Spray
f3adb6ad82 Move some functions from ghelpers into gtklengthentry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10818 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 22:51:24 +00:00
John Spray
f3341d73ee GTK Bibtex dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10817 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 21:59:12 +00:00
John Spray
98dd757bbc Little more work on GTK document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10816 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 21:54:10 +00:00
John Spray
ca90f64323 Use GtkLengthEntry in GGraphics, tweak glade a little
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10815 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 21:46:25 +00:00
John Spray
09c0c8ce12 clean up GPreferences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10812 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-05 23:21:26 +00:00
John Spray
a94ebc1c53 Use GtkLengthEntry in GTK vspace, document dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10811 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-05 22:05:24 +00:00
John Spray
6c69baf809 Fix packing options in GtkLengthEntry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10810 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-05 22:00:37 +00:00
John Spray
c0d288c88b Start work on GTK preferences dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10809 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-05 21:57:17 +00:00