# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Preferences/ViewProfileForm.ui'
#
# Created: So Nov 27 16:13:12 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class ViewProfileForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("ViewProfileForm")


        ViewProfileFormLayout = QGridLayout(self,1,1,6,6,"ViewProfileFormLayout")

        self.textLabel1 = QLabel(self,"textLabel1")
        self.textLabel1.setAlignment(QLabel.AlignVCenter)

        ViewProfileFormLayout.addMultiCellWidget(self.textLabel1,0,0,0,1)

        layout1 = QHBoxLayout(None,0,6,"layout1")
        spacer1 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer1)

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        layout1.addWidget(self.okButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        layout1.addWidget(self.cancelButton)
        spacer2 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer2)

        ViewProfileFormLayout.addMultiCellLayout(layout1,2,2,0,1)

        self.editGroup = QButtonGroup(self,"editGroup")
        self.editGroup.setColumnLayout(0,Qt.Vertical)
        self.editGroup.layout().setSpacing(6)
        self.editGroup.layout().setMargin(6)
        editGroupLayout = QVBoxLayout(self.editGroup.layout())
        editGroupLayout.setAlignment(Qt.AlignTop)

        self.eppbCheckBox = QCheckBox(self.editGroup,"eppbCheckBox")
        self.eppbCheckBox.setChecked(1)
        editGroupLayout.addWidget(self.eppbCheckBox)

        self.epfbCheckBox = QCheckBox(self.editGroup,"epfbCheckBox")
        editGroupLayout.addWidget(self.epfbCheckBox)

        self.epdbCheckBox = QCheckBox(self.editGroup,"epdbCheckBox")
        editGroupLayout.addWidget(self.epdbCheckBox)

        self.eppsCheckBox = QCheckBox(self.editGroup,"eppsCheckBox")
        self.eppsCheckBox.setChecked(1)
        editGroupLayout.addWidget(self.eppsCheckBox)

        self.eplvCheckBox = QCheckBox(self.editGroup,"eplvCheckBox")
        self.eplvCheckBox.setChecked(1)
        editGroupLayout.addWidget(self.eplvCheckBox)

        self.eptvCheckBox = QCheckBox(self.editGroup,"eptvCheckBox")
        self.eptvCheckBox.setChecked(1)
        editGroupLayout.addWidget(self.eptvCheckBox)

        self.eptevCheckBox = QCheckBox(self.editGroup,"eptevCheckBox")
        self.eptevCheckBox.setChecked(1)
        editGroupLayout.addWidget(self.eptevCheckBox)

        ViewProfileFormLayout.addWidget(self.editGroup,1,0)

        self.debugGroup = QButtonGroup(self,"debugGroup")
        self.debugGroup.setColumnLayout(0,Qt.Vertical)
        self.debugGroup.layout().setSpacing(6)
        self.debugGroup.layout().setMargin(6)
        debugGroupLayout = QVBoxLayout(self.debugGroup.layout())
        debugGroupLayout.setAlignment(Qt.AlignTop)

        self.dppbCheckBox = QCheckBox(self.debugGroup,"dppbCheckBox")
        self.dppbCheckBox.setChecked(0)
        debugGroupLayout.addWidget(self.dppbCheckBox)

        self.dpfbCheckBox = QCheckBox(self.debugGroup,"dpfbCheckBox")
        debugGroupLayout.addWidget(self.dpfbCheckBox)

        self.dpdbCheckBox = QCheckBox(self.debugGroup,"dpdbCheckBox")
        self.dpdbCheckBox.setChecked(1)
        debugGroupLayout.addWidget(self.dpdbCheckBox)

        self.dppsCheckBox = QCheckBox(self.debugGroup,"dppsCheckBox")
        self.dppsCheckBox.setChecked(1)
        debugGroupLayout.addWidget(self.dppsCheckBox)

        self.dplvCheckBox = QCheckBox(self.debugGroup,"dplvCheckBox")
        self.dplvCheckBox.setChecked(1)
        debugGroupLayout.addWidget(self.dplvCheckBox)

        self.dptvCheckBox = QCheckBox(self.debugGroup,"dptvCheckBox")
        self.dptvCheckBox.setChecked(1)
        debugGroupLayout.addWidget(self.dptvCheckBox)

        self.dptevCheckBox = QCheckBox(self.debugGroup,"dptevCheckBox")
        debugGroupLayout.addWidget(self.dptevCheckBox)

        ViewProfileFormLayout.addWidget(self.debugGroup,1,1)

        self.languageChange()

        self.resize(QSize(608,276).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)

        self.setTabOrder(self.eppbCheckBox,self.epfbCheckBox)
        self.setTabOrder(self.epfbCheckBox,self.epdbCheckBox)
        self.setTabOrder(self.epdbCheckBox,self.eppsCheckBox)
        self.setTabOrder(self.eppsCheckBox,self.eplvCheckBox)
        self.setTabOrder(self.eplvCheckBox,self.eptvCheckBox)
        self.setTabOrder(self.eptvCheckBox,self.dppbCheckBox)
        self.setTabOrder(self.dppbCheckBox,self.dpfbCheckBox)
        self.setTabOrder(self.dpfbCheckBox,self.dpdbCheckBox)
        self.setTabOrder(self.dpdbCheckBox,self.dppsCheckBox)
        self.setTabOrder(self.dppsCheckBox,self.dplvCheckBox)
        self.setTabOrder(self.dplvCheckBox,self.dptvCheckBox)
        self.setTabOrder(self.dptvCheckBox,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)


    def languageChange(self):
        self.setCaption(self.__tr("Configure View Profiles"))
        self.textLabel1.setText(self.__tr("Select the windows, that should be visible, when the different profiles are active."))
        self.okButton.setText(self.__tr("&OK"))
        self.okButton.setAccel(self.__tr("Alt+O"))
        self.cancelButton.setText(self.__tr("&Cancel"))
        self.cancelButton.setAccel(self.__tr("Alt+C"))
        self.editGroup.setTitle(self.__tr("&Edit Profile"))
        self.eppbCheckBox.setText(self.__tr("Project-Browser"))
        self.epfbCheckBox.setText(self.__tr("File-Browser"))
        self.epdbCheckBox.setText(self.__tr("Debug-Browser"))
        self.eppsCheckBox.setText(self.__tr("Shell"))
        self.eplvCheckBox.setText(self.__tr("Log-Viewer"))
        self.eptvCheckBox.setText(self.__tr("Task-Viewer"))
        self.eptevCheckBox.setText(self.__tr("Templates-Viewer"))
        self.debugGroup.setTitle(self.__tr("&Debug Profile"))
        self.dppbCheckBox.setText(self.__tr("Project-Browser"))
        self.dpfbCheckBox.setText(self.__tr("File-Browser"))
        self.dpdbCheckBox.setText(self.__tr("Debug-Browser"))
        self.dppsCheckBox.setText(self.__tr("Shell"))
        self.dplvCheckBox.setText(self.__tr("Log-Viewer"))
        self.dptvCheckBox.setText(self.__tr("Task-Viewer"))
        self.dptevCheckBox.setText(self.__tr("Templates-Viewer"))


    def __tr(self,s,c = None):
        return qApp.translate("ViewProfileForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = ViewProfileForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
