Commit Graph

266 Commits

Author SHA1 Message Date
Georg Baum
9080c44458 Use wchar_t as lyx::char_type if it is 32 bit wide.
No scons and cmake support! scons and cmake need to find out the size of
wchar_t and define this macro in config.h (example for 32bit wchar_t):

* The size of a `wchar_t', as computed by sizeof. */
#define SIZEOF_WCHAR_T 4

	* configure.ac: Test size of wchar_t

	* src/support/types.h: don't include docstring.h anymore.
	Use wchar_t as lyx::char_type if it is 32 bit wide.

	* src/support/docstring.h: Use lyx::char_type for defining docstring

	* src/metricsinfo.h: include support/docstring.h instead of
	support/types.h
	* src/lyxlex.h: ditto
	* src/frontends/font_metrics.h: ditto
	* src/frontends/qt4/qt_helpers.h: ditto
	* src/frontends/Painter.h: ditto
	* src/errorlist.h: ditto
	* src/support/lstrings.h: ditto
	* src/lyxfunc.h: ditto
	* src/LaTeX.h: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14991 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 21:13:49 +00:00
Georg Baum
59fdb31af3 s/boost::uint32_t/lyx::char_type/g except in the definition of lyx::docstring
and lyx::char_type


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14990 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 17:11:39 +00:00
Georg Baum
a82ca1eed1 * src/frontends/qt4/QLToolbar.C
(QLToolbar::QLToolbar): Fix initialization order


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14989 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 17:04:42 +00:00
Enrico Forestieri
f66b23b4df Fix combo box items in the delimiter GUI
* src/frontends/qt4/QDelimiterDialog.C
	(QDelimiterDialog::QDelimiterDialog): add missing "Variable size" item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14981 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-12 01:17:03 +00:00
Abdelrazak Younes
a6444784dc A bunch of conversion to docstring.
- bformat(): contributed by Georg Beaum
- Alert::XXX
- error(): in SpellBase, ispell, psell, aspell, buffer, etc.
- message(), message signal
- displayMessage(), setMessage,
- ErrorItems
- prettyName()
- makeDisplayPath()

and maybe some more...


- etc... 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 08:54:10 +00:00
Abdelrazak Younes
c9c47c6464 * LyXView.h:
- makeToolbar(): new pure virtual method

* qt4/GuiView.h:
  - makeToolbar(): new method transferred from QLToolbar

* qt4/QLToolbar: derive from QToolBar instead of owning a QToolBar member.

* Toolbars.h: remove make_toolbar() prototype (use LyXView::makeToolbar instead).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14964 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 11:03:21 +00:00
Lars Gullik Bjønnes
0dc81f2463 Change MenuBackend and the other menuclasses to store a docstring. Do the required updates to lstrings/convert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14955 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 22:27:22 +00:00
Lars Gullik Bjønnes
43b77ba2d7 Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14952 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 15:27:44 +00:00
Georg Baum
e33bac93cd Fix clipboard/selection encoding
* src/frontends/qt[34]/qt_helpers.[Ch]
	(toqstr): add variant for docstring
	(qstring_to_ucs4): Use docstring and port from qt4 to qt3

	* Many other files: Many std::string -> lyx::docstring conversions

	* src/support/lstrings.[Ch]
	(subst): Add variant for docstring and char_type
	(externalLineEnding): std::string -> lyx::docstring
	(internalLineEnding): std::string -> lyx::docstring


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14871 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 07:02:38 +00:00
Abdelrazak Younes
b486b53f8f Patch from Enrico:
Avoids the crash when quitting LyX on Cygwin/qt4


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14860 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-01 13:49:03 +00:00
Lars Gullik Bjønnes
86b063d2da Use correct types for qstring, also to avoid 64<->32 bit issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14858 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 20:36:07 +00:00
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
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
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
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
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