Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21577 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-13 10:20:55 +00:00
parent 979239a248
commit 4eb2740a0d
2 changed files with 13 additions and 15 deletions

View File

@ -16,8 +16,6 @@
#include "frontends/Delegates.h" #include "frontends/Delegates.h"
#include "support/strfwd.h" #include "support/strfwd.h"
#include <vector>
namespace lyx { namespace lyx {
namespace support { class FileName; } namespace support { class FileName; }
@ -79,7 +77,7 @@ public:
unsigned int width, unsigned int width,
unsigned int height, unsigned int height,
int posx, int posy, int posx, int posy,
int maximize, Maximized maximize,
unsigned int iconSizeXY, unsigned int iconSizeXY,
const std::string & geometryArg) = 0; const std::string & geometryArg) = 0;

View File

@ -447,7 +447,7 @@ void GuiView::saveGeometry()
// adjust GuiView::setGeometry() // adjust GuiView::setGeometry()
QRect normal_geometry; QRect normal_geometry;
int maximized; Maximized maximized;
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
normal_geometry = normalGeometry(); normal_geometry = normalGeometry();
if (isMaximized()) { if (isMaximized()) {
@ -497,7 +497,7 @@ void GuiView::saveGeometry()
void GuiView::setGeometry(unsigned int width, void GuiView::setGeometry(unsigned int width,
unsigned int height, unsigned int height,
int posx, int posy, int posx, int posy,
int maximized, Maximized maximized,
unsigned int iconSizeXY, unsigned int iconSizeXY,
const string & geometryArg) const string & geometryArg)
{ {
@ -673,7 +673,7 @@ void GuiView::on_currentWorkAreaChanged(GuiWorkArea * wa)
// Buffer-dependent dialogs should be updated or // Buffer-dependent dialogs should be updated or
// hidden. This should go here because some dialogs (eg ToC) // hidden. This should go here because some dialogs (eg ToC)
// require bv_->text. // require bv_->text.
getDialogs().updateBufferDependent(true); dialogs_->updateBufferDependent(true);
updateToolbars(); updateToolbars();
updateLayoutChoice(false); updateLayoutChoice(false);
updateStatusBar(); updateStatusBar();
@ -753,7 +753,7 @@ bool GuiView::event(QEvent * e)
connectBuffer(bv.buffer()); connectBuffer(bv.buffer());
// The document structure, name and dialogs might have // The document structure, name and dialogs might have
// changed in another view. // changed in another view.
getDialogs().updateBufferDependent(true); dialogs_->updateBufferDependent(true);
} else { } else {
setWindowTitle(qt_("LyX")); setWindowTitle(qt_("LyX"));
setWindowIconText(qt_("LyX")); setWindowIconText(qt_("LyX"));
@ -942,7 +942,7 @@ void GuiView::removeWorkArea(GuiWorkArea * work_area)
if (gwa == d.current_work_area_) { if (gwa == d.current_work_area_) {
disconnectBuffer(); disconnectBuffer();
disconnectBufferView(); disconnectBufferView();
getDialogs().hideBufferDependent(); dialogs_->hideBufferDependent();
d.current_work_area_ = 0; d.current_work_area_ = 0;
} }
@ -1040,7 +1040,7 @@ void GuiView::updateToolbars()
d.toolbars_->update(false, false, false); d.toolbars_->update(false, false, false);
// update read-only status of open dialogs. // update read-only status of open dialogs.
getDialogs().checkStatus(); dialogs_->checkStatus();
} }
@ -1165,33 +1165,33 @@ void GuiView::errors(string const & error_type)
{ {
ErrorList & el = buffer()->errorList(error_type); ErrorList & el = buffer()->errorList(error_type);
if (!el.empty()) if (!el.empty())
getDialogs().show("errorlist", error_type); dialogs_->show("errorlist", error_type);
} }
void GuiView::showDialog(string const & name) void GuiView::showDialog(string const & name)
{ {
getDialogs().show(name); dialogs_->show(name);
} }
void GuiView::showDialogWithData(string const & name, string const & data) void GuiView::showDialogWithData(string const & name, string const & data)
{ {
getDialogs().show(name, data); dialogs_->show(name, data);
} }
void GuiView::showInsetDialog(string const & name, string const & data, void GuiView::showInsetDialog(string const & name, string const & data,
Inset * inset) Inset * inset)
{ {
getDialogs().show(name, data, inset); dialogs_->show(name, data, inset);
} }
void GuiView::updateDialog(string const & name, string const & data) void GuiView::updateDialog(string const & name, string const & data)
{ {
if (getDialogs().visible(name)) if (dialogs_->visible(name))
getDialogs().update(name, data); dialogs_->update(name, data);
} }