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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/ViewManager/BookmarkedFilesForm.ui'
#
# Created: So Nov 27 16:13:08 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 BookmarkedFilesForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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


        BookmarkedFilesFormLayout = QVBoxLayout(self,6,6,"BookmarkedFilesFormLayout")

        Layout3 = QGridLayout(None,1,1,0,6,"Layout3")

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

        Layout3.addWidget(self.addButton,0,3)

        self.deleteButton = QPushButton(self,"deleteButton")
        self.deleteButton.setEnabled(0)

        Layout3.addWidget(self.deleteButton,2,3)

        self.changeButton = QPushButton(self,"changeButton")
        self.changeButton.setEnabled(0)

        Layout3.addWidget(self.changeButton,1,3)

        self.downButton = QPushButton(self,"downButton")
        self.downButton.setEnabled(0)

        Layout3.addWidget(self.downButton,4,3)

        self.filesListBox = QListBox(self,"filesListBox")

        Layout3.addMultiCellWidget(self.filesListBox,0,5,0,2)

        self.fileButton = QPushButton(self,"fileButton")
        self.fileButton.setFocusPolicy(QPushButton.NoFocus)

        Layout3.addWidget(self.fileButton,6,2)

        self.upButton = QPushButton(self,"upButton")
        self.upButton.setEnabled(0)

        Layout3.addWidget(self.upButton,3,3)

        self.fileEdit = QLineEdit(self,"fileEdit")

        Layout3.addWidget(self.fileEdit,6,1)
        Spacer3 = QSpacerItem(0,40,QSizePolicy.Minimum,QSizePolicy.Expanding)
        Layout3.addItem(Spacer3,5,3)

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

        Layout3.addWidget(self.TextLabel1,6,0)
        BookmarkedFilesFormLayout.addLayout(Layout3)

        Layout1 = QHBoxLayout(None,0,6,"Layout1")
        Spacer1 = QSpacerItem(30,0,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(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer2)
        BookmarkedFilesFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(475,391).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
        self.connect(self.addButton,SIGNAL("clicked()"),self.handleAdd)
        self.connect(self.deleteButton,SIGNAL("clicked()"),self.handleDelete)
        self.connect(self.upButton,SIGNAL("clicked()"),self.handleUp)
        self.connect(self.downButton,SIGNAL("clicked()"),self.handleDown)
        self.connect(self.fileButton,SIGNAL("clicked()"),self.handleFileSelect)
        self.connect(self.filesListBox,SIGNAL("highlighted(int)"),self.handleEntrySelected)
        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.changeButton,SIGNAL("clicked()"),self.handleChange)

        self.setTabOrder(self.filesListBox,self.fileEdit)
        self.setTabOrder(self.fileEdit,self.addButton)
        self.setTabOrder(self.addButton,self.changeButton)
        self.setTabOrder(self.changeButton,self.deleteButton)
        self.setTabOrder(self.deleteButton,self.upButton)
        self.setTabOrder(self.upButton,self.downButton)
        self.setTabOrder(self.downButton,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)
        self.setTabOrder(self.cancelButton,self.fileButton)

        self.TextLabel1.setBuddy(self.fileEdit)


    def languageChange(self):
        self.setCaption(self.__tr("Configure Bookmarked Files Menu"))
        self.addButton.setText(self.__tr("&Add"))
        self.addButton.setAccel(self.__tr("Alt+A"))
        QToolTip.add(self.addButton,self.__tr("Add a new bookmarked file"))
        QWhatsThis.add(self.addButton,self.__tr("<b>Add</b>\n"
"<p>Add a new bookmarked file with the value entered below.</p>"))
        self.deleteButton.setText(self.__tr("&Delete"))
        self.deleteButton.setAccel(self.__tr("Alt+D"))
        QToolTip.add(self.deleteButton,self.__tr("Delete the selected entry"))
        QWhatsThis.add(self.deleteButton,self.__tr("<b>Delete</b>\n"
"<p>Delete the selected entry.</p>"))
        self.changeButton.setText(self.__tr("C&hange"))
        self.changeButton.setAccel(self.__tr("Alt+H"))
        QToolTip.add(self.changeButton,self.__tr("Change the value of the selected entry"))
        QWhatsThis.add(self.changeButton,self.__tr("<b>Change</b>\n"
"<p>Change the value of the selected entry.</p>"))
        self.downButton.setText(self.__tr("&Down"))
        self.downButton.setAccel(self.__tr("Alt+D"))
        QToolTip.add(self.downButton,self.__tr("Move down"))
        QWhatsThis.add(self.downButton,self.__tr("<b>Move Down</b>\n"
"<p>Move the selected entry down.</p>"))
        self.fileButton.setText(self.__tr("..."))
        QToolTip.add(self.fileButton,self.__tr("Select the file via a file selection dialog"))
        QWhatsThis.add(self.fileButton,self.__tr("<b>File/b>\n"
"<p>Select the file to be bookmarked via a file selection dialog.</p>"))
        self.upButton.setText(self.__tr("&Up"))
        self.upButton.setAccel(self.__tr("Alt+U"))
        QToolTip.add(self.upButton,self.__tr("Move up"))
        QWhatsThis.add(self.upButton,self.__tr("<b>Move Up</b>\n"
"<p>Move the selected entry up.</p>"))
        QToolTip.add(self.fileEdit,self.__tr("Enter the filename of the file"))
        QWhatsThis.add(self.fileEdit,self.__tr("<b>File/b>\n"
"<p>Enter the filename of the bookmarked file./p>"))
        self.TextLabel1.setText(self.__tr("&File:"))
        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"))


    def handleAdd(self):
        print "BookmarkedFilesForm.handleAdd(): Not implemented yet"

    def handleDelete(self):
        print "BookmarkedFilesForm.handleDelete(): Not implemented yet"

    def handleDown(self):
        print "BookmarkedFilesForm.handleDown(): Not implemented yet"

    def handleFileSelect(self):
        print "BookmarkedFilesForm.handleFileSelect(): Not implemented yet"

    def handleEntrySelected(self,a0):
        print "BookmarkedFilesForm.handleEntrySelected(int): Not implemented yet"

    def handleUp(self):
        print "BookmarkedFilesForm.handleUp(): Not implemented yet"

    def handleChange(self):
        print "BookmarkedFilesForm.handleChange(): Not implemented yet"

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

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