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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtcl/] [browserwin.ith] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Browser window class definition for GDBtk.
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
class BrowserWin {
15
 inherit EmbeddedWin
16
 
17
  public {
18
    method constructor {args}
19
    method destructor {}
20
    method mode {w {mode ""} {go 1}}
21
    method search {}
22
    method test_get {var}
23
    method do_all_bp {onp}
24
 
25
  }
26
 
27
  private {
28
    method _bind_toplevel {install}
29
    method _build_win {}
30
    method _do_resize {}
31
    method _file_hide_h {}
32
    method _fill_file_box {}
33
    method _fill_funcs_combo {name}
34
    method _fill_source {f {funcp 1} {filename ""}}
35
    method _filter_trace_proc {v1 v2 mode}
36
    method _filter_trace_after {}
37
    method _goto_func {w {val ""}}
38
    method _process_file_selection {y}
39
    method _process_func_selection {y}
40
    method _resize {}
41
    method _search_src {direction}
42
    method _select {highlight}
43
    method _set_filter_mode {w mode}
44
    method _toggle_bp {y}
45
    method _toggle_more {{in_constructor 0}}
46
 
47
    variable cur_filter_mode
48
 
49
    variable MoreVisible 0; #whether viewing source
50
    variable TopHalfHeight 0
51
    variable BottomHalfHeight 0
52
    variable CollapsedHeight 0; #height of the window when collapsed
53
    variable Current;
54
    variable labelUpdateCode ""
55
    variable index_to_file
56
    variable _mangled_func
57
    variable resize_after ""
58
    variable filter_trace_after ""
59
 
60
    common componentToRow
61
    array set componentToRow {
62
      filter      0
63
      browser     1
64
      view        2
65
      view_hidden 3
66
    }
67
 
68
    common filter_modes [list "starts with" \
69
                           "contains" \
70
                           "ends with" \
71
                           "matches regexp"]
72
    common filter_regexp
73
    array set filter_regexp {
74
      "starts with" ^%s
75
      "contains" %s
76
      "ends with" %s$
77
      "matches regexp" %s
78
    }
79
  }
80
 
81
  protected proc dont_remember_size {} {
82
    return 1
83
  }
84
}

powered by: WebSVN 2.1.0

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