1 |
# FunctionSelector v0.04 script for glimmer |
################################################## |
2 |
# last edit by Andreas Motl<andreas.motl@ilo.de> |
# $Id$ |
3 |
# and Sebastian Utz<su@tunemedia.de> 2002-11-01 |
# small plugin for glimmer |
4 |
# |
# |
5 |
#ToDo: |
# Authors: |
6 |
|
# Andreas Motl<andreas.motl@ilo.de> |
7 |
|
# Sebastian Utz<su@tunemedia.de> |
8 |
|
# |
9 |
|
# ToDo: |
10 |
# - Bug: FunctionList doesn't refresh on new opened files by its own |
# - Bug: FunctionList doesn't refresh on new opened files by its own |
11 |
# - tune regex for more languages |
# - tune regex for more languages |
12 |
# |
# |
13 |
|
# Changelog: |
14 |
|
# $Log$ |
15 |
|
# Revision 1.2 2002/11/08 02:37:25 jonen |
16 |
|
# + added cvs header |
17 |
|
# + added hook for refresh on "save-file" |
18 |
|
# suggested by Mark McAulay |
19 |
|
# |
20 |
|
# |
21 |
|
################################################## |
22 |
|
|
23 |
import glimmer |
import glimmer |
24 |
import string |
import string |
25 |
import re |
import re |
151 |
functionwindow.add(functionlist) |
functionwindow.add(functionlist) |
152 |
functionlist.show() |
functionlist.show() |
153 |
#functionlist.column_titles_show(1) |
#functionlist.column_titles_show(1) |
|
#functionlist.set_column_title(0, "Functions:") |
|
154 |
glimmer.add_paned_object(functionbox._o, "FunctionSelector", 0) |
glimmer.add_paned_object(functionbox._o, "FunctionSelector", 0) |
155 |
our_main() |
our_main() |
156 |
checkitem = GtkCheckMenuItem("Function Selector") |
checkitem = GtkCheckMenuItem("Function Selector") |
162 |
|
|
163 |
glimmer.register_signal_hook("change-file", callback_change) |
glimmer.register_signal_hook("change-file", callback_change) |
164 |
|
|
165 |
|
glimmer.register_signal_hook("save-file", callback_change) |
166 |
|
|
167 |
args = (checkitem, functionbox, ) |
args = (checkitem, functionbox, ) |
168 |
_gtk.gtk_signal_connect(closebutton._o, "clicked", close_function_selector, args) |
_gtk.gtk_signal_connect(closebutton._o, "clicked", close_function_selector, args) |
169 |
args = (None, ) |
args = (None, ) |