X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_gui.h;h=a5ff60abbf2b191a4e2741a203affd6461b31a2e;hb=98c966c64594611e469313314abd1e59524adb4a;hp=55968e63423fd6c3b913ff9ae1a59768cfeb7df3;hpb=8d478c5e290221f00ef30dab858686c00d9319c1;p=lyx.git diff --git a/src/lyx_gui.h b/src/lyx_gui.h index 55968e6342..a5ff60abbf 100644 --- a/src/lyx_gui.h +++ b/src/lyx_gui.h @@ -1,17 +1,19 @@ // -*- C++ -*- /* This file is part of * ====================================================== - * + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ #ifndef LYX_GUI_H #define LYX_GUI_H +#include + #ifdef __GNUG__ #pragma interface #endif @@ -21,71 +23,49 @@ class LyX; class Buffer; /** - This class is going to be the entry point to {\em all} GUI funcionality. - From this object will all the things going on be initiated. However I - have not clearly figured out how this class is going to be, suggestions - are welcome. (Lgb) - */ -class LyXGUI { + This class is going to be the entry point to {\em all} GUI funcionality. + From this object will all the things going on be initiated. However I + have not clearly figured out how this class is going to be, suggestions + are welcome. (Lgb) +*/ +class LyXGUI : boost::noncopyable { public: - /**@name Constructor */ - //@{ - - /** The only constructor allowed - - If gui is false, LyX will operate in non-X mode - */ - LyXGUI(LyX *owner, int *argc, char *argv[], bool gui); + /** The only constructor allowed. + If gui is false, LyX will operate in non-X mode + */ + LyXGUI(LyX * owner, int * argc, char * argv[], bool gui); /// ~LyXGUI(); - //@} - - /**@name Members */ - //@{ + /** - This functions starts the ball. For XForms it runs a loop of - fl_check_forms(). For QT this will probably be .exec(). - */ + This functions starts the ball. For XForms it runs a loop of + fl_check_forms(). For QT this will probably be .exec(). + */ void runTime(); /** This will take care of the initializaton done after the - main initialization. - */ + main initialization. + */ void init(); /// Register the buffer with the first found LyXView in lyxViews - void regBuf(Buffer*); + void regBuf(Buffer *); /// Access to (first?) LyXView LyXView * getLyXView() const; - - //@} + private: - /**@name Construcor */ - //@{ - /// not allowed - LyXGUI(); // don't allow this - /// not allowed - LyXGUI(const LyXGUI&); // nor this - //@} - - /**@name Members */ - //@{ /// void setDefaults(); /// void create_forms(); - //@} - /**@name Variables */ - //@{ /// The LyX that owns this GUI. - LyX *_owner; + LyX * _owner; /// - LyXView *lyxViews; // or something so that several views + LyXView * lyxViews; // or something so that several views // on the same time can be allowed. /// Do we have a gui? bool gui; - //@} }; #endif