]> git.lyx.org Git - lyx.git/log
lyx.git
18 years ago Fix bug 2485 and crash on middle-mouse paste into math.
Martin Vermeer [Mon, 10 Apr 2006 10:47:59 +0000 (10:47 +0000)]
    Fix bug 2485 and crash on middle-mouse paste into math.
        Also move reponse to middle mouse from Release to Press

        * math_nestinset.C
        (MathNestInset::lfunMousePress): Add and convert to editXY
        (MathNestInset::lfunMouseRelease): Remove

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13617 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agolyx_1_4.py(convert_sgml_paragraphs):
José Matox [Mon, 10 Apr 2006 09:14:08 +0000 (09:14 +0000)]
lyx_1_4.py(convert_sgml_paragraphs):
convert SGML paragraphs to Standard + ERT, as SGML are not used anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13616 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoclean up the function renaming cleanup (libFileSearch instead of LibFileSearch)
Abdelrazak Younes [Sun, 9 Apr 2006 21:24:01 +0000 (21:24 +0000)]
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

18 years agolib/Makefile.am: move math icons from no-install
Abdelrazak Younes [Sun, 9 Apr 2006 21:14:58 +0000 (21:14 +0000)]
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

18 years agoclean up the function renaming cleanup
Georg Baum [Sun, 9 Apr 2006 08:42:58 +0000 (08:42 +0000)]
clean up the function renaming cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13613 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Fix bug 2485 and crash on middle mouse paste on math
Martin Vermeer [Sun, 9 Apr 2006 07:06:57 +0000 (07:06 +0000)]
Fix bug 2485 and crash on middle mouse paste on math

* math_nestinset.C
(MathNestInset::lfunMousePress): handle middle mouse here, use
editXY, not setScreenPos
(MathNestInset::lfunMouseRelease): don't handle here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13612 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFirst patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com)
Bo Peng [Sun, 9 Apr 2006 04:35:24 +0000 (04:35 +0000)]
First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com)
layout file in the same directory as .lyx file will be used. .cls can also
be in this directory.
* src/buffer.C, bufferparams.C: move filepath to bufferparams so this
info will be available in getToken()
* src/lyxtextclasslist.h, .C: add addTextClass() that read a .layout file
from filepath.
* src/lyxtextclass.h, .C: pass filepath to LyXTextClass::load(). .layout
file in filepath will be loaded before system ones.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13611 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoview-source feature, from Bo Peng <ben.bob@gmail.com>
Bo Peng [Sun, 9 Apr 2006 02:48:54 +0000 (02:48 +0000)]
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

18 years ago* support/types.h: introduce the char_type type
Lars Gullik Bjønnes [Sun, 9 Apr 2006 02:30:40 +0000 (02:30 +0000)]
* 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

18 years ago* Change several freestanding and class methods with first letter
Lars Gullik Bjønnes [Sun, 9 Apr 2006 00:26:19 +0000 (00:26 +0000)]
* 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

18 years agoRemove last traces of the ShareContainer
Lars Gullik Bjønnes [Sun, 9 Apr 2006 00:19:34 +0000 (00:19 +0000)]
Remove last traces of the ShareContainer

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13604 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * filetools.[Ch]: Make functions that start with a capital
Lars Gullik Bjønnes [Sat, 8 Apr 2006 22:31:11 +0000 (22:31 +0000)]
* 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

18 years ago * ControlMath.C
Martin Vermeer [Sat, 8 Apr 2006 19:32:52 +0000 (19:32 +0000)]
* 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

18 years agoRemove the images directory
Georg Baum [Sat, 8 Apr 2006 11:33:26 +0000 (11:33 +0000)]
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

18 years ago * src/insets/insetgraphics.C (prepareFile): output correct file name
Georg Baum [Sat, 8 Apr 2006 09:11:25 +0000 (09:11 +0000)]
* src/insets/insetgraphics.C (prepareFile): output correct file name
of compressed files (bug 2231)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13596 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agosupport/textutils.h:
André Pönitz [Sat, 8 Apr 2006 09:09:57 +0000 (09:09 +0000)]
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

