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_; }
}
-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));
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();
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