def __init__(self, parent_win): GUILibraries.QDialog.__init__(self, parent_win) self.Fixity = SharedApp.SharedApp.App self.setWindowTitle('About Fixity') self.parent_win = parent_win self.setWindowModality(GUILibraries.Qt.WindowModal) self.parent_win.setWindowTitle('About Fixity') singleMessage.version = self.Fixity.Configuration.getApplicationVersion() self.setWindowIcon(GUILibraries.QIcon(self.Fixity.Configuration.getLogoSignSmall())) self.AboutFixityLayout =GUILibraries.QVBoxLayout() self.widget = GUILibraries.QWidget(self) self.pgroup = GUILibraries.QGroupBox() self.detail_layout = GUILibraries.QVBoxLayout() self.description_btn = GUILibraries.QPushButton('Description') self.author_and_license_btn = GUILibraries.QPushButton('Author and License') self.contact_btn = GUILibraries.QPushButton('Contact') self.close_btn = GUILibraries.QPushButton('Close') self.about_layout =GUILibraries.QGroupBox() self.heading = GUILibraries.QTextEdit() self.content = GUILibraries.QTextEdit() self.heading.setReadOnly(True) self.content.setReadOnly(True) self.main = GUILibraries.QHBoxLayout() self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win): super(ChangeNameGUI, self).__init__(parent_win) self.Fixity = SharedApp.SharedApp.App self.parent_win = parent_win self.setWindowModality(GUILibraries.Qt.WindowModal) self.setWindowTitle('Change Project Name') self.parent_win.setWindowTitle('Change Project Name') self.setWindowIcon( GUILibraries.QIcon(r'' + (str( (self.Fixity.Configuration.getLogoSignSmall()))))) self.change_name_layout = GUILibraries.QVBoxLayout() self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win): GUILibraries.QDialog.__init__(self, parent_win) self.Fixity = SharedApp.SharedApp.App self.parent_win = parent_win self.setWindowTitle('Configure Sender Email') self.setWindowModality(GUILibraries.Qt.WindowModal) self.parent_win.setWindowTitle('Configure Sender Email') self.email_notification = EmailNotification.EmailNotification() self.setWindowIcon( GUILibraries.QIcon( str(self.Fixity.Configuration.getLogoSignSmall()))) self.email_pref_layout = GUILibraries.QVBoxLayout() self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win): GUILibraries.QDialog.__init__(self, parent_win) self.Fixity = SharedApp.SharedApp.App self.parent_win = parent_win self.setWindowModality(GUILibraries.Qt.WindowModal) self.parent_win.setWindowTitle('Filter File') self.setWindowTitle('Filter File') self.setWindowIcon( GUILibraries.QIcon(r'' + (str( (self.Fixity.Configuration.getLogoSignSmall()))))) self.filter_files_layout = GUILibraries.QVBoxLayout() self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win): GUILibraries.QDialog.__init__(self, parent_win) self.parent_win = parent_win self.setWindowModality(GUILibraries.Qt.WindowModal) self.Fixity = SharedApp.SharedApp.App self.setWindowTitle('Checksum Manager') self.parent_win.setWindowTitle('Checksum Manager') self.setWindowIcon( GUILibraries.QIcon(r'' + (str( (self.Fixity.Configuration.getLogoSignSmall()))))) self.change_algorithm_layout = GUILibraries.QVBoxLayout() self.is_method_changed = False self.is_all_files_confirmed = False self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win, orignal_path_text='', change_path_text='', code=''): GUILibraries.QDialog.__init__(self, parent_win) self.Fixity = SharedApp.SharedApp.App self.parent_win = parent_win self.path_change_win = GUILibraries.QDialog(self.parent_win) self.path_change_win.setWindowModality(GUILibraries.Qt.WindowModal) self.path_change_win.setWindowTitle('Change Directory') self.setWindowIcon( GUILibraries.QIcon(r'' + (str( (self.Fixity.Configuration.getLogoSignSmall()))))) self.path_change_layout = GUILibraries.QVBoxLayout() self.orignal_path_text = orignal_path_text self.change_path_text = change_path_text self.code = code self.notification = GUILibraries.NotificationGUI.NotificationGUI()
def __init__(self, parent_win): GUILibraries.QDialog.__init__( self, parent_win, GUILibraries.Qt.CustomizeWindowHint | GUILibraries.Qt.WindowTitleHint | GUILibraries.Qt.WindowMinMaxButtonsHint) self.setWindowTitle('Scanner Console') #GUILibraries.Qt.CustomizeWindowHint | GUILibraries.Qt.WindowTitleHint | GUILibraries.Qt.WindowMinMaxButtonsHint self.setWindowModality(GUILibraries.Qt.WindowModal) #self.setWindowModality(GUILibraries.Qt.CustomizeWindowHint | GUILibraries.Qt.WindowTitleHint | GUILibraries.Qt.WindowMinMaxButtonsHint) self.Fixity = SharedApp.SharedApp.App self.setWindowIcon( GUILibraries.QIcon(self.Fixity.Configuration.getLogoSignSmall())) self.lay = GUILibraries.QVBoxLayout(self) self.te = GUILibraries.QTextEdit(self) self.te.setReadOnly(True) self.lay.addWidget(self.te) self.setLayout(self.lay) if self.Fixity.Configuration.getOsType() == 'linux': sys.stdout = Printer(self.te) self.resize(800, 300) self.show() self.AddText('Started Scanning ..... !') self._want_to_close = False
def __init__(self): super(ProjectGUI, self).__init__() self.should_update = True self.is_path_changed = False self.Fixity = SharedApp.SharedApp.App self.unsaved = False self.about_fixity_gui = AboutFixityGUI.AboutFixityGUI(self) self.apply_filters_gui = ApplyFiltersGUI.ApplyFiltersGUI(self) self.change_algorithm_gui = ChangeAlgorithmGUI.ChangeAlgorithmGUI(self) self.change_name_gui = ChangeNameGUI.ChangeNameGUI(self) self.email_notification_gui = EmailNotificationGUI.EmailNotificationGUI( self) self.import_project_gui = ImportProjGUI.ImportProjectGUI(self) self.path_change_gui = PathChangeGUI.PathChangeGUI(self) self.notification = GUILibraries.NotificationGUI.NotificationGUI() self.setWindowIcon( GUILibraries.QIcon(self.Fixity.Configuration.getLogoSignSmall())) self.setWindowTitle(self.Fixity.Configuration.getApplicationName() + ' ' + self.Fixity.Configuration.getApplicationVersion()) # create Menu self.createMenu() # Set Short Cuts self.setShortCuts() #Set All Menu self.setAllMenus() #Set Trigger self.setTriggersForMenu() #create Project Listing Options self.createProjectListingOption() #create Project scheduling Option self.creatSchedulingOptions() #create Directories and email Listing view self.createDirectories() if len(self.Fixity.ProjectsList) > 0: for project in self.Fixity.ProjectsList: GUILibraries.QListWidgetItem( str(self.Fixity.ProjectsList[project].getTitle()), self.projects) self.projects.setCurrentRow(0) try: self.old = self.projects.itemAt(0, 0) self.update(self.old) self.old.setSelected(True) except: pass self.unsaved = False self.toggler((self.projects.count() == 0)) self.show() self.unsaved = False if self.Fixity.Configuration.getOsType() == 'Windows': # set Fixed Size(Width, Height) self.setFixedSize(900, 318) else: # set Fixed Size(Width, Height) self.setFixedSize(1000, 300)