mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-24 08:58:51 +00:00
bbc587ee9a
Index: frontends/qt3/lyx_gui.C =================================================================== --- frontends/qt3/lyx_gui.C (revision 14088) +++ frontends/qt3/lyx_gui.C (working copy) @@ -222,12 +222,12 @@ void start(string const & batch, vector<string> const & files, - unsigned int width, unsigned int height, int posx, int posy, bool isMax) + unsigned int width, unsigned int height, int posx, int posy, bool maximize) { // this can't be done before because it needs the Languages object initEncodings(); - boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax)); + boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize)); LyX::ref().addLyXView(view_ptr); QtView & view = *view_ptr.get(); Index: frontends/qt3/QtView.C =================================================================== --- frontends/qt3/QtView.C (revision 14088) +++ frontends/qt3/QtView.C (working copy) @@ -55,12 +55,12 @@ -QtView::QtView(unsigned int width, unsigned int height, bool isMax) +QtView::QtView(unsigned int width, unsigned int height, bool maximize) : QMainWindow(), LyXView(), commandbuffer_(0) { resize(width, height); - if(isMax) + if (maximize) this->setWindowState(WindowMaximized); qApp->setMainWidget(this); @@ -164,7 +164,7 @@ void QtView::closeEvent(QCloseEvent *) { LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no")); - //don't save maximized values + // don't save maximized values this->showNormal(); // save windows size and position LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width())); Index: frontends/qt3/QtView.h =================================================================== --- frontends/qt3/QtView.h (revision 14088) +++ frontends/qt3/QtView.h (working copy) @@ -37,7 +37,7 @@ Q_OBJECT public: /// create a main window of the given dimensions - QtView(unsigned int w, unsigned int h, bool isMax); + QtView(unsigned int w, unsigned int h, bool maximize); ~QtView(); Index: frontends/qt4/lyx_gui.C =================================================================== --- frontends/qt4/lyx_gui.C (revision 14088) +++ frontends/qt4/lyx_gui.C (working copy) @@ -228,12 +228,12 @@ void start(string const & batch, vector<string> const & files, - unsigned int width, unsigned int height, int posx, int posy, bool isMax) + unsigned int width, unsigned int height, int posx, int posy, bool maximize) { // this can't be done before because it needs the Languages object initEncodings(); - boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax)); + boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize)); LyX::ref().addLyXView(view_ptr); QtView & view = *view_ptr.get(); Index: frontends/qt4/QtView.C =================================================================== --- frontends/qt4/QtView.C (revision 14088) +++ frontends/qt4/QtView.C (working copy) @@ -70,12 +70,12 @@ } // namespace anon -QtView::QtView(unsigned int width, unsigned int height, bool isMax) +QtView::QtView(unsigned int width, unsigned int height, bool maximize) : QMainWindow(), LyXView(), commandbuffer_(0) { resize(width, height); - if(isMax) + if (maximize) this->setWindowState(Qt::WindowMaximized); mainWidget_ = this; Index: frontends/qt4/QtView.h =================================================================== --- frontends/qt4/QtView.h (revision 14088) +++ frontends/qt4/QtView.h (working copy) @@ -47,7 +47,7 @@ Q_OBJECT public: /// create a main window of the given dimensions - QtView(unsigned int w, unsigned int h, bool isMax); + QtView(unsigned int w, unsigned int h, bool maximize); ~QtView(); Index: frontends/lyx_gui.h =================================================================== --- frontends/lyx_gui.h (revision 14088) +++ frontends/lyx_gui.h (working copy) @@ -57,7 +57,7 @@ * batch commands, and loading the given documents */ void start(std::string const & batch, std::vector<std::string> const & files, - unsigned int width, unsigned int height, int posx, int posy, bool isMax); + unsigned int width, unsigned int height, int posx, int posy, bool maximize); /** * Enter the main event loop (\sa LyX::exec2) Index: lyx_main.C =================================================================== --- lyx_main.C (revision 14088) +++ lyx_main.C (working copy) @@ -307,7 +307,7 @@ // initial geometry unsigned int width = 690; unsigned int height = 510; - bool isMax = false; + bool maximize = false; // first try lyxrc if (lyxrc.geometry_width != 0 && lyxrc.geometry_height != 0 ) { width = lyxrc.geometry_width; @@ -322,7 +322,7 @@ if (!val.empty()) height = convert<unsigned int>(val); if (session().loadSessionInfo("WindowIsMaximized") == "yes") - isMax = true; + maximize = true; } // if user wants to restore window position int posx = -1; @@ -335,7 +335,7 @@ if (!val.empty()) posy = convert<int>(val); } - lyx_gui::start(batch_command, files, width, height, posx, posy, isMax); + lyx_gui::start(batch_command, files, width, height, posx, posy, maximize); } else { // Something went wrong above quitLyX(false); git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14089 a592a061-630c-0410-9148-cb99ea01b6c8 |
||
---|---|---|
.. | ||
client | ||
frontends | ||
graphics | ||
insets | ||
mathed | ||
support | ||
tex2lyx | ||
aspell_local.h | ||
aspell.C | ||
author.C | ||
author.h | ||
Bidi.C | ||
Bidi.h | ||
boost.C | ||
box.C | ||
box.h | ||
BranchList.C | ||
BranchList.h | ||
buffer_funcs.C | ||
buffer_funcs.h | ||
buffer.C | ||
buffer.h | ||
bufferlist.C | ||
bufferlist.h | ||
bufferparams.C | ||
bufferparams.h | ||
bufferview_funcs.C | ||
bufferview_funcs.h | ||
BufferView_pimpl.C | ||
BufferView_pimpl.h | ||
BufferView.C | ||
BufferView.h | ||
Bullet.C | ||
Bullet.h | ||
ChangeLog | ||
changes.C | ||
changes.h | ||
Chktex.C | ||
Chktex.h | ||
chset.C | ||
chset.h | ||
Color.C | ||
Color.h | ||
converter.C | ||
converter.h | ||
coordcache.C | ||
coordcache.h | ||
counters.C | ||
counters.h | ||
cursor_slice.C | ||
cursor_slice.h | ||
cursor.C | ||
cursor.h | ||
CutAndPaste.C | ||
CutAndPaste.h | ||
debug.C | ||
debug.h | ||
DepTable.C | ||
DepTable.h | ||
dimension.C | ||
dimension.h | ||
dispatchresult.h | ||
dociterator.C | ||
dociterator.h | ||
encoding.C | ||
encoding.h | ||
errorlist.C | ||
errorlist.h | ||
exporter.C | ||
exporter.h | ||
factory.C | ||
factory.h | ||
Floating.C | ||
Floating.h | ||
FloatList.C | ||
FloatList.h | ||
FontIterator.C | ||
FontIterator.h | ||
format.C | ||
format.h | ||
funcrequest.C | ||
funcrequest.h | ||
FuncStatus.C | ||
FuncStatus.h | ||
gettext.C | ||
gettext.h | ||
graph.C | ||
graph.h | ||
importer.C | ||
importer.h | ||
insetiterator.C | ||
insetiterator.h | ||
InsetList.C | ||
InsetList.h | ||
intl.C | ||
intl.h | ||
ispell.C | ||
ispell.h | ||
kbmap.C | ||
kbmap.h | ||
kbsequence.C | ||
kbsequence.h | ||
language.C | ||
language.h | ||
LaTeX.C | ||
LaTeX.h | ||
LaTeXFeatures.C | ||
LaTeXFeatures.h | ||
layout.h | ||
LColor.C | ||
LColor.h | ||
lengthcommon.C | ||
lengthcommon.h | ||
lfuns.h | ||
lyx_cb.C | ||
lyx_cb.h | ||
lyx_main.C | ||
lyx_main.h | ||
lyx_sty.C | ||
lyx_sty.h | ||
LyXAction.C | ||
LyXAction.h | ||
lyxfind.C | ||
lyxfind.h | ||
lyxfont.C | ||
lyxfont.h | ||
lyxfunc.C | ||
lyxfunc.h | ||
lyxgluelength.C | ||
lyxgluelength.h | ||
lyxlayout_ptr_fwd.h | ||
lyxlayout.C | ||
lyxlayout.h | ||
lyxlength.C | ||
lyxlength.h | ||
lyxlex_pimpl.C | ||
lyxlex_pimpl.h | ||
lyxlex.C | ||
lyxlex.h | ||
lyxrc.C | ||
lyxrc.h | ||
lyxrow_funcs.C | ||
lyxrow_funcs.h | ||
lyxrow.C | ||
lyxrow.h | ||
lyxserver.C | ||
lyxserver.h | ||
lyxsocket.C | ||
lyxsocket.h | ||
lyxtext.h | ||
lyxtextclass.C | ||
lyxtextclass.h | ||
lyxtextclasslist.C | ||
lyxtextclasslist.h | ||
lyxvc.C | ||
lyxvc.h | ||
main.C | ||
Makefile.am | ||
MenuBackend.C | ||
MenuBackend.h | ||
messages.C | ||
messages.h | ||
metricsinfo.C | ||
metricsinfo.h | ||
mover.C | ||
mover.h | ||
output_docbook.C | ||
output_docbook.h | ||
output_latex.C | ||
output_latex.h | ||
output_linuxdoc.C | ||
output_linuxdoc.h | ||
output_plaintext.C | ||
output_plaintext.h | ||
output.C | ||
output.h | ||
outputparams.C | ||
outputparams.h | ||
paper.h | ||
paragraph_funcs.C | ||
paragraph_funcs.h | ||
paragraph_pimpl.C | ||
paragraph_pimpl.h | ||
paragraph.C | ||
paragraph.h | ||
ParagraphList_fwd.h | ||
ParagraphList.h | ||
ParagraphParameters.C | ||
ParagraphParameters.h | ||
pariterator.C | ||
pariterator.h | ||
pch.h | ||
PrinterParams.C | ||
PrinterParams.h | ||
pspell.C | ||
pspell.h | ||
RowList_fwd.h | ||
rowpainter.C | ||
rowpainter.h | ||
Sectioning.C | ||
Sectioning.h | ||
session.C | ||
session.h | ||
sgml.C | ||
sgml.h | ||
Spacing.C | ||
Spacing.h | ||
SpellBase.C | ||
SpellBase.h | ||
stamp-h.in | ||
tabular.C | ||
tabular.h | ||
tex-accent.C | ||
tex-accent.h | ||
tex-strings.C | ||
tex-strings.h | ||
texrow.C | ||
texrow.h | ||
text2.C | ||
text3.C | ||
text.C | ||
Thesaurus.C | ||
Thesaurus.h | ||
toc.C | ||
toc.h | ||
TocBackend.C | ||
TocBackend.h | ||
ToolbarBackend.C | ||
ToolbarBackend.h | ||
trans_decl.h | ||
trans_mgr.C | ||
trans_mgr.h | ||
trans.C | ||
trans.h | ||
undo.C | ||
undo.h | ||
Variables.C | ||
Variables.h | ||
vc-backend.C | ||
vc-backend.h | ||
version.C.in | ||
version.h | ||
vspace.C | ||
vspace.h | ||
WordLangTuple.h |