def createSlots(self): #standart slots DfTable.createSlots(self) #filter starts/finishes QtCore.QObject.connect(self.gui['filter_starts'], QtCore.SIGNAL("clicked()"), self.sFilterStarts) QtCore.QObject.connect(self.gui['filter_finishes'], QtCore.SIGNAL("clicked()"), self.sFilterFinishes) #automatic number and refresh QtCore.QObject.connect(self.gui['auto_number_enable'], QtCore.SIGNAL("stateChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number_enable"], state, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_number_logic'], QtCore.SIGNAL("toggled(bool)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number_logic"], state, self.UpdateGui)) #QtCore.QObject.connect(self.gui['auto_number1'].lineEdit(), QtCore.SIGNAL("returnPressed()"), lambda x=1: self.EditingFinished(x)) QtCore.QObject.connect(self.gui['auto_number1'], QtCore.SIGNAL("valueChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number", 0], state, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_number2'], QtCore.SIGNAL("valueChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number", 1], state, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_number3'], QtCore.SIGNAL("valueChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number", 2], state, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_number4'], QtCore.SIGNAL("valueChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["auto_number", 3], state, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_number_clear'], QtCore.SIGNAL("clicked()"), lambda: uiAccesories.sGuiSetItem("times", ["auto_number"], [0]*NUMBER_OF.AUTO_NUMBER, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_refresh'], QtCore.SIGNAL("valueChanged(int)"), lambda state: (uiAccesories.sGuiSetItem("times", ["auto_refresh"], state, self.UpdateGui), setattr(self, "auto_refresh_cnt", state))) QtCore.QObject.connect(self.gui['auto_www_refresh'], QtCore.SIGNAL("valueChanged(int)"), lambda state: (uiAccesories.sGuiSetItem("times", ["auto_www_refresh"], state, self.UpdateGui), setattr(self, "auto_www_refresh_cnt", state))) QtCore.QObject.connect(self.gui['auto_refresh_clear'], QtCore.SIGNAL("clicked()"), lambda: uiAccesories.sGuiSetItem("times", ["auto_refresh"], 0, self.UpdateGui)) QtCore.QObject.connect(self.gui['auto_www_refresh_clear'], QtCore.SIGNAL("clicked()"), lambda: uiAccesories.sGuiSetItem("times", ["auto_www_refresh"], 0, self.UpdateGui)) QtCore.QObject.connect(self.gui['highlight_enable'], QtCore.SIGNAL("stateChanged(int)"), lambda state: uiAccesories.sGuiSetItem("times", ["highlight_enable"], state, self.UpdateGui)) #export/import table (db format) #to do: #QtCore.QObject.connect(self.gui['times_db_import'], QtCore.SIGNAL("clicked()"), lambda:DfTable.sImport(self)) #QtCore.QObject.connect(self.gui['times_db_export'], QtCore.SIGNAL("clicked()"), lambda:DfTable.sExport(self, DfTable.eDB, True)) #button Recalculate QtCore.QObject.connect(self.gui['civils_to_zeroes'], QtCore.SIGNAL("clicked()"), lambda:self.sCivilsToZeroes()) QtCore.QObject.connect(self.gui['recalculate'], QtCore.SIGNAL("clicked()"), lambda:self.sRecalculate()) #exports QtCore.QObject.connect(self.gui['aWwwExportDirect'], QtCore.SIGNAL("triggered()"), lambda: self.sExportDirect(self.eHTM_EXPORT)) QtCore.QObject.connect(self.gui['aWwwExportLogo'], QtCore.SIGNAL("triggered()"), lambda: self.sExportDirect(self.eHTM_EXPORT_LOGO)) QtCore.QObject.connect(self.gui['aExportResults'], QtCore.SIGNAL("triggered()"), lambda: self.sExportDirect(self.eCSV_EXPORT)) QtCore.QObject.connect(self.gui['aExportResultsDNF'], QtCore.SIGNAL("triggered()"), lambda: self.sExportDirect(self.eCSV_EXPORT_DNF))
def __init__(self): DfTable.__init__(self, "Categories")
def createSlots(self): DfTable.createSlots(self)
def __init__(self): DfTable.__init__(self, "CGroups")
def __init__(self): DfTable.__init__(self, "Users")
def __init__(self): DfTable.__init__(self, "Times")
def __init__(self): DfTable.__init__(self, "Alltags")
def __init__(self): DfTable.__init__(self, "RaceInfo")
def __init__(self): DfTable.__init__(self, "Runs")
def sDeleteAll(self): if DfTable.sDeleteAll(self) == True: tableTimes.deleteAll() dstore.Set("current_run", 0)
def __init__(self): DfTable.__init__(self, "Tags")