OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtk/] [library/] [helpviewer.ith] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# HtmlViewer class definition
2
# Copyright 1998, 1999 Cygnus Solutions
3
#
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License (GPL) as published by
6
# the Free Software Foundation; either version 2 of the License, or (at
7
# your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
 
14
 
15
# -----------------------------------------------------------------------------
16
# NAME:
17
#       class HtmlViewer
18
#
19
# DESC:
20
#       This class implements a simple HTML browser.  It has both pulldown
21
#       menus and buttons for navigating.  It uses the scrolledhtml iwidget
22
#       to do its rendering.
23
#
24
# NOTES:
25
#       Currently used as a help window.
26
#
27
# -----------------------------------------------------------------------------
28
class HtmlViewer {
29
  inherit EmbeddedWin
30
 
31
  public {
32
    variable topics {
33
      {index index.html}
34
      {"Attach Dialog" attach.html}
35
      {"Breakpoint Window" breakpoint.html}
36
      {"Console Window" console.html }
37
      {"Function Browser" browser.html }
38
      {"Locals Window" locals.html }
39
      {"Memory Window" memory.html}
40
      {"Register Window" register.html}
41
      {"Source Window" source.html}
42
      {"Stack Window" stack.html}
43
      {"Target Window" target.html }
44
      {"Thread Window" thread.html }
45
      {"Watch Window" watch.html}
46
    }
47
    variable file "index.html"
48
    method back {}
49
    method forward {}
50
    method link {link}
51
    method load {link}
52
    method close {}
53
    method constructor {args}
54
    proc open_help {file}
55
  }
56
 
57
  private {
58
    variable _html
59
    variable _links
60
    variable _m
61
    variable _f
62
 
63
    method _enable {on args}
64
    method _buildwin {}
65
  }
66
 
67
}
68
 
69
# -----------------------------------------------------------------------------
70
# NAME:
71
#       class PageStack
72
#
73
# DESC:
74
#       Implements a stack-like class for saving and recalling items
75
#       like pages in a help browser. It differs from a traditional
76
#       stack only by the 'back' and 'next' methods which move up and
77
#       down the stack without disturbing it, unlike 'push' and 'pop'.
78
#
79
# NOTES:
80
#       Currently used by the HtmlViewer class.
81
#
82
# -----------------------------------------------------------------------------
83
class PageStack {
84
  private {
85
    variable _ptr -1
86
    variable _max -1
87
    variable _stack
88
  }
89
  public {
90
    method push {val}
91
    method back {}
92
    method next {}
93
    method more {}
94
    method less {}
95
    method current {}
96
  }
97
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.