kuemmel | 3 Dec 11:05 2006

r16153 - in /lyx-devel/trunk/src/frontends/qt4: GuiView.C...

Author: kuemmel
Date: Sun Dec  3 11:05:41 2006
New Revision: 16153

URL: http://www.lyx.org/trac/changeset/16153
Log:
fix quit problems on Mac

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.C
    lyx-devel/trunk/src/frontends/qt4/GuiView.h

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.C?rev=16153
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.C (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.C Sun Dec  3 11:05:41 2006
 <at>  <at>  -214,7 +214,27  <at>  <at> 
 	updateToolbars();
 	updateLayoutChoice();
 	updateMenubar();
-}
+
+#ifdef Q_WS_MACX
+	// Qt docs:
+	// "quit or exit	Application Menu | Quit <application name>	
+	// If this entry is not found a default Quit item will be created to call
+	// QApplication::quit()"
+	QMenu * lyxMenu =  menuBar()->addMenu("&LyX");
+	QAction * quitAction = new QAction(tr("&Quit"), this);
(Continue reading)

kuemmel | 3 Dec 11:14 2006

r16154 - in /lyx-devel/trunk/src: frontends/LyXView.h lyx...

Author: kuemmel
Date: Sun Dec  3 11:14:35 2006
New Revision: 16154

URL: http://www.lyx.org/trac/changeset/16154
Log:
remove unused signal

Modified:
    lyx-devel/trunk/src/frontends/LyXView.h
    lyx-devel/trunk/src/lyxfunc.C

Modified: lyx-devel/trunk/src/frontends/LyXView.h
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/LyXView.h?rev=16154
==============================================================================
--- lyx-devel/trunk/src/frontends/LyXView.h (original)
+++ lyx-devel/trunk/src/frontends/LyXView.h Sun Dec  3 11:14:35 2006
 <at>  <at>  -73,9 +73,6  <at>  <at> 
 	std::vector<int> const & workAreaIds() const { return work_area_ids_; }

 	void setWorkArea(frontend::WorkArea * work_area);
