# Path: RapacheGtk/GuiUtils.py
# def style_as_tooltip( obj ):
# def paint(box, event):
# def change_button_label ( button, new_label ):
# def new_apache_sourceview():


import sys
import re
     import pygtk
    import gtk
    import gtk.glade
import os
import pango
import tempfile
import traceback
import RapacheGtk.GuiUtils
import RapacheGtk.DesktopEnvironment as Desktop
import RapacheCore.Shell
from RapacheCore.Module import *
from RapacheGtk import GuiUtils
        wtree = gtk.glade.XML(gladefile)
        
        self.window = wtree.get_widget("dialog_edit_module")
        #self.text_view_module_conf = wtree.get_widget("text_view_module_conf")
        self.notebook = wtree.get_widget("notebook")
        self.button_save = wtree.get_widget("button_save")
        self.error_area = wtree.get_widget("error_area")
        self.module_doc_button = wtree.get_widget("module_doc_button")
        self.label_module = wtree.get_widget("label_module")
        self.label_module_description = wtree.get_widget("label_module_description")
        self.combobox_module_backups = wtree.get_widget("combobox_module_backups")
        self.label_path = wtree.get_widget("label_path")
        self.combobox_module_backups.set_active(0)

        signals = {
            "on_button_save_clicked"            : self.on_button_save_clicked,
            "on_button_cancel_clicked"          : self.on_button_cancel_clicked,
            "on_module_doc_button_clicked"      : self.on_module_doc_button_clicked,
            "on_combobox_module_backups_changed" : self.on_combobox_module_backups_changed,
            "on_button_restore_version_clicked" : self.on_button_restore_version_clicked
        }
        wtree.signal_autoconnect(signals)            
        # add on destroy to quit loop
        self.window.connect("destroy", self.on_destroy)
        
        self.text_view_module_conf = GuiUtils.new_apache_sourceview()        
        self.text_view_module_conf.show()
        wtree.get_widget("text_view_module_conf_area").add(self.text_view_module_conf)
        
        #GuiUtils.change_button_label( self.module_doc_button, 'Documentation' )

# Path: RapacheGtk/GuiUtils.py
# def style_as_tooltip( obj ):
# def paint(box, event):
# def change_button_label ( button, new_label ):
# def new_apache_sourceview():


# Path: RapacheGtk/ModuleGui.py
import sys
import re
     import pygtk
    import gtk
    import gtk.glade
import os
import pango
import tempfile
import traceback
import RapacheGtk.GuiUtils
import RapacheGtk.DesktopEnvironment as Desktop
import RapacheCore.Shell
from RapacheCore.Module import *
from RapacheGtk import GuiUtils

        wtree = gtk.glade.XML(gladefile)
        
        self.window = wtree.get_widget("dialog_edit_module")
        #self.text_view_module_conf = wtree.get_widget("text_view_module_conf")
        self.notebook = wtree.get_widget("notebook")
        self.button_save = wtree.get_widget("button_save")
        self.error_area = wtree.get_widget("error_area")
        self.module_doc_button = wtree.get_widget("module_doc_button")
        self.label_module = wtree.get_widget("label_module")
        self.label_module_description = wtree.get_widget("label_module_description")
        self.combobox_module_backups = wtree.get_widget("combobox_module_backups")
        self.label_path = wtree.get_widget("label_path")
        self.combobox_module_backups.set_active(0)

        signals = {
            "on_button_save_clicked"            : self.on_button_save_clicked,
            "on_button_cancel_clicked"          : self.on_button_cancel_clicked,
            "on_module_doc_button_clicked"      : self.on_module_doc_button_clicked,
            "on_combobox_module_backups_changed" : self.on_combobox_module_backups_changed,
            "on_button_restore_version_clicked" : self.on_button_restore_version_clicked
        }
        wtree.signal_autoconnect(signals)            
        # add on destroy to quit loop
        self.window.connect("destroy", self.on_destroy)
        
        self.text_view_module_conf = GuiUtils.new_apache_sourceview()        
        self.text_view_module_conf.show()
        wtree.get_widget("text_view_module_conf_area").add(self.text_view_module_conf)
        
        #GuiUtils.change_button_label( self.module_doc_button, 'Documentation' )

        GuiUtils.style_as_tooltip( self.error_area )