make controllers subdir before xforms

move Dialogs::add, Dialogs::destroySplash out-of-line


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1960 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-04-26 18:58:49 +00:00
parent 697a0d48b5
commit 0ea6558157
3 changed files with 43 additions and 12 deletions

View File

@ -1,3 +1,11 @@
2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
* Makefile.am: make controllers subdir before xforms.
* Dialogs.h: (add, destroySplash): moved out of line and into Dialogs.C.
* Dialogs.C: new file, instantiating the add, destroySplash methods.
2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Liason.[Ch] (setMinibuffer): change second arg to string

35
src/frontends/Dialogs.C Normal file
View File

@ -0,0 +1,35 @@
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
* ======================================================
*
* \file Dialogs.C
* \author Angus Leeming <a.leeming@ic.ac.uk>
*
* Methods common to all frontends' Dialogs that should not be inline
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "Dialogs.h"
#include "support/LAssert.h"
void Dialogs::add(DialogBase * ptr)
{
lyx::Assert(ptr);
dialogs_.push_back(db_ptr(ptr));
}
void Dialogs::destroySplash()
{
splash_.reset();
}

View File

@ -30,7 +30,6 @@
#endif
#include "DialogBase.h"
#include "support/LAssert.h"
// Maybe this should be a UIFunc modelled on LyXFunc
class LyXView;
@ -173,15 +172,4 @@ private:
boost::scoped_ptr<DialogBase> splash_;
};
inline void Dialogs::add(DialogBase * ptr)
{
lyx::Assert(ptr);
dialogs_.push_back(db_ptr(ptr));
}
inline void Dialogs::destroySplash()
{
splash_.reset();
}
#endif