-
-	/// This signal is emitted with the LyXView id when it is closed.
-	boost::signal<void(int)> closed;

 	/**
 	 * This is called after the concrete view has been created.

Modified: lyx-devel/trunk/src/lyxfunc.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/lyxfunc.C?rev=16154
(Continue reading)

kuemmel | 3 Dec 11:30 2006

r16155 - /lyx-devel/trunk/src/frontends/qt4/GuiView.C

Author: kuemmel
Date: Sun Dec  3 11:30:18 2006
New Revision: 16155

URL: http://www.lyx.org/trac/changeset/16155
Log:
prepare fixing some memory leaks

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.C

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.C?rev=16155
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.C (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.C Sun Dec  3 11:30:18 2006
 <at>  <at>  -159,7 +159,7  <at>  <at> 
 	setAttribute(Qt::WA_QuitOnClose, false);
 	// FIXME: the following statement avoids memory leaks but produces a
 	//        crash after a new window has been closed (click into the menu)
-	//setAttribute(Qt::WA_DeleteOnClose, false);
+	//setAttribute(Qt::WA_DeleteOnClose, true);

 	// hardcode here the platform specific icon size
 	d.smallIconSize = 14;	// scaling problems

younes | 3 Dec 11:43 2006

r16156 - /lyx-devel/trunk/src/frontends/WorkArea.C

Author: younes
Date: Sun Dec  3 11:43:55 2006
New Revision: 16156

URL: http://www.lyx.org/trac/changeset/16156
Log:
* WorkArea::dispatch(): avoid GUI tweaks if cmd is a mouse motion with no button pressed.

Modified:
    lyx-devel/trunk/src/frontends/WorkArea.C

Modified: lyx-devel/trunk/src/frontends/WorkArea.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/WorkArea.C?rev=16156
==============================================================================
--- lyx-devel/trunk/src/frontends/WorkArea.C (original)
+++ lyx-devel/trunk/src/frontends/WorkArea.C Sun Dec  3 11:43:55 2006
 <at>  <at>  -204,14 +204,19  <at>  <at> 
 		lyx_view_.updateToolbars();
 	}

-	// Slight hack: this is only called currently when we
-	// clicked somewhere, so we force through the display
-	// of the new status here.
-	lyx_view_.clearMessage();
-
-	// Show the cursor immediately after any operation.
-	hideCursor();
-	toggleCursor();
+	
+	// GUI tweaks except with mouse motion with no button pressed.
(Continue reading)

younes | 3 Dec 14:09 2006

r16157 - in /lyx-devel/trunk/src/frontends/qt4: GuiView.C...

Author: younes
Date: Sun Dec  3 14:09:57 2006
New Revision: 16157

URL: http://www.lyx.org/trac/changeset/16157
Log:
Fix memory leaks with multiple windows and crash when deleteOnClose is set.

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.C
    lyx-devel/trunk/src/frontends/qt4/QLPopupMenu.C

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.C?rev=16157
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.C (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.C Sun Dec  3 14:09:57 2006
 <at>  <at>  -157,9 +157,7  <at>  <at> 
 {
 	// Qt bug? signal lastWindowClosed does not work
 	setAttribute(Qt::WA_QuitOnClose, false);
-	// FIXME: the following statement avoids memory leaks but produces a
-	//        crash after a new window has been closed (click into the menu)
-	//setAttribute(Qt::WA_DeleteOnClose, true);
+	setAttribute(Qt::WA_DeleteOnClose, true);

 	// hardcode here the platform specific icon size
 	d.smallIconSize = 14;	// scaling problems
 <at>  <at>  -180,6 +178,7  <at>  <at> 

(Continue reading)

younes | 3 Dec 14:17 2006

r16158 - /lyx-devel/trunk/src/frontends/qt4/GuiView.C

Author: younes
Date: Sun Dec  3 14:17:35 2006
New Revision: 16158

URL: http://www.lyx.org/trac/changeset/16158
Log:
two lines between function.

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.C

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.C?rev=16158
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.C (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.C Sun Dec  3 14:17:35 2006
 <at>  <at>  -90,6 +90,7  <at>  <at> 
 	}
 };

+
 struct GuiView::GuiViewPrivate
 {
 	typedef std::map<int, FuncRequest> FuncMap;
 <at>  <at>  -150,7 +151,9  <at>  <at> 
 	}
 };

+
 unsigned int GuiView::GuiViewPrivate::lastIconSize = 0;
(Continue reading)

schmitt | 3 Dec 15:48 2006

r16159 - /lyx-devel/trunk/src/support/filename.C

Author: schmitt
Date: Sun Dec  3 15:48:00 2006
New Revision: 16159

URL: http://www.lyx.org/trac/changeset/16159
Log:
src/support/filename.C: add assertion to ensure that no Windows-style 
file name is used internally (as suggested by Georg)

Modified:
    lyx-devel/trunk/src/support/filename.C

Modified: lyx-devel/trunk/src/support/filename.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/support/filename.C?rev=16159
==============================================================================
--- lyx-devel/trunk/src/support/filename.C (original)
+++ lyx-devel/trunk/src/support/filename.C Sun Dec  3 15:48:00 2006
 <at>  <at>  -42,6 +42,7  <at>  <at> 
 	: name_(abs_filename)
 {
 	BOOST_ASSERT(absolutePath(name_));
+	BOOST_ASSERT(!contains(name_, '\\'));
 }

 
 <at>  <at>  -49,6 +50,7  <at>  <at> 
 {
 	name_ = name;
 	BOOST_ASSERT(absolutePath(name_));
+	BOOST_ASSERT(!contains(name_, '\\'));
(Continue reading)

spitz | 3 Dec 16:36 2006

r16160 - /lyx-devel/trunk/lib/layouts/amsart.layout

Author: spitz
Date: Sun Dec  3 16:36:06 2006
New Revision: 16160

URL: http://www.lyx.org/trac/changeset/16160
Log:
* lib/layouts/amsart.layout:
	- reenable Address paragraph style to fix bug 2890
	  (as discussed on bugzilla)

Modified:
    lyx-devel/trunk/lib/layouts/amsart.layout

Modified: lyx-devel/trunk/lib/layouts/amsart.layout
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/lib/layouts/amsart.layout?rev=16160
==============================================================================
--- lyx-devel/trunk/lib/layouts/amsart.layout (original)
+++ lyx-devel/trunk/lib/layouts/amsart.layout Sun Dec  3 16:36:06 2006
 <at>  <at>  -51,7 +51,6  <at>  <at> 
 NoStyle                 Paragraph
 NoStyle                 Subparagraph
 NoStyle                 Chapter*
-NoStyle                 Address
 #NoStyle                Paragraph*
 #NoStyle                Subparagraph*

spitz | 3 Dec 16:41 2006

r16161 - in /lyx-devel/branches/BRANCH_1_4_X: lib/ChangeL...

Author: spitz
Date: Sun Dec  3 16:41:32 2006
New Revision: 16161

URL: http://www.lyx.org/trac/changeset/16161
Log:
* lib/layouts/amsart.layout:
	- reenable Address paragraph style to fix bug 2890
	  (as discussed on bugzilla)

Modified:
    lyx-devel/branches/BRANCH_1_4_X/lib/ChangeLog
    lyx-devel/branches/BRANCH_1_4_X/lib/layouts/amsart.layout
    lyx-devel/branches/BRANCH_1_4_X/status.14x

Modified: lyx-devel/branches/BRANCH_1_4_X/lib/ChangeLog
URL: http://www.lyx.org/trac/file/lyx-devel/branches/BRANCH_1_4_X/lib/ChangeLog?rev=16161
==============================================================================
--- lyx-devel/branches/BRANCH_1_4_X/lib/ChangeLog (original)
+++ lyx-devel/branches/BRANCH_1_4_X/lib/ChangeLog Sun Dec  3 16:41:32 2006
 <at>  <at>  -1,3 +1,7  <at>  <at> 
+2006-12-03  J├╝rgen Spitzm├╝ller <j.spitzmueller <at> gmx.de>
+
+	* layouts/amsart.layout: re-enable "Address" style (bug 2890).
+
 2006-11-24  Jean-Marc Lasgouttes  <lasgouttes <at> lyx.org>

 	* languages: use nb_NO instead of no_NO for norwegian (bug 2850).

Modified: lyx-devel/branches/BRANCH_1_4_X/lib/layouts/amsart.layout
(Continue reading)

bpeng | 4 Dec 05:31 2006

r16162 - in /lyx-devel/trunk/src: BufferView.C LColor.C L...

Author: bpeng
Date: Mon Dec  4 05:31:18 2006
New Revision: 16162

URL: http://www.lyx.org/trac/changeset/16162
Log:
Button face-lift: use mouse hover-buttons.
	* src/insets/insetbase.h: add setMouseHover function
	* src/insets/insetcommand.h/C: handle setMouseHover
	* src/insets/insetcollapsable.h/C: handle setMouseHover
	* src/LColor.h/C: redefine some colors
	* src/insets/render_base.h: add state_
	* src/insets/render_button.C: draw differently according to state_
	* src/frontends/Painter.h/C: hover-stype button
	* src/frontends/qt4/GuiWorkArea.C: enable mouse tracking
	* src/BufferView.C: track mouse_motion without button events

Modified:
    lyx-devel/trunk/src/BufferView.C
    lyx-devel/trunk/src/LColor.C
    lyx-devel/trunk/src/LColor.h
    lyx-devel/trunk/src/frontends/Painter.C
    lyx-devel/trunk/src/frontends/Painter.h
    lyx-devel/trunk/src/frontends/qt4/GuiWorkArea.C
    lyx-devel/trunk/src/insets/insetbase.h
    lyx-devel/trunk/src/insets/insetcollapsable.C
    lyx-devel/trunk/src/insets/insetcollapsable.h
    lyx-devel/trunk/src/insets/insetcommand.C
    lyx-devel/trunk/src/insets/insetcommand.h
    lyx-devel/trunk/src/insets/render_base.h
(Continue reading)


Gmane