cosmetics and comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-15 19:46:30 +00:00
parent f46454fb7a
commit 79e12182cb
3 changed files with 6 additions and 6 deletions

View 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_; }

View 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();

View 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