]> git.lyx.org Git - features.git/commit
This commit transfers the singletons defined in the Application class to the private...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 07:20:32 +0000 (07:20 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 07:20:32 +0000 (07:20 +0000)
commit1f8fe293847e941f4737dc09064b5dc877494f21
tree12b5e7bc7402c5cca650c1ec03fceb2f67e996ac
parentcbe1309573c8969ac85855f644cf18e267cad20a
This commit transfers the singletons defined in the Application class to the private LyX::Singletons implementation. It also put the session_ member and top_level_keymap global variable into this Singleton structure.
This commit also modifies the LyXFunc class. A LyXView is not needed any more at construction. Neither is the top level keymap. The LyXFunc key sequences are initialized only if we are in GUI mode (lyx::use_gui = true).
The next step is to rename LyXFunc::owner to LyXFunc::lyx_view_ and to put some BOOST_ASSERT. A classification between Gui and Kernel oriented LFUNs would also be welcome.

*LyX/lyx_main.[Ch]:
 - LyX::Singletons: new private structure containing all the singletons (except the main LyX one of course).
 - buffer_list_, top_level_keymap, session_: transfered to the LyX::Singletons structure.

* LyXFunc:
  - LyXFunc: default constructor does not need any arguments.
  - setupLocalKeymap(): deleted (was not used anywhere).
  - initKeySequences(): new public method called from lyx_main.C, useful only in lyx::use_gui mode.
  - new private member accessor methods

* Application:
  - Application_pimpl: deleted (transfered to LyX)
  - global singleton accessors: transfered to lyx_main.C
  - start(): code transfered to LyX::priv_exec()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15367 a592a061-630c-0410-9148-cb99ea01b6c8
13 files changed:
src/MenuBackend.C
src/format.C
src/frontends/Application.C
src/frontends/Application.h
src/frontends/qt3/QLPopupMenu.C
src/frontends/qt4/QLPopupMenu.C
src/kbmap.h
src/lyx_main.C
src/lyx_main.h
src/lyxfunc.C
src/lyxfunc.h
src/lyxserver.h
src/lyxsocket.h