Mercurial > octave
comparison libgui/src/resource-manager.cc @ 19861:19755f4fc851
maint: Cleanup C++ code to follow Octave coding conventions.
Try to wrap long lines to < 80 characters.
Use GNU style and don't indent first brace of function definition.
"case" statement is aligned flush left with brace of switch stmt.
Remove trailing '\' line continuation from the end of #define macros.
Use 2 spaces for indent.
* files-dock-widget.cc, history-dock-widget.cc, main-window.cc, octave-cmd.cc,
octave-dock-widget.cc, octave-gui.cc, resource-manager.cc, settings-dialog.cc,
shortcut-manager.cc, welcome-wizard.cc, workspace-view.cc, cellfun.cc, data.cc,
debug.cc, debug.h, dirfns.cc, error.h, file-io.cc, gl-render.cc, gl-render.h,
gl2ps-renderer.h, graphics.cc, graphics.in.h, help.cc, input.cc, load-path.cc,
load-path.h, lookup.cc, lu.cc, oct-stream.cc, octave-default-image.h,
ordschur.cc, pr-output.cc, qz.cc, strfns.cc, symtab.cc, symtab.h, sysdep.cc,
variables.cc, zfstream.h, __fltk_uigetfile__.cc, __init_fltk__.cc,
__magick_read__.cc, __osmesa_print__.cc, audiodevinfo.cc, ov-classdef.cc,
ov-classdef.h, ov-fcn.h, ov-float.cc, ov-flt-complex.cc, ov-java.cc,
ov-range.cc, ov-re-mat.cc, ov-usr-fcn.h, ov.cc, op-int.h, options-usage.h,
pt-eval.cc, Array-C.cc, Array-fC.cc, Array.cc, Array.h, PermMatrix.cc,
Sparse.cc, chMatrix.h, dSparse.cc, dim-vector.h, bsxfun-decl.h, bsxfun-defs.cc,
oct-norm.cc, Sparse-op-defs.h, oct-inttypes.cc, oct-inttypes.h, main.in.cc,
mkoctfile.in.cc: Cleanup C++ code to follow Octave coding conventions.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 25 Feb 2015 11:55:49 -0800 |
parents | 4197fc428c7d |
children | a8a5415b05cb |
comparison
equal
deleted
inserted
replaced
19860:e8ccfc5d892b | 19861:19755f4fc851 |
---|---|
230 if (! (settings | 230 if (! (settings |
231 && QFile::exists (settings->fileName ()) | 231 && QFile::exists (settings->fileName ()) |
232 && settings->isWritable () | 232 && settings->isWritable () |
233 && settings->status () == QSettings::NoError)) | 233 && settings->status () == QSettings::NoError)) |
234 { | 234 { |
235 QString msg = QString (QT_TR_NOOP ("The settings file\n%1\n" | 235 QString msg = QString (QT_TR_NOOP ( |
236 "does not exist and can not be created.\n" | 236 "The settings file\n%1\n" |
237 "Make sure you have read and write permissions to\n%2\n\n" | 237 "does not exist and can not be created.\n" |
238 "Octave GUI must be closed now.")); | 238 "Make sure you have read and write permissions to\n%2\n\n" |
239 "Octave GUI must be closed now.")); | |
239 QMessageBox::critical (0, QString (QT_TR_NOOP ("Octave Critical Error")), | 240 QMessageBox::critical (0, QString (QT_TR_NOOP ("Octave Critical Error")), |
240 msg.arg (do_get_settings_file ()).arg (do_get_settings_directory ())); | 241 msg.arg (do_get_settings_file ()).arg (do_get_settings_directory ())); |
241 exit (1); | 242 exit (1); |
242 } | 243 } |
243 } | 244 } |