18 years agoAdd method: pit_type & pit()
Abdelrazak Younes [Sat, 8 Apr 2006 05:17:45 +0000 (05:17 +0000)]
Add method: pit_type & pit()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13594 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* buffer_funcs.[Ch]: new needsUpdateCounters function
Abdelrazak Younes [Fri, 7 Apr 2006 22:16:09 +0000 (22:16 +0000)]
* buffer_funcs.[Ch]: new needsUpdateCounters function

* text.C:
 - LyXText::breakParagraph(): test if needsUpdateCounters() is enough before a full updateCounter
 - LyXText::backspacePos0(): ditto

* text2.C:
 - LyXText::deleteEmptyParagraphMechanism(): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13593 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoUpdate version of lyx2lyx to 1.5.0svn
José Matox [Fri, 7 Apr 2006 16:15:14 +0000 (16:15 +0000)]
Update version of lyx2lyx to 1.5.0svn

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13592 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd placeholders for future changes:
José Matox [Fri, 7 Apr 2006 16:11:16 +0000 (16:11 +0000)]
Add placeholders for future changes:

lyx_0_10.py: File format between 2.00 (the first publicaly available) and 2.10
lyx_1_5.py: Post-1.4.x file formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13591 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFrom Jean-Marc: Make sure that standard sectioning styles have proper counters
Georg Baum [Fri, 7 Apr 2006 15:43:56 +0000 (15:43 +0000)]
From Jean-Marc: Make sure that standard sectioning styles have proper counters
* lib/layouts/stdsections.inc: include numarticle.inc here instead
of the following files:
* lib/layouts/kluwer.layout
* lib/layouts/aapaper.layout
* lib/layouts/llncs.layout
* lib/layouts/docbook.layout
* lib/layouts/article.layout
* lib/layouts/IEEEtran.layout
* lib/layouts/ijmpd.layout
* lib/layouts/paper.layout
* lib/layouts/aa.layout
* lib/layouts/aastex.layout
* lib/layouts/cl2emult.layout
* lib/layouts/docbook-section.layout
* lib/layouts/svjour.inc
* lib/layouts/amsart.layout
* lib/layouts/spie.layout
* lib/layouts/docbook-chapter.layout
* lib/layouts/aguplus.inc
* lib/layouts/scrartcl.layout
* lib/layouts/dtk.layout
* lib/layouts/agu-dtd.layout
* lib/layouts/elsart.layout
* lib/layouts/mwart.layout
* lib/layouts/seminar.layout

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13589 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago *lib/scripts/layout2layout.py: Fix section labelling
Georg Baum [Fri, 7 Apr 2006 15:25:34 +0000 (15:25 +0000)]
*lib/scripts/layout2layout.py: Fix section labelling

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13588 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoupdate German Tutorial, Intro and splash
Jean-Marc Lasgouttes [Fri, 7 Apr 2006 12:20:41 +0000 (12:20 +0000)]
update German Tutorial, Intro and splash

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13584 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agocompile fixes + update in pref dialog
Edwin Leuven [Fri, 7 Apr 2006 12:01:11 +0000 (12:01 +0000)]
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

18 years agodocument fancybox package
Jean-Marc Lasgouttes [Fri, 7 Apr 2006 08:46:18 +0000 (08:46 +0000)]
document fancybox package

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13577 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix: The modules' parent is not QPrefsDialog but the widget inside PanelStack.
Abdelrazak Younes [Thu, 6 Apr 2006 21:16:54 +0000 (21:16 +0000)]
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

18 years agoclean up of the graphics dialog:
Edwin Leuven [Thu, 6 Apr 2006 21:04:27 +0000 (21:04 +0000)]
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

18 years agocompilation fix: session.h and support/convert.h were missing
Abdelrazak Younes [Thu, 6 Apr 2006 20:19:51 +0000 (20:19 +0000)]
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

18 years ago * lyxrc.C
Martin Vermeer [Thu, 6 Apr 2006 19:05:42 +0000 (19:05 +0000)]
* lyxrc.C
(lyxrcTags[]): restore order

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13572 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* QMathUi.ui:
Abdelrazak Younes [Thu, 6 Apr 2006 15:08:48 +0000 (15:08 +0000)]
* 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

