No longer need the nwItemAction enum either

This commit is contained in:
Veronica K. B. Olsen
2019-04-28 13:26:54 +02:00
parent d11a01d6a1
commit 880b8905ee
3 changed files with 2 additions and 21 deletions
-19
View File
@@ -50,25 +50,6 @@ class nwItemLayout(Enum):
# END Enum nwItemLayout
class nwItemAction(Enum):
NO_ACTION = 0
ADD_ROOT = 1
ADD_FOLDER = 2
ADD_FILE = 3
MOVE_UP = 4
MOVE_DOWN = 5
MOVE_TO = 6
MOVE_TRASH = 7
SPLIT = 8
MERGE = 9
DELETE = 10
DELETE_ROOT = 11
EMPTY_TRASH = 12
RENAME = 13
# END Enum nwItemAction
class nwDocAction(Enum):
NO_ACTION = 0
+1 -1
View File
@@ -28,7 +28,7 @@ from nw.gui.statusbar import GuiMainStatus
from nw.project.project import NWProject
from nw.project.document import NWDoc
from nw.project.item import NWItem
from nw.enum import nwItemType, nwItemAction
from nw.enum import nwItemType
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -21,7 +21,7 @@ from time import time
from PyQt5.QtGui import QIcon, QPixmap, QColor
from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwItemAction
from nw.enum import nwItemType, nwItemClass, nwItemLayout
from nw.project.item import NWItem
logger = logging.getLogger(__name__)