Aller à la documentation de ce fichier.00001
00002
00003 licenceEn="""
00004 file checkBoxDialog.py
00005 this file is part of the project scolasync
00006
00007 Copyright (C) 2010 Georges Khaznadar <georgesk@ofset.org>
00008
00009 This program is free software: you can redistribute it and/or modify
00010 it under the terms of the GNU General Public License as published by
00011 the Free Software Foundation, either version3 of the License, or
00012 (at your option) any later version.
00013
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017 GNU General Public License for more details.
00018
00019 You should have received a copy of the GNU General Public License
00020 along with this program. If not, see <http://www.gnu.org/licenses/>.
00021 """
00022
00023 from PyQt4.QtCore import *
00024 from PyQt4.QtGui import *
00025
00026 import Ui_checkBoxDialog
00027
00028
00029
00030
00031
00032 class CheckBoxDialog(QDialog):
00033
00034
00035
00036
00037
00038 def __init__(self,parent = None):
00039 QDialog.__init__(self,parent)
00040 self.mainWindow=parent
00041 self.ui=Ui_checkBoxDialog.Ui_checkBoxDialog()
00042 self.ui.setupUi(self)
00043 QObject.connect(self.ui.allButton, SIGNAL("clicked()"), self.all)
00044 QObject.connect(self.ui.ToggleButton, SIGNAL("clicked()"), self.toggle)
00045 QObject.connect(self.ui.NoneButton, SIGNAL("clicked()"), self.none)
00046 QObject.connect(self.ui.escButton, SIGNAL("clicked()"), self.esc)
00047
00048
00049
00050
00051
00052 def all(self):
00053 self.mainWindow.emit(SIGNAL("checkAll()"))
00054 self.close()
00055
00056
00057
00058
00059
00060 def toggle(self):
00061 self.mainWindow.emit(SIGNAL("checkToggle()"))
00062 self.close()
00063
00064
00065
00066
00067
00068 def none(self):
00069 self.mainWindow.emit(SIGNAL("checkNone()"))
00070 self.close()
00071
00072
00073
00074
00075
00076 def esc(self):
00077 self.close()
00078
00079