18 years ago The nicefrac patch
Martin Vermeer [Thu, 6 Apr 2006 09:46:01 +0000 (09:46 +0000)]
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

18 years agoWhitespace cleanup.
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:56:29 +0000 (23:56 +0000)]
Whitespace cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agodo not define boost::throw_exceptions if we are compiling with exceptions
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:55:36 +0000 (23:55 +0000)]
do not define boost::throw_exceptions if we are compiling with exceptions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13564 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agowhitespace cleanup
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:39:11 +0000 (23:39 +0000)]
whitespace cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13563 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agocomment out the usage checking macros
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:03:58 +0000 (23:03 +0000)]
comment out the usage checking macros

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13562 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago2006-04-06 Bo Peng <ben.bob@gmail.com>
Lars Gullik Bjønnes [Wed, 5 Apr 2006 22:56:18 +0000 (22:56 +0000)]
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

18 years agomake sure that BOOST_ENABLE_ASSERT_HANDLER is always set
Lars Gullik Bjønnes [Wed, 5 Apr 2006 22:50:44 +0000 (22:50 +0000)]
make sure that BOOST_ENABLE_ASSERT_HANDLER is always set

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13560 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix mess up of internal/external paths (from Enrico Forestieri)
Georg Baum [Wed, 5 Apr 2006 19:26:08 +0000 (19:26 +0000)]
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

18 years agoPorting work from Edwin Leuven:
Abdelrazak Younes [Wed, 5 Apr 2006 15:10:34 +0000 (15:10 +0000)]
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

18 years ago * Makefile.am: add new icon
Georg Baum [Wed, 5 Apr 2006 14:56:07 +0000 (14:56 +0000)]
* Makefile.am: add new icon
* images/style.xpm: fix name for xforms and gtk

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13556 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoNew icon for the qt4 math panel (it is hardcoded in the qt2 frontend)
Abdelrazak Younes [Wed, 5 Apr 2006 14:22:59 +0000 (14:22 +0000)]
New icon for the qt4 math panel (it is hardcoded in the qt2 frontend)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13555 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoModified icon for the math panel
Abdelrazak Younes [Wed, 5 Apr 2006 14:21:19 +0000 (14:21 +0000)]
Modified icon for the math panel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13554 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix from Edwin Leuven:
Abdelrazak Younes [Wed, 5 Apr 2006 14:02:37 +0000 (14:02 +0000)]
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

18 years agoResize the dialog so that the delimiters appears by couple on screen.
Abdelrazak Younes [Wed, 5 Apr 2006 13:16:52 +0000 (13:16 +0000)]
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

18 years agofix bug 1235
Georg Baum [Wed, 5 Apr 2006 08:19:48 +0000 (08:19 +0000)]
fix bug 1235
* src/support/filetools.C
(readBB_from_PSFile): sanitize return value

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13549 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * paragraph_funcs.C
Martin Vermeer [Mon, 3 Apr 2006 18:28:13 +0000 (18:28 +0000)]
* paragraph_funcs.C
(breakParagraph): fix bug 2445 (I think)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13548 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago2006-04-01 Michael Gerz <michael.gerz@teststep.org>
Michael Schmitt [Sat, 1 Apr 2006 13:23:24 +0000 (13:23 +0000)]
2006-04-01  Michael Gerz  <michael.gerz@teststep.org>

        * lib/ui/stdmenus.ui:
        * lib/ui/stdtoolbars.ui:
        * src/converter.C
        * src/lyx_main.C
        * src/support/package.C.in: tiny changes to text messages

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13545 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago2006-04-01 Michael Gerz <michael.gerz@teststep.org>
Michael Schmitt [Sat, 1 Apr 2006 13:04:23 +0000 (13:04 +0000)]
2006-04-01  Michael Gerz  <michael.gerz@teststep.org>

        * filename.C (mangledFilename): truncate filename to 100
        characters for MiKTeX's pdflatex

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13543 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix bug 2186 (from Bo Peng):
Georg Baum [Sat, 1 Apr 2006 10:49:58 +0000 (10:49 +0000)]
Fix bug 2186 (from Bo Peng):
* src/insets/insetbibtex.C
(InsetBibtex::latex): mangle filename of bst file for "non-nice"
.tex files

