[Kst] kdeextragear-2/kst/kst (silent)
George Staikos
staikos at kde.org
Fri Jun 11 02:38:08 CEST 2004
CVS commit by staikos:
CVS_SILENT normalize, correct typos
M +9 -6 kstdoc.cpp 1.85
M +2 -2 kstviewobject.cpp 1.60
M +2 -2 kstviewwindow.cpp 1.11
M +4 -4 kstviewwindow.h 1.11
--- kdeextragear-2/kst/kst/kstdoc.cpp #1.84:1.85
@@ -155,5 +155,5 @@ bool KstDoc::newDocument() {
}
-bool KstDoc::openDocument(const KURL &url, const QString &o_file,
+bool KstDoc::openDocument(const KURL& url, const QString& o_file,
int o_n, int o_f, int o_s, bool o_ave) {
// Temp variables
@@ -170,9 +170,10 @@ bool KstDoc::openDocument(const KURL &ur
title = url.fileName(false);
absFilePath = url.path();
- if (title == 0L)
+ if (title.isNull()) {
title = absFilePath;
+ }
QDomDocument doc(title);
- if ( !f.open( IO_ReadOnly ) ) {
+ if (!f.open(IO_ReadOnly)) {
KMessageBox::sorry(0L, i18n("%1: File exists, but kst could not open it.").arg(url.path()));
return false;
@@ -188,7 +191,7 @@ bool KstDoc::openDocument(const KURL &ur
QDomNode n = docElem.firstChild();
- while( !n.isNull() ) {
+ while (!n.isNull()) {
QDomElement e = n.toElement(); // try to convert the node to an element.
- if( !e.isNull() ) { // the node was really an element.
+ if (!e.isNull()) { // the node was really an element.
if (e.tagName() == "windowsize") {
QDomNode nn = e.firstChild();
@@ -267,5 +270,5 @@ bool KstDoc::openDocument(const KURL &ur
KstBaseCurveList l = kstObjectSubList<KstDataObject,KstBaseCurve>(KST::dataObjectList);
Kst2DPlotPtr plotPtr = new Kst2DPlot(e);
- KstApp::inst()->plotHolderWhileOpeningDocument().insert(plotPtr->tagName(),plotPtr);
+ KstApp::inst()->plotHolderWhileOpeningDocument().insert(plotPtr->tagName(), plotPtr);
} else if (e.tagName() == "window") {
KstViewWindow *p = dynamic_cast<KstViewWindow*>(KstApp::inst()->activeWindow());
--- kdeextragear-2/kst/kst/kstviewobject.cpp #1.59:1.60
@@ -96,7 +96,7 @@ void KstViewObject::loadChildren(QDomEle
Kst2DPlotPtr plot;
- while( !n.isNull() ) {
+ while (!n.isNull()) {
QDomElement el = n.toElement(); // try to convert the node to an element.
- if( !el.isNull() ) { // the node was really an element.
+ if (!el.isNull()) { // the node was really an element.
if (el.tagName() == "plot") {
in_tag = el.text();
--- kdeextragear-2/kst/kst/kstviewwindow.cpp #1.10:1.11
@@ -73,7 +73,7 @@ KstViewWindow::KstViewWindow(QDomElement
QDomNode n = e.firstChild();
- while( !n.isNull() ) {
+ while (!n.isNull()) {
QDomElement e = n.toElement(); // try to convert the node to an element.
- if( !e.isNull() ) { // the node was really an element.
+ if( !e.isNull()) { // the node was really an element.
if (e.tagName() == "tag") {
in_tag = e.text();
--- kdeextragear-2/kst/kst/kstviewwindow.h #1.10:1.11
@@ -93,9 +93,9 @@ class KstViewWindow : public KMdiChildVi
void slotFilePrint();
- /** print without querrying */
- void immediatePrintToFile(const QString &filename);
+ /** print without querying */
+ void immediatePrintToFile(const QString& filename);
- /** export to png without querrying */
- void immediatePrintToPng(const QString &filename, const QSize& size, const QString &format = "PNG");
+ /** export to png without querying */
+ void immediatePrintToPng(const QString& filename, const QSize& size, const QString& format = "PNG");
void slotCopy();
More information about the Kst
mailing list