def AddVolumeButtonClicked(self): encfsgui_helper.print_debug("Start %s" % inspect.stack()[0][3]) addvolumewindow = CVolumeWindow() addvolumewindow.show() addvolumewindow.setRunMode(1) # add addvolumewindow.setFocus() addvolumewindow.activateWindow() addvolumewindow.exec_() self.RefreshVolumes() self.PopulateVolumeMenu() return
def EditVolumeButtonClicked(self): encfsgui_helper.print_debug("Start %s" % inspect.stack()[0][3]) self.checkFilenameEncodings() if encfsgui_globals.g_CurrentlySelected != "": editvolumewindow = CVolumeWindow() editvolumewindow.show() editvolumewindow.setRunMode(2) # edit editvolumewindow.origvolumename = encfsgui_globals.g_CurrentlySelected editvolumewindow.PopulateFields(encfsgui_globals.g_CurrentlySelected) editvolumewindow.setFocus() editvolumewindow.activateWindow() editvolumewindow.exec_() encfsgui_globals.appconfig.getVolumes() self.RefreshVolumes() return
def CreateVolumeButtonClicked(self): encfsgui_helper.print_debug("Start %s" % inspect.stack()[0][3]) self.checkFilenameEncodings() createvolumewindow = CVolumeWindow() createvolumewindow.show() createvolumewindow.setRunMode(0) # create createvolumewindow.setFocus() createvolumewindow.activateWindow() createvolumewindow.exec_() self.RefreshVolumes() self.PopulateVolumeMenu() return