* src/insets/insetgraphics.C
(RemoveExtension): move ...
* src/support/filetools.[Ch]
(removeExtension): ... here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13540 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoconfigure.py: Bo Peng (ben.bob@gmail.com)
Georg Baum [Sat, 1 Apr 2006 09:39:11 +0000 (09:39 +0000)]
configure.py: Bo Peng (ben.bob@gmail.com)
Fix --without-latex-config option, separate processLayoutFile()
Fix checkCygwinPath(),  by Enrico

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13539 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoMajor cleanup of lib/configure.py from Bo Peng
Georg Baum [Fri, 31 Mar 2006 13:31:16 +0000 (13:31 +0000)]
Major cleanup of lib/configure.py from Bo Peng

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13537 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoLog:
Abdelrazak Younes [Fri, 31 Mar 2006 13:17:44 +0000 (13:17 +0000)]
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

18 years ago A more general way of setting paragraphs in an inset to standard
Martin Vermeer [Thu, 30 Mar 2006 12:43:32 +0000 (12:43 +0000)]
A more general way of setting paragraphs in an inset to standard
layout upon paste.

* insettext.[Ch]: add forceParagraphsToDefault method

* insettabular.C
(InsetTabular::doDispatch): use it for cell

* insetbox.C
(InsetBox::doDispatch): use it

* insetert.C
(InsetERT::doDispatch): use it

* insetcharstyle.C
(InsetCharStyle::doDispatch): use it

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13535 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * QToc.C
Martin Vermeer [Thu, 30 Mar 2006 12:34:49 +0000 (12:34 +0000)]
* 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

18 years ago * lib/scripts/layout2layout.py
Georg Baum [Wed, 29 Mar 2006 18:49:27 +0000 (18:49 +0000)]
* lib/scripts/layout2layout.py
(concatenate_label): new, concatenate two labels in an intelligent way
(convert): add the TocLevel for sectioning styles
(convert): convert LabelString and StringAppendix for sectioning
styles (append counter)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13533 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdjust keybord shortcut of the "latex" format to the changed name
Georg Baum [Wed, 29 Mar 2006 18:43:05 +0000 (18:43 +0000)]
Adjust keybord shortcut of the "latex" format to the changed name
(this belongs to the fix for bug 2107)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13532 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agorevert part of Enrico's temp dir patch: The client does not use package()
Georg Baum [Wed, 29 Mar 2006 18:37:39 +0000 (18:37 +0000)]
revert part of Enrico's temp dir patch: The client does not use package()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13531 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd outlining functionality to the Qt4 TOC dialog.
Abdelrazak Younes [Wed, 29 Mar 2006 16:57:47 +0000 (16:57 +0000)]
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

18 years ago * src/LaTeX.C
Jean-Marc Lasgouttes [Wed, 29 Mar 2006 14:45:37 +0000 (14:45 +0000)]
   * src/LaTeX.C
        (handleFoundFile): do not add directories to dep table (crashes cygwin)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13529 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agorevert my faulty fix of bug 2380 and use one by Jean-Marc instead:
Georg Baum [Wed, 29 Mar 2006 10:13:40 +0000 (10:13 +0000)]
revert my faulty fix of bug 2380 and use one by Jean-Marc instead:
        * insets/insettabular.C
        (InsetTabular::insertAsciiString): set BufferView cache of cell

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13524 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Add outlining functionality to the TOC dialog.
Martin Vermeer [Wed, 29 Mar 2006 05:08:42 +0000 (05:08 +0000)]
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

