home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / unloadform_base.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  10.3 KB  |  262 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/unloadform_base.ui'
  4. #
  5. # Created: Wed Aug 30 11:37:46 2006
  6. #      by: The PyQt User Interface Compiler (pyuic) 3.16
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10.  
  11. import sys
  12. from qt import *
  13.  
  14.  
  15. class UnloadForm_base(QMainWindow):
  16.     def __init__(self,parent = None,name = None,fl = 0):
  17.         QMainWindow.__init__(self,parent,name,fl)
  18.         self.statusBar()
  19.  
  20.         if not name:
  21.             self.setName("UnloadForm_base")
  22.  
  23.  
  24.         self.setCentralWidget(QWidget(self,"qt_central_widget"))
  25.         UnloadForm_baseLayout = QGridLayout(self.centralWidget(),1,1,11,6,"UnloadForm_baseLayout")
  26.  
  27.         self.groupBox2 = QGroupBox(self.centralWidget(),"groupBox2")
  28.         self.groupBox2.setColumnLayout(0,Qt.Vertical)
  29.         self.groupBox2.layout().setSpacing(6)
  30.         self.groupBox2.layout().setMargin(11)
  31.         groupBox2Layout = QGridLayout(self.groupBox2.layout())
  32.         groupBox2Layout.setAlignment(Qt.AlignTop)
  33.  
  34.         self.DeviceText = QLabel(self.groupBox2,"DeviceText")
  35.  
  36.         groupBox2Layout.addWidget(self.DeviceText,0,0)
  37.  
  38.         UnloadForm_baseLayout.addMultiCellWidget(self.groupBox2,0,0,0,2)
  39.  
  40.         self.UnloadButton = QPushButton(self.centralWidget(),"UnloadButton")
  41.  
  42.         UnloadForm_baseLayout.addWidget(self.UnloadButton,4,2)
  43.         spacer1 = QSpacerItem(211,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  44.         UnloadForm_baseLayout.addItem(spacer1,4,0)
  45.  
  46.         self.CancelButton = QPushButton(self.centralWidget(),"CancelButton")
  47.  
  48.         UnloadForm_baseLayout.addWidget(self.CancelButton,4,1)
  49.  
  50.         self.groupBox3 = QGroupBox(self.centralWidget(),"groupBox3")
  51.         self.groupBox3.setColumnLayout(0,Qt.Vertical)
  52.         self.groupBox3.layout().setSpacing(6)
  53.         self.groupBox3.layout().setMargin(11)
  54.         groupBox3Layout = QGridLayout(self.groupBox3.layout())
  55.         groupBox3Layout.setAlignment(Qt.AlignTop)
  56.  
  57.         self.UnloadDirectoryEdit = QLineEdit(self.groupBox3,"UnloadDirectoryEdit")
  58.  
  59.         groupBox3Layout.addWidget(self.UnloadDirectoryEdit,0,0)
  60.  
  61.         self.UnloadDirectoryBrowseButton = QPushButton(self.groupBox3,"UnloadDirectoryBrowseButton")
  62.  
  63.         groupBox3Layout.addWidget(self.UnloadDirectoryBrowseButton,0,1)
  64.  
  65.         UnloadForm_baseLayout.addMultiCellWidget(self.groupBox3,2,2,0,2)
  66.  
  67.         self.FileRemovalGroup = QButtonGroup(self.centralWidget(),"FileRemovalGroup")
  68.         self.FileRemovalGroup.setColumnLayout(0,Qt.Vertical)
  69.         self.FileRemovalGroup.layout().setSpacing(6)
  70.         self.FileRemovalGroup.layout().setMargin(11)
  71.         FileRemovalGroupLayout = QGridLayout(self.FileRemovalGroup.layout())
  72.         FileRemovalGroupLayout.setAlignment(Qt.AlignTop)
  73.  
  74.         self.LeaveAllRadio = QRadioButton(self.FileRemovalGroup,"LeaveAllRadio")
  75.         self.LeaveAllRadio.setChecked(1)
  76.  
  77.         FileRemovalGroupLayout.addWidget(self.LeaveAllRadio,0,0)
  78.  
  79.         self.RemoveSelectedRadio = QRadioButton(self.FileRemovalGroup,"RemoveSelectedRadio")
  80.  
  81.         FileRemovalGroupLayout.addWidget(self.RemoveSelectedRadio,1,0)
  82.  
  83.         self.RemoveAllRadio = QRadioButton(self.FileRemovalGroup,"RemoveAllRadio")
  84.         self.RemoveAllRadio.setEnabled(0)
  85.  
  86.         FileRemovalGroupLayout.addWidget(self.RemoveAllRadio,2,0)
  87.  
  88.         UnloadForm_baseLayout.addMultiCellWidget(self.FileRemovalGroup,3,3,0,2)
  89.  
  90.         self.groupBox1 = QGroupBox(self.centralWidget(),"groupBox1")
  91.         self.groupBox1.setColumnLayout(0,Qt.Vertical)
  92.         self.groupBox1.layout().setSpacing(6)
  93.         self.groupBox1.layout().setMargin(11)
  94.         groupBox1Layout = QGridLayout(self.groupBox1.layout())
  95.         groupBox1Layout.setAlignment(Qt.AlignTop)
  96.  
  97.         self.IconView = QIconView(self.groupBox1,"IconView")
  98.         self.IconView.setResizePolicy(QIconView.AutoOneFit)
  99.         self.IconView.setSelectionMode(QIconView.Multi)
  100.         self.IconView.setResizeMode(QIconView.Adjust)
  101.         self.IconView.setMaxItemWidth(200)
  102.         self.IconView.setAutoArrange(0)
  103.         self.IconView.setItemsMovable(1)
  104.  
  105.         groupBox1Layout.addMultiCellWidget(self.IconView,0,0,0,3)
  106.  
  107.         self.SelectAllButton = QPushButton(self.groupBox1,"SelectAllButton")
  108.  
  109.         groupBox1Layout.addWidget(self.SelectAllButton,1,0)
  110.  
  111.         self.SelectNoneButton = QPushButton(self.groupBox1,"SelectNoneButton")
  112.  
  113.         groupBox1Layout.addWidget(self.SelectNoneButton,1,1)
  114.  
  115.         self.ShowThumbnailsButton = QPushButton(self.groupBox1,"ShowThumbnailsButton")
  116.  
  117.         groupBox1Layout.addWidget(self.ShowThumbnailsButton,1,3)
  118.         spacer2 = QSpacerItem(360,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  119.         groupBox1Layout.addItem(spacer2,1,2)
  120.  
  121.         UnloadForm_baseLayout.addMultiCellWidget(self.groupBox1,1,1,0,2)
  122.  
  123.  
  124.  
  125.         self.MenuBar = QMenuBar(self,"MenuBar")
  126.  
  127.  
  128.  
  129.         self.languageChange()
  130.  
  131.         self.resize(QSize(689,661).expandedTo(self.minimumSizeHint()))
  132.         self.clearWState(Qt.WState_Polished)
  133.  
  134.         self.connect(self.SelectAllButton,SIGNAL("clicked()"),self.SelectAllButton_clicked)
  135.         self.connect(self.SelectNoneButton,SIGNAL("clicked()"),self.SelectNoneButton_clicked)
  136.         self.connect(self.IconView,SIGNAL("doubleClicked(QIconViewItem*)"),self.IconView_doubleClicked)
  137.         self.connect(self.UnloadDirectoryBrowseButton,SIGNAL("clicked()"),self.UnloadDirectoryBrowseButton_clicked)
  138.         self.connect(self.UnloadButton,SIGNAL("clicked()"),self.UnloadButton_clicked)
  139.         self.connect(self.IconView,SIGNAL("rightButtonClicked(QIconViewItem*,const QPoint&)"),self.IconView_rightButtonClicked)
  140.         self.connect(self.FileRemovalGroup,SIGNAL("clicked(int)"),self.FileRemovalGroup_clicked)
  141.         self.connect(self.IconView,SIGNAL("clicked(QIconViewItem*)"),self.IconView_clicked)
  142.         self.connect(self.IconView,SIGNAL("selectionChanged()"),self.IconView_selectionChanged)
  143.         self.connect(self.ShowThumbnailsButton,SIGNAL("clicked()"),self.ShowThumbnailsButton_clicked)
  144.         self.connect(self.CancelButton,SIGNAL("clicked()"),self.CancelButton_clicked)
  145.  
  146.  
  147.     def languageChange(self):
  148.         self.setCaption(self.__tr("HP Device Manager - Unload Files from Photo Card"))
  149.         self.groupBox2.setTitle(self.__tr("Device:"))
  150.         self.DeviceText.setText(QString.null)
  151.         self.UnloadButton.setText(self.__tr("Unload Selected Files"))
  152.         self.CancelButton.setText(self.__tr("Close"))
  153.         self.groupBox3.setTitle(self.__tr("Unload Directory:"))
  154.         self.UnloadDirectoryBrowseButton.setText(self.__tr("Browse..."))
  155.         self.FileRemovalGroup.setTitle(self.__tr("File Removal:"))
  156.         self.LeaveAllRadio.setText(self.__tr("Leave all files on photo card"))
  157.         self.RemoveSelectedRadio.setText(self.__tr("Remove selected files"))
  158.         self.RemoveAllRadio.setText(self.__tr("Remove all files"))
  159.         self.groupBox1.setTitle(self.__tr("Select Files to Unload from Photo Card:"))
  160.         self.SelectAllButton.setText(self.__tr("Select All"))
  161.         self.SelectNoneButton.setText(self.__tr("Select None"))
  162.         self.ShowThumbnailsButton.setText(self.__tr("Show Thumbnails"))
  163.  
  164.  
  165.     def fileNew(self):
  166.         print "UnloadForm_base.fileNew(): Not implemented yet"
  167.  
  168.     def fileOpen(self):
  169.         print "UnloadForm_base.fileOpen(): Not implemented yet"
  170.  
  171.     def fileSave(self):
  172.         print "UnloadForm_base.fileSave(): Not implemented yet"
  173.  
  174.     def fileSaveAs(self):
  175.         print "UnloadForm_base.fileSaveAs(): Not implemented yet"
  176.  
  177.     def filePrint(self):
  178.         print "UnloadForm_base.filePrint(): Not implemented yet"
  179.  
  180.     def fileExit(self):
  181.         print "UnloadForm_base.fileExit(): Not implemented yet"
  182.  
  183.     def editUndo(self):
  184.         print "UnloadForm_base.editUndo(): Not implemented yet"
  185.  
  186.     def editRedo(self):
  187.         print "UnloadForm_base.editRedo(): Not implemented yet"
  188.  
  189.     def editCut(self):
  190.         print "UnloadForm_base.editCut(): Not implemented yet"
  191.  
  192.     def editCopy(self):
  193.         print "UnloadForm_base.editCopy(): Not implemented yet"
  194.  
  195.     def editPaste(self):
  196.         print "UnloadForm_base.editPaste(): Not implemented yet"
  197.  
  198.     def editFind(self):
  199.         print "UnloadForm_base.editFind(): Not implemented yet"
  200.  
  201.     def helpIndex(self):
  202.         print "UnloadForm_base.helpIndex(): Not implemented yet"
  203.  
  204.     def helpContents(self):
  205.         print "UnloadForm_base.helpContents(): Not implemented yet"
  206.  
  207.     def helpAbout(self):
  208.         print "UnloadForm_base.helpAbout(): Not implemented yet"
  209.  
  210.     def SelectAllButton_clicked(self):
  211.         print "UnloadForm_base.SelectAllButton_clicked(): Not implemented yet"
  212.  
  213.     def SelectNoneButton_clicked(self):
  214.         print "UnloadForm_base.SelectNoneButton_clicked(): Not implemented yet"
  215.  
  216.     def IconView_doubleClicked(self,a0):
  217.         print "UnloadForm_base.IconView_doubleClicked(QIconViewItem*): Not implemented yet"
  218.  
  219.     def UnloadDirectoryBrowseButton_clicked(self):
  220.         print "UnloadForm_base.UnloadDirectoryBrowseButton_clicked(): Not implemented yet"
  221.  
  222.     def UnloadButton_clicked(self):
  223.         print "UnloadForm_base.UnloadButton_clicked(): Not implemented yet"
  224.  
  225.     def IconView_rightButtonClicked(self,a0,a1):
  226.         print "UnloadForm_base.IconView_rightButtonClicked(QIconViewItem*,const QPoint&): Not implemented yet"
  227.  
  228.     def FileRemovalGroup_clicked(self,a0):
  229.         print "UnloadForm_base.FileRemovalGroup_clicked(int): Not implemented yet"
  230.  
  231.     def IconView_selectionChanged(self,a0):
  232.         print "UnloadForm_base.IconView_selectionChanged(QIconViewItem*): Not implemented yet"
  233.  
  234.     def IconView_clicked(self,a0,a1):
  235.         print "UnloadForm_base.IconView_clicked(QIconViewItem*,const QPoint&): Not implemented yet"
  236.  
  237.     def IconView_clicked(self,a0):
  238.         print "UnloadForm_base.IconView_clicked(QIconViewItem*): Not implemented yet"
  239.  
  240.     def IconView_currentChanged(self,a0):
  241.         print "UnloadForm_base.IconView_currentChanged(QIconViewItem*): Not implemented yet"
  242.  
  243.     def IconView_selectionChanged(self):
  244.         print "UnloadForm_base.IconView_selectionChanged(): Not implemented yet"
  245.  
  246.     def ShowThumbnailsButton_clicked(self):
  247.         print "UnloadForm_base.ShowThumbnailsButton_clicked(): Not implemented yet"
  248.  
  249.     def CancelButton_clicked(self):
  250.         print "UnloadForm_base.CancelButton_clicked(): Not implemented yet"
  251.  
  252.     def __tr(self,s,c = None):
  253.         return qApp.translate("UnloadForm_base",s,c)
  254.  
  255. if __name__ == "__main__":
  256.     a = QApplication(sys.argv)
  257.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  258.     w = UnloadForm_base()
  259.     a.setMainWidget(w)
  260.     w.show()
  261.     a.exec_loop()
  262.