summaryrefslogtreecommitdiff
path: root/src/PSEditor.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-21 17:55:36 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-21 17:55:36 +0000
commit382846248e84c478f713deabbb05a18c1a0d6951 (patch)
treeb58f10daa02582f2040acb00459f665ec655d9cf /src/PSEditor.cxx
parentaa60a0e14a2f186f1b8d282fdc377889a32fada9 (diff)
separated model out from PSEditWidget
separated model out from PSEditWidget
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r--src/PSEditor.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx
index 8e9de8b..64b4a6f 100644
--- a/src/PSEditor.cxx
+++ b/src/PSEditor.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditor.cxx,v 1.11 2004/10/12 20:52:23 hofmann Exp $"
+// "$Id: PSEditor.cxx,v 1.12 2004/10/21 19:55:36 hofmann Exp $"
//
// PSEditor routines.
//
@@ -110,8 +110,8 @@ int PSEditor::load(char *f) {
char tmpname[256];
char linebuf[1024];
int ret;
- PSParser *p1 = new PSParser_1(this);
- PSParser *p2 = new PSParser_2(this);
+ PSParser *p1 = new PSParser_1(model);
+ PSParser *p2 = new PSParser_2(model);
fp = fopen(f, "r");
if (!fp) {
@@ -161,9 +161,9 @@ int PSEditor::save(const char* savefile) {
PSWriter *pw;
if (ps_level == 2) {
- pw = new PSLevel2Writer(this);
+ pw = new PSLevel2Writer(model);
} else {
- pw = new PSLevel1Writer(this);
+ pw = new PSLevel1Writer(model);
}
pw->write(fp, sfp);
@@ -192,8 +192,8 @@ int PSEditor::import(char *f) {
return 1;
}
- p1 = new PSParser_1(this);
- p2 = new PSParser_2(this);
+ p1 = new PSParser_1(model);
+ p2 = new PSParser_2(model);
while (fgets(linebuf, 1024, fp) != NULL) {
if (!p2->parse(linebuf)) {
p1->parse(linebuf);