Esempio n. 1
0
 def is_valid_functionality(functionality):
     return functionality not in (MenuActionTypes.Add(),
                                  MenuActionTypes.CloneFrom())
Esempio n. 2
0
 def _get_menu_items():
     return [MenuActionTypes.Add(), MenuActionTypes.CloneFrom()]
Esempio n. 3
0
 def _get_menu_items():
     return [MenuActionTypes.Add(),
             MenuActionTypes.AddStandardTest(),
             MenuActionTypes.Import()]
Esempio n. 4
0
 def _get_menu_items(self):
     return [MenuActionTypes.Add()]
Esempio n. 5
0
import qtawesome as qta

from ATE.spyder.widgets.actions_on.model.Constants import MenuActionTypes

ACTIONS = {
    MenuActionTypes.Edit(): (qta.icon('mdi.lead-pencil',
                                      color='orange'), "Edit"),
    MenuActionTypes.Add(): (qta.icon('mdi.plus', color='orange'), "New"),
    MenuActionTypes.AddFile(): (qta.icon('mdi.file-plus',
                                         color='orange'), "File"),
    MenuActionTypes.AddFolder(): (qta.icon('mdi.folder-plus',
                                           color='orange'), "Folder"),
    MenuActionTypes.View(): (qta.icon('mdi.eye-outline',
                                      color='orange'), "View"),
    MenuActionTypes.Delete(): (qta.icon('mdi.minus',
                                        color='orange'), "Delete"),
    MenuActionTypes.Import(): (qta.icon('mdi.application-import',
                                        color='orange'), "Import"),
    MenuActionTypes.ImportFile(): (qta.icon('mdi.file-import',
                                            color='orange'), "File"),
    MenuActionTypes.ImportFolder(): (qta.icon('mdi.folder-download',
                                              color='orange'), "Folder"),
    MenuActionTypes.Activate(): (qta.icon('mdi.check',
                                          color='orange'), "Select Hardware"),
    MenuActionTypes.CloneTo(): (qta.icon('mdi.application-export',
                                         color='orange'), "Clone to ..."),
    MenuActionTypes.CloneFrom(): (qta.icon('mdi.application-import',
                                           color='orange'), "Clone from ..."),
    MenuActionTypes.Trace(): (qta.icon('mdi.share-variant',
                                       color='orange'), "Trace usage"),
    MenuActionTypes.AddStandardTest():