mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
f46454fb7a
commit
79e12182cb
@ -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_; }
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user