# Path: umit/icm/agent/core/BugRegister.py
# class BugRegister(object):
#     def __init__(self):
#         self.tracker = "Bug"
#         self.subject = ""
#         self.description = ""
#         self.status = ""
#         self.priority = ""
#         self.target_version = "0.1b"    #Desktop Agent Version 
#         self.start_date=""
#         self.due_date=""
#         self.estimated_time = "" 
#         self.done = ""
#         self.input =  ""
#         self.file_description = ""
#         self.assignedID = ""
#         self.username = ""
#         self.passwd = ""
#         
#         self.component = ""
#         self.summary = ""
#         self.details = ""
#         self.reporter = ""
#      
#     def report(self):
#         '''
#         using Activeresource to create a new issue in Redmin
#         '''
#         # Get time 
#         self.start_date = time.strftime("%Y-%m-%d",time.localtime())
#         # Write Content
#         self.subject = "[BugCrashReport]" +self.summary 
#         self.description = "From: "+self.reporter +"\r\n" +self.details   
#         # Create Issue
#         attributes ={
#              "description":self.description,
#              "subject":self.subject,
#              "start_date":self.start_date,
#              }
#         ret = Issue.create(attributes)
#         return ret
# 
# Path: umit/icm/agent/Version.py
# VERSION = g_db_helper.get_information(key='version',default="Dev")
# 
# Path: umit/icm/agent/I18N.py
#     LC_ALL = locale.setlocale(locale.LC_ALL,'')
#     LC_ALL = locale.setlocale(locale.LC_ALL, None)        
# LANG = None
# ENC = None
#     LANG = "en_US"
#     LANG = "zh_CN"
#     LANG = "pt"
#     LANG = "ja"
#     LANG, ENC = locale.getdefaultlocale()
#     ENC = "utf8"
#     LANG = "en_US"   


import gtk
import gobject
import webbrowser
import os
            import traceback
from higwidgets.higdialogs import HIGDialog, HIGAlertDialog
from higwidgets.higlabels import HIGHintSectionLabel
from higwidgets.higtables import HIGTable
from higwidgets.higboxes import HIGHBox, hig_box_space_holder
from higwidgets.higbuttons import HIGStockButton
from umit.icm.agent.core.BugRegister import BugRegister
from umit.icm.agent.Version import VERSION
from umit.icm.agent.I18N import _
from umit.icm.agent.Upgrade import *
        self.category_list = gtk.ListStore(str, str)
        self.category_combo = gtk.ComboBoxEntry(self.category_list, 0)

        self.email_label = HIGHintSectionLabel(_("Email"),
            _("Please inform a valid e-mail address from "
            "where you can be reached to be notified when the bug gets "
            "fixed. Not used for other purposes."))
        self.email_entry = gtk.Entry()

        self.summary_label = HIGHintSectionLabel(_("Summary"),
            _("This should be a quick description of the issue. "
            "Try to be clear and concise."))
        self.summary_entry = gtk.Entry()

        self.description_label = HIGHintSectionLabel(_("Description"),
            _("This is where you should write about the bug, "
            "describing it as clear as possible and giving as many "
            "informations as you can and how to reproduce the bug."))
        self.description_scrolled = gtk.ScrolledWindow()
        self.description_text = gtk.TextView()

        self.bug_icon = gtk.Image()
        self.bug_text = gtk.Label(_("This Bug Report dialog allows you "
            "to easily tell us about a problem that you may have found on "
            "Open Monitor. Doing so, you help us to help you, by fixing and "
            "improving Open Monitor faster than usual."))
        
        if self.crashreport:
            # Create a button to show details 
            self.show_details = HIGStockButton(gtk.STOCK_DIALOG_INFO,

# Path: umit/icm/agent/core/BugRegister.py
# class BugRegister(object):
#     def __init__(self):
#         self.tracker = "Bug"
#         self.subject = ""
#         self.description = ""
#         self.status = ""
#         self.priority = ""
#         self.target_version = "0.1b"    #Desktop Agent Version 
#         self.start_date=""
#         self.due_date=""
#         self.estimated_time = "" 
#         self.done = ""
#         self.input =  ""
#         self.file_description = ""
#         self.assignedID = ""
#         self.username = ""
#         self.passwd = ""
#         
#         self.component = ""
#         self.summary = ""
#         self.details = ""
#         self.reporter = ""
#      
#     def report(self):
#         '''
#         using Activeresource to create a new issue in Redmin
#         '''
#         # Get time 
#         self.start_date = time.strftime("%Y-%m-%d",time.localtime())
#         # Write Content
#         self.subject = "[BugCrashReport]" +self.summary 
#         self.description = "From: "+self.reporter +"\r\n" +self.details   
#         # Create Issue
#         attributes ={
#              "description":self.description,
#              "subject":self.subject,
#              "start_date":self.start_date,
#              }
#         ret = Issue.create(attributes)
#         return ret
# 
# Path: umit/icm/agent/Version.py
# VERSION = g_db_helper.get_information(key='version',default="Dev")
# 
# Path: umit/icm/agent/I18N.py
#     LC_ALL = locale.setlocale(locale.LC_ALL,'')
#     LC_ALL = locale.setlocale(locale.LC_ALL, None)        
# LANG = None
# ENC = None
#     LANG = "en_US"
#     LANG = "zh_CN"
#     LANG = "pt"
#     LANG = "ja"
#     LANG, ENC = locale.getdefaultlocale()
#     ENC = "utf8"
#     LANG = "en_US"   


# Path: umit/icm/agent/gui/BugReport.py
import gtk
import gobject
import webbrowser
import os
            import traceback
from higwidgets.higdialogs import HIGDialog, HIGAlertDialog
from higwidgets.higlabels import HIGHintSectionLabel
from higwidgets.higtables import HIGTable
from higwidgets.higboxes import HIGHBox, hig_box_space_holder
from higwidgets.higbuttons import HIGStockButton
from umit.icm.agent.core.BugRegister import BugRegister
from umit.icm.agent.Version import VERSION
from umit.icm.agent.I18N import _
from umit.icm.agent.Upgrade import *

        self.category_list = gtk.ListStore(str, str)
        self.category_combo = gtk.ComboBoxEntry(self.category_list, 0)

        self.email_label = HIGHintSectionLabel(_("Email"),
            _("Please inform a valid e-mail address from "
            "where you can be reached to be notified when the bug gets "
            "fixed. Not used for other purposes."))
        self.email_entry = gtk.Entry()

        self.summary_label = HIGHintSectionLabel(_("Summary"),
            _("This should be a quick description of the issue. "
            "Try to be clear and concise."))
        self.summary_entry = gtk.Entry()

        self.description_label = HIGHintSectionLabel(_("Description"),
            _("This is where you should write about the bug, "
            "describing it as clear as possible and giving as many "
            "informations as you can and how to reproduce the bug."))
        self.description_scrolled = gtk.ScrolledWindow()
        self.description_text = gtk.TextView()

        self.bug_icon = gtk.Image()
        self.bug_text = gtk.Label(_("This Bug Report dialog allows you "
            "to easily tell us about a problem that you may have found on "
            "Open Monitor. Doing so, you help us to help you, by fixing and "
            "improving Open Monitor faster than usual."))
        
        if self.crashreport:
            # Create a button to show details 
            self.show_details = HIGStockButton(gtk.STOCK_DIALOG_INFO,

                                           _("Show Details"))