18 years agoFix bug 2107:
Georg Baum [Tue, 28 Mar 2006 18:49:46 +0000 (18:49 +0000)]
Fix bug 2107:
        * src/LaTeXFeatures.[Ch]: replace nice_ by runparams_

        * src/insets/insetexternal.C
        (InsetExternal::validate): Use the correct template for the desired
        output format

        * src/insets/insetgraphics.C
        (InsetGraphics::prepareFile): Record the needed files for "latex"
        or "pdflatex" format, dependant on the desired output format

        * src/insets/insetinclude.C
        (InsetInclude::latex): ditto

        * src/BufferView_pimpl.C
        (BufferView::Pimpl::getStatus): adapt to LaTeXFeatures changes

        * src/paragraph_pimpl.C
        (Paragraph::Pimpl::simpleTeXSpecialC): ditto

        * src/buffer.C
        (Buffer::makeLaTeXFile): ditto
        (Buffer::makeLinuxDocFile): ditto
        (Buffer::makeDocBookFile): ditto

        * src/paragraph.C
        (Paragraph::simpleTeXOnePar): ditto

        * src/exporter.C
        (Backends): Add "pdflatex" backend format
        (Exporter::Export): set runparams.flavor correctly for "pdflatex" format

        * lib/external_templates
        (RasterImage): Use "pdflatex" format in PDFLaTeX template
        (XFig): ditto
        (ChessDiagram): Add PDFLaTeX template
        (Date): ditto

        * lib/configure.py: Add "pdflatex" format

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13520 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agosrc/insets/insettabular (doDispatch, insertAsciiString): fix insertion of \t- and...
Jürgen Spitzmüller [Tue, 28 Mar 2006 14:04:14 +0000 (14:04 +0000)]
src/insets/insettabular (doDispatch, insertAsciiString): fix insertion of \t- and \n-separated content from external clipboard (bug 2394)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13518 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix bug 2380:
Georg Baum [Tue, 28 Mar 2006 12:49:47 +0000 (12:49 +0000)]
Fix bug 2380:
* src/insets/insettabular.C
        (InsetTabular::hasPasteBuffer):
        (InsetTabular::doDispatch):
        (InsetTabular::insertAsciiString): Construct LyXTabulars with a
        BufferView
* src/tabular.[Ch]
        (cellstruct): Set bv_owner of the text inset
        (LyXTabular::fixCellNums):
        (LyXTabular::appendRow):
        (LyXTabular::deleteRow):
        (LyXTabular::appendColumn):
        (LyXTabular::read): Construct cellstructs with a BufferView

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13516 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* frontends/{qt2,qt4}/QPrefsDialog.C (remove_format):
Jürgen Spitzmüller [Tue, 28 Mar 2006 12:01:31 +0000 (12:01 +0000)]
* 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

18 years ago* lib/scripts/lyxpreview2bitmap.py: fix frac calculation (bug 2391).
Jürgen Spitzmüller [Tue, 28 Mar 2006 10:18:02 +0000 (10:18 +0000)]
* lib/scripts/lyxpreview2bitmap.py: fix frac calculation (bug 2391).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13511 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoupdate to Spanish tutorial from Luis Guillermo Cota Preciado
Jean-Marc Lasgouttes [Tue, 28 Mar 2006 09:37:36 +0000 (09:37 +0000)]
update to Spanish tutorial from Luis Guillermo Cota Preciado

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13507 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agocompatibility with new intel macs
Jean-Marc Lasgouttes [Tue, 28 Mar 2006 09:28:24 +0000 (09:28 +0000)]
compatibility with new intel macs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13506 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoadd missing files
Jean-Marc Lasgouttes [Tue, 28 Mar 2006 09:15:28 +0000 (09:15 +0000)]
add missing files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13503 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/insets/insetert.C
Georg Baum [Mon, 27 Mar 2006 14:13:48 +0000 (14:13 +0000)]
    * src/insets/insetert.C
        (getStatus): enable LFUN_QUOTE
        (doDispatch): handle LFUN_QUOTE directly (fixes bug 2429)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13501 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* QCitation::findKey() use QRegExp but find still doesn't work
Abdelrazak Younes [Sun, 26 Mar 2006 18:35:15 +0000 (18:35 +0000)]
* 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

18 years agoRevert patch from bug 1954, to fix bug 2421
John Spray [Sun, 26 Mar 2006 10:18:52 +0000 (10:18 +0000)]
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

