summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/muse/cobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'attic/muse2-oom/muse2/muse/cobject.cpp')
-rw-r--r--attic/muse2-oom/muse2/muse/cobject.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/attic/muse2-oom/muse2/muse/cobject.cpp b/attic/muse2-oom/muse2/muse/cobject.cpp
deleted file mode 100644
index dc257425..00000000
--- a/attic/muse2-oom/muse2/muse/cobject.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-//=========================================================
-// MusE
-// Linux Music Editor
-// $Id: cobject.cpp,v 1.4 2004/02/02 12:10:09 wschweer Exp $
-//
-// (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
-//=========================================================
-
-#include "cobject.h"
-#include "xml.h"
-#include "gui.h"
-
-//---------------------------------------------------------
-// readStatus
-//---------------------------------------------------------
-
-void TopWin::readStatus(Xml& xml)
- {
- for (;;) {
- Xml::Token token = xml.parse();
- if (token == Xml::Error || token == Xml::End)
- break;
- QString tag = xml.s1();
- switch (token) {
- case Xml::TagStart:
- if (tag == "geometry") {
- QRect r(readGeometry(xml, tag));
- resize(r.size());
- move(r.topLeft());
- }
- else
- xml.unknown("TopWin");
- break;
- case Xml::TagEnd:
- if (tag == "topwin")
- return;
- default:
- break;
- }
- }
- }
-
-//---------------------------------------------------------
-// writeStatus
-//---------------------------------------------------------
-
-void TopWin::writeStatus(int level, Xml& xml) const
- {
- xml.tag(level++, "topwin");
- xml.tag(level++, "geometry x=\"%d\" y=\"%d\" w=\"%d\" h=\"%d\"",
- geometry().x(),
- geometry().y(),
- geometry().width(),
- geometry().height());
- xml.tag(level--, "/geometry");
- xml.tag(level, "/topwin");
- }
-
-TopWin::TopWin(QWidget* parent, const char* name,
- Qt::WindowFlags f) : QMainWindow(parent, f)
- {
- setObjectName(QString(name));
- //setAttribute(Qt::WA_DeleteOnClose);
- // Allow multiple rows. Tim.
- //setDockNestingEnabled(true);
- setIconSize(ICON_SIZE);
- }
-