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.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  10.6 KB  |  244 lines

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