import(methods)
import(digest)
import(tcltk)
import(gWidgets)

## importFrom(gWidgets,
##            "gwCat",
## "glabel", "gbutton", "gcheckbox", "gradio", "gdroplist",
## "gcheckboxgroup", "gspinbutton", "gslider", "gedit", "gtext", "gmenu",
## "gtoolbar", "gtable", "gdf", "gdfnotebook", "gtree", "gfile",
## "gfilebrowse", "gcalendar", "ggraphics", "ggraphicsnotebook",
## "gimage", "gstatusbar", "gseparator", "gcommandline", "ghelp",
## "ghelpbrowser", "ggenericwidget", "gvarbrowser", "gwindow", "ggroup",
## "gframe", "gexpandgroup", "gnotebook", "glayout", "gpanedgroup",
## "gmessage", "ginput", "gconfirm", "gbasicdialog",
## "addStockIcons","getStockIcons",
##            "stockIconFromClass","stockIconFromObject",
##            ".fixFontMessUp"
## )

## importClassesFrom(gWidgets, 
## 	"guiWidgetsToolkit",	"guiWidgetsToolkitRGtk2",
## 	"guiWidget","guiComponent","guiContainer","guiDialog"
## )

## importMethodsFrom(gWidgets,
## "[", 
## "svalue", "svalue<-", "add", "addSpace", "addSpring", "delete",
## "dispose", "visible", "visible<-", "enabled", "enabled<-", "size",
## "size<-", "focus", "focus<-", "font", "font<-", "tag", "tag<-", "id",
## "id<-", "addhandler", "addhandlerchanged", "addhandlerkeystroke",
## "addhandlerclicked", "addhandlerdoubleclick", 
##                   "addhandlerrightclick",  "addhandlerfocus",
##                   "addhandlerblur",
## "addhandlerdestroy", "addhandlerexpose", "addhandlerunrealize",
##                   "addhandlermousemotion",
## "addhandleridle", "addpopupmenu", "add3rdmousepopupmenu",
## "adddropsource", "adddropmotion", "adddroptarget",
##                   "removehandler","blockhandler","unblockhandler",
## ".glabel", ".gbutton", ".gcheckbox", ".gradio", ".gdroplist",
## ".gcheckboxgroup", ".gspinbutton", ".gslider", ".gedit", ".gtext",
## ".gmenu", ".gtoolbar", ".gtable", ".gdf", ".gdfnotebook", ".gtree",
## ".gfile", ".gfilebrowse", ".gcalendar", ".ggraphics",
## ".ggraphicsnotebook", ".gimage", ".gstatusbar", ".gseparator",
## ".gcommandline", ".ghelp", ".ghelpbrowser", ".ggenericwidget",
## ".gvarbrowser", ".gwindow", ".ggroup", ".gframe", ".gexpandgroup",
## ".gnotebook", ".glayout", ".gpanedgroup", ".svalue", ".svalue<-",
## ".leftBracket", ".leftBracket<-", ".add", ".addSpace", ".addSpring",
## ".delete", ".dispose", ".visible", ".visible<-", 
## ".enabled", ".size", 
## ".enabled<-",  ".size<-", ".focus", ".focus<-", 
## ".font<-", ".tag", ".tag<-", ".id", ".id<-", ".addhandler", ".addhandlerchanged",
## ".addhandlerkeystroke", ".addhandlerclicked",
## ".addhandlerdoubleclick",
##                   ".addhandlerrightclick",
##                   ".addhandlerfocus",
##                   ".addhandlerblur",
## ".addhandlerdestroy", ".addhandlerexpose", ".addhandlerunrealize",
## ".addhandlermousemotion",                  
## ".addhandleridle", ".addpopupmenu", ".add3rdmousepopupmenu",
## ".adddropsource", ".adddropmotion", ".adddroptarget", ".gmessage",
## ".ginput", ".gconfirm", ".gbasicdialog",
## ".addStockIcons",".getStockIcons",
##                   ".stockIconFromClass",".stockIconFromObject",
## ".removehandler",".blockhandler",".unblockhandler",
## "update",".update",
## "length",".length",
## "dim",".dim",
## "dimnames",".dimnames",
## "dimnames<-",".dimnames<-",
## "names",".names",
## "names<-",".names<-",
## ".getToolkitWidget"
## )


## #export("runHandlerFor")

## ##       "Paste","stripWhiteSpace","rpel","str1","str2","untaintName",
## ##        "stockIconFromClass","stockIconFromObject",
## ##        "Timestamp","Timestamp<-",
## ##
## ## export("str2")


exportMethods(
"[", 
".glabel", ".gbutton", ".gcheckbox", ".gradio", ".gdroplist",
".gcheckboxgroup", ".gspinbutton", ".gslider", ".gedit", ".gtext",
".gmenu", ".gtoolbar", ".gtable",  
".gfile", ".gfilebrowse",
              ".ghtml",
".gimage", ".gstatusbar", ".gseparator",
".gvarbrowser", ".gwindow", ".ggroup", ".gframe", ".gexpandgroup",
".gnotebook", ".glayout",
              ".gpanedgroup",
"svalue", "svalue<-", "add", "addSpace", "addSpring", "insert", "delete",
"dispose", "visible", "visible<-", "defaultWidget","defaultWidget<-", "enabled", "enabled<-",
              "isExtant", "size",
"size<-", "focus", "focus<-", "font", "font<-", "tag", "tag<-", "id",
"id<-",  "addhandler", "addhandlerchanged", "addhandlerkeystroke",
"addhandlerclicked", "addhandlerdoubleclick", "addhandlerrightclick",
              "addhandlerfocus","addhandlerblur",
"addhandlerdestroy", "addhandlerexpose", "addhandlerunrealize",
              "addhandlermousemotion",
              "addhandleridle", "addpopupmenu", "add3rdmousepopupmenu",
"adddropsource", "adddropmotion", "adddroptarget",
              "removehandler","blockhandler","unblockhandler",
".svalue", ".svalue<-",
".leftBracket", ".leftBracket<-", ".add", ".addSpace", ".addSpring",
".insert", ".delete", ".dispose", ".visible", ".visible<-",
              ".defaultWidget",".defaultWidget<-",
              ".enabled",
".enabled<-",
              ".isExtant",
              ".size", ".size<-", ".focus", ".focus<-", 
".font<-", ".tag", ".tag<-", ".id", ".id<-",
              ".addhandler", ".addhandlerchanged",
              ".addhandlerkeystroke", ".addhandlerclicked",
".addhandlerdoubleclick",              ".addhandlerrightclick",
              ".addhandlerfocus",".addhandlerblur",
".addhandlerdestroy", ".addhandlerexpose", ".addhandlerunrealize",
".addhandlermousemotion",
              ".addhandleridle", ".addpopupmenu", ".add3rdmousepopupmenu",
".adddropsource", ".adddropmotion", ".adddroptarget", ".gmessage",
".ginput", ".gconfirm", ".gbasicdialog",
".removehandler",".blockhandler",".unblockhandler",
".svalue",
"update",".update",
"length",".length",
"dim",".dim",
"dimnames",
"dimnames<-",
"names",".names",
"names<-",".names<-",
".gdf", ".gdfnotebook", ".gtree", ".gcalendar",  ".ggraphics",
".ggraphicsnotebook",  ".dimnames",".dimnames<-",
".getToolkitWidget"
              )

