Logo Search packages:      
Sourcecode: kde-guidance version File versions  Download package

fuser_ui.py

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

# Form implementation generated from reading ui file 'fuser_ui.ui'
#
# Created: Sat Apr 8 17:22:12 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15.1
#
# WARNING! All changes made in this file will be lost!


from qt import *
from kdecore import *
from kdeui import *

from kdeui import *
from kdecore import *

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

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

        self.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,0,0,self.sizePolicy().hasHeightForWidth()))
        self.setMinimumSize(QSize(400,250))
        self.setBaseSize(QSize(400,250))

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

        layout13 = QVBoxLayout(None,0,6,"layout13")

        layout10 = QHBoxLayout(None,0,6,"layout10")

        self.warningimage = QLabel(self,"warningimage")
        self.warningimage.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,0,0,self.warningimage.sizePolicy().hasHeightForWidth()))
        self.warningimage.setScaledContents(0)
        layout10.addWidget(self.warningimage)

        self.explanationlabel = QLabel(self,"explanationlabel")
        self.explanationlabel.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,1,0,self.explanationlabel.sizePolicy().hasHeightForWidth()))
        self.explanationlabel.setMinimumSize(QSize(0,0))
        layout10.addWidget(self.explanationlabel)
        layout13.addLayout(layout10)

        self.processframe = QFrame(self,"processframe")
        self.processframe.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,1,1,self.processframe.sizePolicy().hasHeightForWidth()))
        self.processframe.setFrameShape(QFrame.StyledPanel)
        self.processframe.setFrameShadow(QFrame.Raised)
        processframeLayout = QGridLayout(self.processframe,1,1,5,4,"processframeLayout")

        layout7 = QVBoxLayout(None,0,6,"layout7")

        self.processlist = QListView(self.processframe,"processlist")
        self.processlist.addColumn(i18n("Process"))
        self.processlist.addColumn(i18n("Process ID"))
        self.processlist.addColumn(i18n("Owner"))
        self.processlist.addColumn(i18n("File"))
        self.processlist.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding,1,1,self.processlist.sizePolicy().hasHeightForWidth()))
        self.processlist.setResizePolicy(QScrollView.Manual)
        self.processlist.setAllColumnsShowFocus(1)
        self.processlist.setShowSortIndicator(1)
        self.processlist.setRootIsDecorated(1)
        self.processlist.setResizeMode(QListView.LastColumn)
        layout7.addWidget(self.processlist)

        layout11 = QHBoxLayout(None,0,6,"layout11")

        self.killallbutton = KPushButton(self.processframe,"killallbutton")
        layout11.addWidget(self.killallbutton)
        listbuttonspacer = QSpacerItem(184,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout11.addItem(listbuttonspacer)

        self.killbutton = KPushButton(self.processframe,"killbutton")
        layout11.addWidget(self.killbutton)

        self.refreshbutton = KPushButton(self.processframe,"refreshbutton")
        layout11.addWidget(self.refreshbutton)
        layout7.addLayout(layout11)

        processframeLayout.addLayout(layout7,0,0)
        layout13.addWidget(self.processframe)

        layout12 = QHBoxLayout(None,0,6,"layout12")

        self.optionsbutton = KPushButton(self,"optionsbutton")
        self.optionsbutton.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.optionsbutton.sizePolicy().hasHeightForWidth()))
        layout12.addWidget(self.optionsbutton)
        bottombuttonspacer = QSpacerItem(280,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout12.addItem(bottombuttonspacer)

        self.umountbutton = KPushButton(self,"umountbutton")
        self.umountbutton.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.umountbutton.sizePolicy().hasHeightForWidth()))
        layout12.addWidget(self.umountbutton)

        self.cancelbutton = KPushButton(self,"cancelbutton")
        self.cancelbutton.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.cancelbutton.sizePolicy().hasHeightForWidth()))
        layout12.addWidget(self.cancelbutton)
        layout13.addLayout(layout12)

        ProcessLayout.addLayout(layout13,0,0)

        self.languageChange()

        self.resize(QSize(515,327).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)


    def languageChange(self):
        self.setCaption(i18n("Error: Volume in use"))
        self.explanationlabel.setText(i18n("The volume $VOLUME is in use and can not be disabled.\n"
"\n"
"The processes that are blocking $VOLUME are listed below. These processes must be closed before $VOLUME can be disabled.\n"
"Killing a process may cause data loss. Make sure all work is saved before killing an application."))
        self.processlist.header().setLabel(0,i18n("Process"))
        self.processlist.header().setLabel(1,i18n("Process ID"))
        self.processlist.header().setLabel(2,i18n("Owner"))
        self.processlist.header().setLabel(3,i18n("File"))
        self.killallbutton.setText(i18n("Kill all listed processes"))
        self.killbutton.setText(i18n("Kill process"))
        self.refreshbutton.setText(i18n("Refresh list"))
        self.optionsbutton.setText(i18n(">>> Options"))
        self.umountbutton.setText(i18n("Disable volume"))
        self.cancelbutton.setText(i18n("Cancel"))


Generated by  Doxygen 1.6.0   Back to index