File: gui.cpp

package info (click to toggle)
efte 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,800 kB
  • sloc: cpp: 43,587; ansic: 1,228; makefile: 271; objc: 92; sh: 40
file content (51 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * gui.cpp
 *
 * Copyright (c) 2008, eFTE SF Group (see AUTHORS file)
 *
 * You may distribute under the terms of either the GNU General Public
 * License or the Artistic License, as specified in the README file.
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdarg.h>

#include "console.h"
#include "gui.h"

int GFrame::isLastFrame() {
    if (this == Next && frames == this)
        return 1;
    else
        return 0;
}

void GUI::deleteFrame(GFrame *frame) {
    if (frame->isLastFrame()) {
        delete frame;
        frames = 0;
    } else {
        //frame->Prev->Next = frame->Next;
        //frame->Next->Prev = frame->Prev;
        //if (frames == frame)
        //    frames = frame->Next;

        //frames->Activate();
        delete frame;
    }
}

int GUI::Start(int &/*argc*/, char ** /*argv*/) {
    return 0;
}

void GUI::Stop() {
}

void GUI::StopLoop() {
    doLoop = 0;
}