Example #1
0
 def __init__(self):
     icon = None
     text = "File"
     AbstractMenuAction.__init__(self, icon, text)
     #---
     self.path = ""
     self.position = (0, 0)
Example #2
0
 def __init__(self):
     icon = None
     text = "File"
     AbstractMenuAction.__init__(self, icon, text)
     #---
     self.path = ""
     self.position = (0, 0)
Example #3
0
 def __init__(self):
     icon = None
     text = "Close Project"
     AbstractMenuAction.__init__(self, icon, text)
     self.setToolTip("Close the active project.")
     self.setStatusTip("Close the active project.")
     #---
     self.path = "File"
     self.position = (0, 200)
     self.is_menu = False
Example #4
0
 def __init__(self):
     icon = None
     text = "Close Project"
     AbstractMenuAction.__init__(self, icon, text)
     self.setToolTip("Close the active project.")
     self.setStatusTip("Close the active project.")
     #---
     self.path = "File"
     self.position = (0, 200)
     self.is_menu = False
Example #5
0
 def __init__(self, dock):
     icon = None
     text = dock.windowTitle()
     AbstractMenuAction.__init__(self, icon, text)
     # self.setToolTip("Close the active project.")
     # self.setStatusTip("Close the active project.")
     # ---
     self.path = "Window"
     self.category = 0
     self.priority = 0
     self.dock = dock
Example #6
0
 def __init__(self):
     icon = IconManager.application_icon("floppy.png")
     text = "Save Project"
     shortcut = "Ctrl+S"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Save the active project.")
     self.setStatusTip("Save the active project.")
     #---
     self.path = "File"
     self.position = (0, 300)
     self.toolbar_position = (0, 200)
Example #7
0
 def __init__(self):
     icon = IconManager.application_icon("open.png")
     text = "Open Project..."
     shortcut = "Ctrl+O"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Open an existing project.")
     self.setStatusTip("Open an existing project.")
     #---
     self.path = "File"
     self.position = (0, 100)
     self.toolbar_position = (0, 100)
Example #8
0
 def __init__(self):
     icon = IconManager.application_icon("new.png")
     text = "New Project..."
     shortcut = "Ctrl+N"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Create a new project.")
     self.setStatusTip("Create a new project.")
     #---
     self.path = "File"
     self.position = (0, 0)
     self.toolbar_position = (0, 0)
Example #9
0
 def __init__(self):
     icon = IconManager.application_icon("floppy.png")
     text = "Save Project"
     shortcut = "Ctrl+S"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Save the active project.")
     self.setStatusTip("Save the active project.")
     #---
     self.path = "File"
     self.position = (0, 300)
     self.toolbar_position = (0, 200)
Example #10
0
 def __init__(self):
     icon = IconManager.application_icon("open.png")
     text = "Open Project..."
     shortcut = "Ctrl+O"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Open an existing project.")
     self.setStatusTip("Open an existing project.")
     #---
     self.path = "File"
     self.position = (0, 100)
     self.toolbar_position = (0, 100)
Example #11
0
 def __init__(self):
     icon = IconManager.application_icon("new.png")
     text = "New Project..."
     shortcut = "Ctrl+N"
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     self.setToolTip("Create a new project.")
     self.setStatusTip("Create a new project.")
     #---
     self.path = "File"
     self.position = (0, 0)
     self.toolbar_position = (0, 0)
Example #12
0
 def __init__(self, dock):
     icon = None
     text = dock.windowTitle()
     AbstractMenuAction.__init__(self, icon, text)
     #self.setToolTip("Close the active project.")
     #self.setStatusTip("Close the active project.")
     #---
     self.path = "Window"
     self.category = 0
     self.priority = 0
     self.dock = dock
Example #13
0
 def __init__(self, icon, text, widget, shortcut=None):
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     #---
     self.widget = widget
     
Example #14
0
 def __init__(self, icon, text, widget, shortcut=None):
     AbstractMenuAction.__init__(self, icon, text, shortcut)
     #---
     self.widget = widget