18 years agoFrom Uwe:
Georg Baum [Sun, 26 Mar 2006 08:28:06 +0000 (08:28 +0000)]
From Uwe:
* chkconfig.ltx: check for the preview package
* doc/LaTeXConfig.lyx.in: document prettyref, varioref and preview

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13497 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoThis new citation dialog follows a new design similar to lyx-1.3:
Abdelrazak Younes [Sat, 25 Mar 2006 21:26:09 +0000 (21:26 +0000)]
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

18 years ago * src/text.C
Jürgen Spitzmüller [Sat, 25 Mar 2006 16:38:28 +0000 (16:38 +0000)]
* src/text.C
(bool LyXText::Delete):
move cursor to next par after deleting a paragraph break
in change tracking mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13495 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Fix the bug reported by Markus Mayer, that paragraph styles like
Martin Vermeer [Sat, 25 Mar 2006 16:23:06 +0000 (16:23 +0000)]
Fix the bug reported by Markus Mayer, that paragraph styles like
itemize too readily enter into charstyle insets.

* insetcharstyle.C
(InsetCharStyle::doDispatch): force pasted paragraphs to document
default style

* insetcharstyle.h: add forceDefaultParagraphs to true

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13494 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/text.C (bool LyXText::backspace):
Jürgen Spitzmüller [Sat, 25 Mar 2006 09:18:28 +0000 (09:18 +0000)]
* src/text.C (bool LyXText::backspace):
don't try to go to previous par when in first par
(fix crash in change tracking mode).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13492 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago- The layout combox box has now a maximum number of 30 visible items. In the future...
Abdelrazak Younes [Fri, 24 Mar 2006 20:53:40 +0000 (20:53 +0000)]
- 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

18 years agoOups, compilation fix (missing a '{')
Abdelrazak Younes [Fri, 24 Mar 2006 17:37:44 +0000 (17:37 +0000)]
Oups, compilation fix (missing a '{')

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13488 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* src/frontends/qt4/QDocumentDialog.C
Abdelrazak Younes [Fri, 24 Mar 2006 16:37:06 +0000 (16:37 +0000)]
* 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

18 years agoCompilation Fix: Appended "Ui" to main objectName so that it is the same as the ui...
Abdelrazak Younes [Fri, 24 Mar 2006 15:59:11 +0000 (15:59 +0000)]
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

18 years ago * development/MacOSX/LyX.app/Contents/Library/Spotlight/LyX-Metadata.mdimporter...
Jean-Marc Lasgouttes [Fri, 24 Mar 2006 15:47:09 +0000 (15:47 +0000)]
* development/MacOSX/LyX.app/Contents/Library/Spotlight/LyX-Metadata.mdimporter/: update.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13482 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * MacOSX/LyX.app/Contents/MacOS/lyxeditor: update location of
Jean-Marc Lasgouttes [Fri, 24 Mar 2006 15:30:40 +0000 (15:30 +0000)]
* MacOSX/LyX.app/Contents/MacOS/lyxeditor: update location of
preferences file within LyX.app bundle

* MacOSX/LyX.app/Contents/Resources/preferences: update
path_prefix to include /opt/local/bin, and remove references to
"-1.4" version suffix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13481 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * insets/insetgraphics.C
Jean-Marc Lasgouttes [Fri, 24 Mar 2006 13:45:33 +0000 (13:45 +0000)]
* insets/insetgraphics.C
(InsetGraphics::latex): add \protect as needed (bug 675)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13478 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/cursor.C
Jean-Marc Lasgouttes [Fri, 24 Mar 2006 13:09:46 +0000 (13:09 +0000)]
* src/cursor.C
(bruteFind): only iterate over the paragraphs that are
in the CoordCache (bug 2217)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13476 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix latex_path on cygwin:
Georg Baum [Fri, 24 Mar 2006 12:48:37 +0000 (12:48 +0000)]
Fix latex_path on cygwin:
        * src/support/os.h
        * src/support/os_unix.C
        * src/support/os_win32.C
        * src/support/os_cygwin.C
        (latex_path): new function, handle the OS-specific part of
        lyx::support::latex_path

        * src/support/filetools.C
        (latex_path): use lyx::os::support::latex_path (bug 2409)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13474 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoPartial fix to bug 2355.
