File: pluginform2_base.py

package info (click to toggle)
hplip 3.16.11%2Brepack0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 129,416 kB
  • ctags: 20,423
  • sloc: python: 78,229; ansic: 67,606; cpp: 59,753; sh: 11,285; perl: 4,353; makefile: 693
file content (125 lines) | stat: -rw-r--r-- 5,294 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ui/pluginform2_base.ui'
#
# Created: Thu May 22 15:17:47 2008
#      by: The PyQt User Interface Compiler (pyuic) 3.17.3
#
# WARNING! All changes made in this file will be lost!


from qt import *


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

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


        PluginForm2_baseLayout = QGridLayout(self,1,1,11,6,"PluginForm2_baseLayout")

        self.titleTextLabel = QLabel(self,"titleTextLabel")

        PluginForm2_baseLayout.addMultiCellWidget(self.titleTextLabel,0,0,0,2)

        self.line1 = QFrame(self,"line1")
        self.line1.setFrameShape(QFrame.HLine)
        self.line1.setFrameShadow(QFrame.Sunken)
        self.line1.setFrameShape(QFrame.HLine)

        PluginForm2_baseLayout.addMultiCellWidget(self.line1,1,1,0,2)
        spacer8 = QSpacerItem(390,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        PluginForm2_baseLayout.addItem(spacer8,6,0)

        self.cancelPushButton = QPushButton(self,"cancelPushButton")

        PluginForm2_baseLayout.addWidget(self.cancelPushButton,6,2)

        self.actionPushButton = QPushButton(self,"actionPushButton")
        self.actionPushButton.setDefault(1)

        PluginForm2_baseLayout.addWidget(self.actionPushButton,6,1)

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

        PluginForm2_baseLayout.addMultiCellWidget(self.textLabel1,2,2,0,2)
        spacer11 = QSpacerItem(20,50,QSizePolicy.Minimum,QSizePolicy.Expanding)
        PluginForm2_baseLayout.addItem(spacer11,5,2)

        self.sourceGroup = QButtonGroup(self,"sourceGroup")
        self.sourceGroup.setColumnLayout(0,Qt.Vertical)
        self.sourceGroup.layout().setSpacing(6)
        self.sourceGroup.layout().setMargin(11)
        sourceGroupLayout = QGridLayout(self.sourceGroup.layout())
        sourceGroupLayout.setAlignment(Qt.AlignTop)

        self.radioButton5 = QRadioButton(self.sourceGroup,"radioButton5")
        self.sourceGroup.insert( self.radioButton5,1)

        sourceGroupLayout.addWidget(self.radioButton5,1,0)

        self.browsePushButton = QPushButton(self.sourceGroup,"browsePushButton")
        self.browsePushButton.setEnabled(0)

        sourceGroupLayout.addWidget(self.browsePushButton,2,1)

        self.radioButton4 = QRadioButton(self.sourceGroup,"radioButton4")
        self.radioButton4.setChecked(1)
        self.sourceGroup.insert( self.radioButton4,0)

        sourceGroupLayout.addWidget(self.radioButton4,0,0)

        self.pathLineEdit = QLineEdit(self.sourceGroup,"pathLineEdit")
        self.pathLineEdit.setEnabled(0)

        sourceGroupLayout.addWidget(self.pathLineEdit,2,0)

        PluginForm2_baseLayout.addMultiCellWidget(self.sourceGroup,4,4,0,2)
        spacer13 = QSpacerItem(20,21,QSizePolicy.Minimum,QSizePolicy.Expanding)
        PluginForm2_baseLayout.addItem(spacer13,3,0)

        self.languageChange()

        self.resize(QSize(585,375).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.sourceGroup,SIGNAL("clicked(int)"),self.sourceGroup_clicked)
        self.connect(self.browsePushButton,SIGNAL("clicked()"),self.browsePushButton_clicked)
        self.connect(self.pathLineEdit,SIGNAL("textChanged(const QString&)"),self.pathLineEdit_textChanged)
        self.connect(self.actionPushButton,SIGNAL("clicked()"),self.actionPushButton_clicked)
        self.connect(self.cancelPushButton,SIGNAL("clicked()"),self.cancelPushButton_clicked)


    def languageChange(self):
        self.setCaption(self.__tr("HP Device Manager - Plugin Download and Install"))
        self.titleTextLabel.setText(self.__tr("Driver Plug-in Install"))
        self.cancelPushButton.setText(self.__tr("Cancel"))
        self.actionPushButton.setText(self.__tr("Download and Install"))
        self.textLabel1.setText(self.__tr("You may download the plug-in directly from an HP authorized server, or, if you already have a copy of the file, you can specify a path to the file."))
        self.sourceGroup.setTitle(self.__tr("Plug-in Source"))
        self.radioButton5.setText(self.__tr("Use an exisiting copy of the plug-in file (advanced):"))
        self.browsePushButton.setText(self.__tr("Browse..."))
        self.radioButton4.setText(self.__tr("Download the plug-in from an HP authorized server (recommended)"))


    def sourceGroup_clicked(self,a0):
        print("PluginForm2_base.sourceGroup_clicked(int): Not implemented yet")

    def browsePushButton_clicked(self):
        print("PluginForm2_base.browsePushButton_clicked(): Not implemented yet")

    def pathLineEdit_textChanged(self,a0):
        print("PluginForm2_base.pathLineEdit_textChanged(const QString&): Not implemented yet")

    def actionPushButton_clicked(self):
        print("PluginForm2_base.actionPushButton_clicked(): Not implemented yet")

    def cancelPushButton_clicked(self):
        print("PluginForm2_base.cancelPushButton_clicked(): Not implemented yet")

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