]> git.lyx.org Git - features.git/commitdiff
cosmetics and comments.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 15 Nov 2007 19:46:30 +0000 (19:46 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 15 Nov 2007 19:46:30 +0000 (19:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21630 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Application.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h

index 87293abbfb6108fb036807331bfd6209eb141302..8ca6ace8a31518530cee656964a9542c253113ac 100644 (file)
@@ -214,7 +214,8 @@ public:
        virtual void unregisterSocketCallback(int fd) = 0;
 
        /// Create the main window with given geometry settings.
-       virtual LyXView & createView(std::string const & geometryArg) = 0;
+       /// \param geometry_arg: only for Windows platform.
+       virtual LyXView & createView(std::string const & geometry_arg) = 0;
 
        ///
        LyXView const * currentView() const { return current_view_; }
index cac3014b2c4ef6b3f69f6fae6965554dee6acd4b..0cfd6d104bdf9eb21e92650abac27c66550094e3 100644 (file)
@@ -195,7 +195,7 @@ GuiApplication::~GuiApplication()
 }
 
 
-LyXView & GuiApplication::createView(string const & geometryArg)
+LyXView & GuiApplication::createView(string const & geometry_arg)
 {
        int const id = gui_.createRegisteredView();
        GuiView & view = static_cast<GuiView &>(gui_.view(id));
@@ -203,13 +203,12 @@ LyXView & GuiApplication::createView(string const & geometryArg)
 
        view.init();
        view.show();
-       if (!geometryArg.empty())
-       {
+       if (!geometry_arg.empty()) {
 #ifdef Q_WS_WIN
                int x, y;
                int w, h;
                QRegExp re( "[=]*(?:([0-9]+)[xX]([0-9]+)){0,1}[ ]*(?:([+-][0-9]*)([+-][0-9]*)){0,1}" );
-               re.indexIn(toqstr(geometryArg.c_str()));
+               re.indexIn(toqstr(geometry_arg.c_str()));
                w = re.cap(1).toInt();
                h = re.cap(2).toInt();
                x = re.cap(3).toInt();
index 6d8f8cb502cb0a3e57d331f12cd85e8f6b3ae560..2d5a547f6c0ee29f11e23ef1a7f6bca43053d386 100644 (file)
@@ -70,7 +70,7 @@ public:
        virtual void updateColor(ColorCode col);
        virtual void registerSocketCallback(int fd, SocketCallback func);
        void unregisterSocketCallback(int fd);
-       LyXView & createView(std::string const & geometryArg);
+       LyXView & createView(std::string const & geometry_arg);
        //@}
 
        /// Methods inherited from \c QApplication class