# Path: ui_console.py
# class Ui_Console(object):
#     def setupUi(self, Console):
#         Console.setObjectName(_fromUtf8("Console"))
#         Console.resize(689, 369)
#         Console.setWindowTitle(QtGui.QApplication.translate("Console", "Console", None, QtGui.QApplication.UnicodeUTF8))
#         icon = QtGui.QIcon()
#         icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/monokuma-green.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#         Console.setWindowIcon(icon)
#         self.verticalLayout = QtGui.QVBoxLayout(Console)
#         self.verticalLayout.setSpacing(2)
#         self.verticalLayout.setMargin(2)
#         self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
#         self.txtConsole = XLoggerWidget(Console)
#         self.txtConsole.setLineWrapMode(QtGui.QTextEdit.NoWrap)
#         self.txtConsole.setObjectName(_fromUtf8("txtConsole"))
#         self.verticalLayout.addWidget(self.txtConsole)
#         self.horizontalLayout = QtGui.QHBoxLayout()
#         self.horizontalLayout.setSpacing(8)
#         self.horizontalLayout.setContentsMargins(4, -1, 0, -1)
#         self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
#         self.label = QtGui.QLabel(Console)
#         self.label.setText(QtGui.QApplication.translate("Console", "Logging Level", None, QtGui.QApplication.UnicodeUTF8))
#         self.label.setObjectName(_fromUtf8("label"))
#         self.horizontalLayout.addWidget(self.label)
#         self.cboLevels = QtGui.QComboBox(Console)
#         self.cboLevels.setObjectName(_fromUtf8("cboLevels"))
#         self.horizontalLayout.addWidget(self.cboLevels)
#         self.chkWordWrap = QtGui.QCheckBox(Console)
#         self.chkWordWrap.setText(QtGui.QApplication.translate("Console", "Word wrap", None, QtGui.QApplication.UnicodeUTF8))
#         self.chkWordWrap.setObjectName(_fromUtf8("chkWordWrap"))
#         self.horizontalLayout.addWidget(self.chkWordWrap)
#         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
#         self.horizontalLayout.addItem(spacerItem)
#         self.pushButton = QtGui.QPushButton(Console)
#         self.pushButton.setText(QtGui.QApplication.translate("Console", "Clear", None, QtGui.QApplication.UnicodeUTF8))
#         self.pushButton.setObjectName(_fromUtf8("pushButton"))
#         self.horizontalLayout.addWidget(self.pushButton)
#         self.verticalLayout.addLayout(self.horizontalLayout)
# 
#         self.retranslateUi(Console)
#         QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtConsole.clear)
#         QtCore.QObject.connect(self.cboLevels, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), Console.updateLogLevel)
#         QtCore.QMetaObject.connectSlotsByName(Console)
# 
#     def retranslateUi(self, Console):
#         pass


import logging
import common
  import sys
from PyQt4 import QtCore, QtGui, Qt
from ui_console import Ui_Console
﻿################################################################################
### Copyright © 2012-2013 BlackDragonHunt
### 
### This file is part of the Super Duper Script Editor.
### 
### The Super Duper Script Editor is free software: you can redistribute it
### and/or modify it under the terms of the GNU General Public License as
### published by the Free Software Foundation, either version 3 of the License,
### or (at your option) any later version.
### 
### The Super Duper Script Editor is distributed in the hope that it will be
### useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
### 
### You should have received a copy of the GNU General Public License
### along with the Super Duper Script Editor.
### If not, see <http://www.gnu.org/licenses/>.
################################################################################




_LOGGER = logging.getLogger(common.LOGGER_NAME)
LEVELS  = ["Debug", "Info", "Warning", "Error", "Critical"]

class Console(QtGui.QDialog):
  def __init__(self, parent = None):
    super(Console, self).__init__(parent)
    

# Path: ui_console.py
# class Ui_Console(object):
#     def setupUi(self, Console):
#         Console.setObjectName(_fromUtf8("Console"))
#         Console.resize(689, 369)
#         Console.setWindowTitle(QtGui.QApplication.translate("Console", "Console", None, QtGui.QApplication.UnicodeUTF8))
#         icon = QtGui.QIcon()
#         icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/monokuma-green.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
#         Console.setWindowIcon(icon)
#         self.verticalLayout = QtGui.QVBoxLayout(Console)
#         self.verticalLayout.setSpacing(2)
#         self.verticalLayout.setMargin(2)
#         self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
#         self.txtConsole = XLoggerWidget(Console)
#         self.txtConsole.setLineWrapMode(QtGui.QTextEdit.NoWrap)
#         self.txtConsole.setObjectName(_fromUtf8("txtConsole"))
#         self.verticalLayout.addWidget(self.txtConsole)
#         self.horizontalLayout = QtGui.QHBoxLayout()
#         self.horizontalLayout.setSpacing(8)
#         self.horizontalLayout.setContentsMargins(4, -1, 0, -1)
#         self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
#         self.label = QtGui.QLabel(Console)
#         self.label.setText(QtGui.QApplication.translate("Console", "Logging Level", None, QtGui.QApplication.UnicodeUTF8))
#         self.label.setObjectName(_fromUtf8("label"))
#         self.horizontalLayout.addWidget(self.label)
#         self.cboLevels = QtGui.QComboBox(Console)
#         self.cboLevels.setObjectName(_fromUtf8("cboLevels"))
#         self.horizontalLayout.addWidget(self.cboLevels)
#         self.chkWordWrap = QtGui.QCheckBox(Console)
#         self.chkWordWrap.setText(QtGui.QApplication.translate("Console", "Word wrap", None, QtGui.QApplication.UnicodeUTF8))
#         self.chkWordWrap.setObjectName(_fromUtf8("chkWordWrap"))
#         self.horizontalLayout.addWidget(self.chkWordWrap)
#         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
#         self.horizontalLayout.addItem(spacerItem)
#         self.pushButton = QtGui.QPushButton(Console)
#         self.pushButton.setText(QtGui.QApplication.translate("Console", "Clear", None, QtGui.QApplication.UnicodeUTF8))
#         self.pushButton.setObjectName(_fromUtf8("pushButton"))
#         self.horizontalLayout.addWidget(self.pushButton)
#         self.verticalLayout.addLayout(self.horizontalLayout)
# 
#         self.retranslateUi(Console)
#         QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.txtConsole.clear)
#         QtCore.QObject.connect(self.cboLevels, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), Console.updateLogLevel)
#         QtCore.QMetaObject.connectSlotsByName(Console)
# 
#     def retranslateUi(self, Console):
#         pass


# Path: console.py
import logging
import common
  import sys
from PyQt4 import QtCore, QtGui, Qt
from ui_console import Ui_Console

﻿################################################################################
### Copyright © 2012-2013 BlackDragonHunt
### 
### This file is part of the Super Duper Script Editor.
### 
### The Super Duper Script Editor is free software: you can redistribute it
### and/or modify it under the terms of the GNU General Public License as
### published by the Free Software Foundation, either version 3 of the License,
### or (at your option) any later version.
### 
### The Super Duper Script Editor is distributed in the hope that it will be
### useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
### 
### You should have received a copy of the GNU General Public License
### along with the Super Duper Script Editor.
### If not, see <http://www.gnu.org/licenses/>.
################################################################################




_LOGGER = logging.getLogger(common.LOGGER_NAME)
LEVELS  = ["Debug", "Info", "Warning", "Error", "Critical"]

class Console(QtGui.QDialog):
  def __init__(self, parent = None):
    super(Console, self).__init__(parent)
    

    self.ui = Ui_Console()