lyx_mirror/src
Peter Kümmel bbc587ee9a coding style and readability corrections
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
2006-06-13 08:24:43 +00:00
..
client Remove the now superseeded SConscript files, and some small missing parts to SConstruct 2006-05-10 18:05:12 +00:00
frontends coding style and readability corrections 2006-06-13 08:24:43 +00:00
graphics Remove the now superseeded SConscript files, and some small missing parts to SConstruct 2006-05-10 18:05:12 +00:00
insets * insetbox.h: add noFontChange() == true to prevent LaTeX error for 2006-06-09 12:10:49 +00:00
mathed * src/mathed/math_hullinset.h (canTrackChanges): remove, since math insets do 2006-05-18 21:08:11 +00:00
support * src/support/os_unix.C (canAutoOpenFile, autoOpenFile): add support for Mac 2006-05-29 16:41:51 +00:00
tex2lyx Remove the now superseeded SConscript files, and some small missing parts to SConstruct 2006-05-10 18:05:12 +00:00
aspell_local.h
aspell.C
author.C
author.h
Bidi.C Trivial fixes to some warnings thrown up by MSVS.Net 2003. 2005-11-02 20:11:36 +00:00
Bidi.h
boost.C do not define boost::throw_exceptions if we are compiling with exceptions 2006-04-05 23:55:36 +00:00
box.C
box.h
BranchList.C Store colors as rgb values in branches. 2006-03-23 20:04:05 +00:00
BranchList.h Store colors as rgb values in branches. 2006-03-23 20:04:05 +00:00
buffer_funcs.C * TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted code from former toc.C 2006-04-22 18:48:28 +00:00
buffer_funcs.h * src/buffer_funcs.[Ch] 2006-04-16 14:19:25 +00:00
buffer.C Add support for framed.sty 2006-06-03 16:46:27 +00:00
buffer.h Prevent automatic opening of child docs because of natbib labels 2006-05-19 07:21:43 +00:00
bufferlist.C Fix a few issues with session/lastopenedfiles, Bo Peng (ben.bob@gmail.com) 2006-04-28 14:29:38 +00:00
bufferlist.h fix some syntax errors 2006-01-01 20:28:05 +00:00
bufferparams.C First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com) 2006-04-09 04:35:24 +00:00
bufferparams.h * src/bufferparams.h: make author_map use an unsigned index, to avoid 2006-06-07 17:05:25 +00:00
bufferview_funcs.C Whitespace cleanup. 2006-04-05 23:56:29 +00:00
bufferview_funcs.h
BufferView_pimpl.C * BufferView_pimpl.C (getStatus): 2006-05-22 14:28:43 +00:00
BufferView_pimpl.h add missing include (from r13663) 2006-04-13 17:09:30 +00:00
BufferView.C Fix crash that occurs if the cursor is in a table cell when the document class 2006-05-21 17:33:03 +00:00
BufferView.h * frontends/WorkArea.h(workAreaResize, scrollDocView, workAreaKeyPress, 2006-04-13 18:58:48 +00:00
Bullet.C
Bullet.h
ChangeLog adjust cursor after backspace in change tracking mode (bug 2185). 2006-03-16 15:53:28 +00:00
changes.C src/paragraph.h: 2006-05-08 20:30:52 +00:00
changes.h src/paragraph.h: 2006-05-08 20:30:52 +00:00
Chktex.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
Chktex.h
chset.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
chset.h
Color.C Whitespace cleanup. 2006-04-05 23:56:29 +00:00
Color.h Store colors as rgb values in branches. 2006-03-23 20:04:05 +00:00
converter.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
converter.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
coordcache.C
coordcache.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
counters.C cleanup some debug messages 2006-01-19 15:49:21 +00:00
counters.h
cursor_slice.C
cursor_slice.h
cursor.C Fix crash that occurs if the cursor is in a table cell when the document class 2006-05-21 17:33:03 +00:00
cursor.h * support/types.h: introduce the char_type type 2006-04-09 02:30:40 +00:00
CutAndPaste.C Fix crash that occurs if the cursor is in a table cell when the document class 2006-05-21 17:33:03 +00:00
CutAndPaste.h Fix crash that occurs if the cursor is in a table cell when the document class 2006-05-21 17:33:03 +00:00
debug.C Fix bug 2195: Slowness in rendering inside insets, especially on the Mac 2006-03-10 16:10:35 +00:00
debug.h Fix bug 2195: Slowness in rendering inside insets, especially on the Mac 2006-03-10 16:10:35 +00:00
DepTable.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
DepTable.h
dimension.C
dimension.h
dispatchresult.h
dociterator.C Whitespace cleanup. 2006-04-05 23:56:29 +00:00
dociterator.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
encoding.C * src/lyx_main.C (readRcFile): do not report an error if file is not 2006-05-02 12:53:48 +00:00
encoding.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
errorlist.C
errorlist.h
exporter.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
exporter.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
factory.C rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
factory.h
Floating.C
Floating.h
FloatList.C
FloatList.h
FontIterator.C
FontIterator.h
format.C Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now 2006-05-25 11:57:22 +00:00
format.h * src/format.[Ch] 2006-05-20 12:03:40 +00:00
funcrequest.C
funcrequest.h
FuncStatus.C
FuncStatus.h
gettext.C
gettext.h
graph.C fix bug 2174 2006-02-03 21:47:25 +00:00
graph.h
importer.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
importer.h
insetiterator.C
insetiterator.h
InsetList.C
InsetList.h
intl.C * src/intl.C (InitKeyMapper): reset kbmap file names if the files 2006-05-31 10:34:30 +00:00
intl.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
ispell.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
ispell.h
kbmap.C rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
kbmap.h rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
kbsequence.C
kbsequence.h * lyxfunc.h: 2006-04-13 12:18:42 +00:00
language.C * src/lyx_main.C (readRcFile): do not report an error if file is not 2006-05-02 12:53:48 +00:00
language.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
LaTeX.C * src/LaTeX.C (run): 2006-05-29 15:51:12 +00:00
LaTeX.h
LaTeXFeatures.C Add support for framed.sty 2006-06-03 16:46:27 +00:00
LaTeXFeatures.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
layout.h
LColor.C Add support for framed.sty 2006-06-03 16:46:27 +00:00
LColor.h Add support for framed.sty 2006-06-03 16:46:27 +00:00
lengthcommon.C
lengthcommon.h
lfuns.h fix LFUN enum values (some of them were broken by r13801) 2006-05-08 18:09:19 +00:00
lyx_cb.C Fix crash on exit (bug 2549) by correct usage of QApplication 2006-06-07 20:08:37 +00:00
lyx_cb.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
lyx_main.C coding style and readability corrections 2006-06-13 08:24:43 +00:00
lyx_main.h Fix crash on exit (bug 2549) by correct usage of QApplication 2006-06-07 20:08:37 +00:00
lyx_sty.C
lyx_sty.h
LyXAction.C fix LFUN enum values (some of them were broken by r13801) 2006-05-08 18:09:19 +00:00
LyXAction.h The speedup patch 2005-10-07 12:00:41 +00:00
lyxfind.C src/paragraph.h: 2006-05-08 20:30:52 +00:00
lyxfind.h
lyxfont.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
lyxfont.h
lyxfunc.C Fix crash that occurs if the cursor is in a table cell when the document class 2006-05-21 17:33:03 +00:00
lyxfunc.h * lyxfunc.h: 2006-04-13 12:18:42 +00:00
lyxgluelength.C
lyxgluelength.h
lyxlayout_ptr_fwd.h
lyxlayout.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
lyxlayout.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
lyxlength.C
lyxlength.h better documentation for isValidLength and stringFromUnit 2006-05-12 19:06:19 +00:00
lyxlex_pimpl.C Remove USE_COMPRESSION and force the use of zlib, by Bo Peng (ben.bob@gmail.com) 2006-04-27 18:14:36 +00:00
lyxlex_pimpl.h Remove USE_COMPRESSION and force the use of zlib, by Bo Peng (ben.bob@gmail.com) 2006-04-27 18:14:36 +00:00
lyxlex.C
lyxlex.h
lyxrc.C Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now 2006-05-25 11:57:22 +00:00
lyxrc.h 2006-04-06 Bo Peng <ben.bob@gmail.com> 2006-04-05 22:56:18 +00:00
lyxrow_funcs.C
lyxrow_funcs.h
lyxrow.C
lyxrow.h
lyxserver.C Remove remaining OS/2 bits: 2006-05-14 17:00:53 +00:00
lyxserver.h
lyxsocket.C * src/lyxsocket.C 2006-05-27 13:39:11 +00:00
lyxsocket.h
lyxtext.h * support/types.h: introduce the char_type type 2006-04-09 02:30:40 +00:00
lyxtextclass.C A small fix to the auto-cls-layout feature (r13611), by Bo Peng (ben.bob@gmail.com) 2006-05-04 02:38:11 +00:00
lyxtextclass.h A small fix to the auto-cls-layout feature (r13611), by Bo Peng (ben.bob@gmail.com) 2006-05-04 02:38:11 +00:00
lyxtextclasslist.C First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com) 2006-04-09 04:35:24 +00:00
lyxtextclasslist.h First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com) 2006-04-09 04:35:24 +00:00
lyxvc.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
lyxvc.h
main.C
Makefile.am * Rename src/frontends/qt2 to src/frontends/qt3, 2006-04-24 13:48:24 +00:00
MenuBackend.C src/MenuBackend.C (expandFormats): add default case to switch; handle 2006-05-30 13:48:27 +00:00
MenuBackend.h make sure we clear menu contents before expand() 2006-03-15 15:07:20 +00:00
messages.C fix crash on startup under windows by avoiding the call 2006-06-10 07:05:21 +00:00
messages.h
metricsinfo.C
metricsinfo.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
mover.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
mover.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
output_docbook.C view-source feature, from Bo Peng <ben.bob@gmail.com> 2006-04-09 02:48:54 +00:00
output_docbook.h * output_latex.h: 2006-03-23 20:11:06 +00:00
output_latex.C view-source feature, from Bo Peng <ben.bob@gmail.com> 2006-04-09 02:48:54 +00:00
output_latex.h * output_latex.h: 2006-03-23 20:11:06 +00:00
output_linuxdoc.C view-source feature, from Bo Peng <ben.bob@gmail.com> 2006-04-09 02:48:54 +00:00
output_linuxdoc.h * output_latex.h: 2006-03-23 20:11:06 +00:00
output_plaintext.C * output_latex.h: 2006-03-23 20:11:06 +00:00
output_plaintext.h
output.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
output.h
outputparams.C view-source feature, from Bo Peng <ben.bob@gmail.com> 2006-04-09 02:48:54 +00:00
outputparams.h view-source feature, from Bo Peng <ben.bob@gmail.com> 2006-04-09 02:48:54 +00:00
paper.h fix bug 2148 (preferences saves wrong papersizes); also finally dispose dead PAPER_PACKAGES enum 2005-12-12 11:13:03 +00:00
paragraph_funcs.C src/paragraph.h: 2006-05-08 20:30:52 +00:00
paragraph_funcs.h * output_latex.h: 2006-03-23 20:11:06 +00:00
paragraph_pimpl.C * paragraph_pimpl.C 2006-05-20 10:35:40 +00:00
paragraph_pimpl.h src/paragraph.h: 2006-05-08 20:30:52 +00:00
paragraph.C src/paragraph.h: 2006-05-08 20:30:52 +00:00
paragraph.h src/paragraph.h: 2006-05-08 20:30:52 +00:00
ParagraphList_fwd.h * output_latex.h: 2006-03-23 20:11:06 +00:00
ParagraphList.h * output_latex.h: 2006-03-23 20:11:06 +00:00
ParagraphParameters.C Make MathBigInset working 2006-04-20 09:55:45 +00:00
ParagraphParameters.h
pariterator.C
pariterator.h * TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted code from former toc.C 2006-04-22 18:48:28 +00:00
pch.h fix nullstream also in pch files 2006-03-07 10:02:07 +00:00
PrinterParams.C
PrinterParams.h
pspell.C
pspell.h
RowList_fwd.h The speed patch: redraw only rows that have changed 2005-12-30 19:02:52 +00:00
rowpainter.C src/paragraph.h: 2006-05-08 20:30:52 +00:00
rowpainter.h
Sectioning.C
Sectioning.h
session.C Fix a few issues with session/lastopenedfiles, Bo Peng (ben.bob@gmail.com) 2006-04-28 14:29:38 +00:00
session.h Fix a few issues with session/lastopenedfiles, Bo Peng (ben.bob@gmail.com) 2006-04-28 14:29:38 +00:00
sgml.C
sgml.h
Spacing.C
Spacing.h
SpellBase.C
SpellBase.h
stamp-h.in
tabular.C Whitespace cleanup. 2006-04-05 23:56:29 +00:00
tabular.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
tex-accent.C rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
tex-accent.h rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
tex-strings.C
tex-strings.h
texrow.C
texrow.h
text2.C fix LFUN enum values (some of them were broken by r13801) 2006-05-08 18:09:19 +00:00
text3.C fix LFUN enum values (some of them were broken by r13801) 2006-05-08 18:09:19 +00:00
text.C * src/bufferparams.h: make author_map use an unsigned index, to avoid 2006-06-07 17:05:25 +00:00
Thesaurus.C
Thesaurus.h
toc.C Change capitalization for outline (DOWN -> Down etc.) 2006-04-28 07:28:10 +00:00
toc.h Change capitalization for outline (DOWN -> Down etc.) 2006-04-28 07:28:10 +00:00
TocBackend.C rename LFUN enum values according to their command (as used in th minibuffer/bind files 2006-05-05 20:23:12 +00:00
TocBackend.h Outlining improvements/fixes 2006-04-26 17:43:03 +00:00
ToolbarBackend.C Implement GUI for fixed size math delimiters (by Enrico Forestieri and me): 2006-05-07 10:51:19 +00:00
ToolbarBackend.h
trans_decl.h
trans_mgr.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
trans_mgr.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
trans.C * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
trans.h * Change several freestanding and class methods with first letter 2006-04-09 00:26:19 +00:00
undo.C * output_latex.h: 2006-03-23 20:11:06 +00:00
undo.h Whitespace cleanup. 2006-04-05 23:56:29 +00:00
Variables.C
Variables.h
vc-backend.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
vc-backend.h
version.C.in fix version suffix 2005-12-30 13:46:09 +00:00
version.h
vspace.C
vspace.h fix some syntax errors 2006-01-01 20:28:05 +00:00
WordLangTuple.h