Jean-Marc Lasgouttes [Fri, 24 Mar 2006 11:57:19 +0000 (11:57 +0000)]
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

18 years ago * output_latex.h:
Lars Gullik Bjønnes [Thu, 23 Mar 2006 20:11:06 +0000 (20:11 +0000)]
    * output_latex.h:
        * buffer.h:
        * CutAndPaste.h:
        * pariterator.h:
        * paragraph_funcs.h:
        * output_linuxdoc.h:
        * output_docbook.h:
        * insets/insettext.h: get forward declaration of ParagraphList

        * output_plaintext.C:
        * bufferlist.C:
        * undo.C:
        * lyxtext.h:
        * undo.h:
        * buffer_funcs.C:
        * insets/insetbibitem.C: get proper ParagraphList decls

        * output_linuxdoc.C (linuxdocParagraphs):
        * output_latex.C (TeXOnePar):
        * insets/insettext.C (appendParagraphs):
        * insets/insetcharstyle.C (docbook): use std::distance

        * CutAndPaste.C (pasteSelectionHelper, copySelectionHelper):
        * paragraph_funcs.C (breakParagraph,
        breakParagraphConservative, mergeParagraph):
        * text.C (acceptChange, rejectChange):
        * text2.C (deleteEmptyParagraphMechanism): use boost::next

        * output_docbook.C (several places): use boost::next and
        std::distance

        * ParagraphList_fwd.h: modify to provid a forward declaratoin
        of the new ParagraphList.

        * RandomAccessList.h: New container for Paragraphs from
        Abdelrazak Younes

        * ParagraphList.h: new file, setup user of RandomAccessList

        * paragraph.C: remove ParagraphList constructor from this file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13467 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoStore colors as rgb values in branches.
Georg Baum [Thu, 23 Mar 2006 20:04:05 +0000 (20:04 +0000)]
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

18 years ago * src/frontends/qt4/QPrefsDialog.C
Abdelrazak Younes [Thu, 23 Mar 2006 16:38:46 +0000 (16:38 +0000)]
     * 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

18 years ago * src/lyxfunc.C
Jean-Marc Lasgouttes [Thu, 23 Mar 2006 13:52:32 +0000 (13:52 +0000)]
    * src/lyxfunc.C
        (LyXFunc::getStatus): enable LFUN_MENUWRITE for a new document.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13463 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agodocument that wheel_jump is only used in xforms
Georg Baum [Thu, 23 Mar 2006 12:02:39 +0000 (12:02 +0000)]
document that wheel_jump is only used in xforms

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13461 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/frontends/qt2/qscreen.C
Jean-Marc Lasgouttes [Thu, 23 Mar 2006 11:15:00 +0000 (11:15 +0000)]
    * 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

18 years agoAdd the tests/ subdirectory
Jean-Marc Lasgouttes [Thu, 23 Mar 2006 11:11:19 +0000 (11:11 +0000)]
Add the tests/ subdirectory

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13458 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* src/frontends/qt2/QPrefs.C
Jürgen Spitzmüller [Thu, 23 Mar 2006 09:37:05 +0000 (09:37 +0000)]
* 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

18 years agocompile fix from Ling Li: remove superflous class name of members
Georg Baum [Wed, 22 Mar 2006 21:38:40 +0000 (21:38 +0000)]
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

18 years agoChangelog:
Abdelrazak Younes [Wed, 22 Mar 2006 18:59:17 +0000 (18:59 +0000)]
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

18 years ago * math_gridinset.C (MathGridInset::doDispatch): reset cur.pos() when
Martin Vermeer [Wed, 22 Mar 2006 08:46:54 +0000 (08:46 +0000)]
* math_gridinset.C (MathGridInset::doDispatch): reset cur.pos() when
deleting current col or row

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13450 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoINSTALL.Win32: Update Windows installation instructions
Michael Schmitt [Tue, 21 Mar 2006 22:24:21 +0000 (22:24 +0000)]
INSTALL.Win32: Update Windows installation instructions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13449 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoset svn:eol-style to native in qt4 frontend
Georg Baum [Tue, 21 Mar 2006 19:56:57 +0000 (19:56 +0000)]
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