Skip to content

Commit

Permalink
Delete the selection tool
Browse files Browse the repository at this point in the history
and not fix #54
  • Loading branch information
maoschanz committed Jul 29, 2019
1 parent dc66eaa commit 37cb2d8
Show file tree
Hide file tree
Showing 9 changed files with 316 additions and 724 deletions.
1 change: 0 additions & 1 deletion src/drawing.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<file>tools/ui/tool_pencil.ui</file>
<file>tools/ui/tool_polygon.ui</file>
<file>tools/ui/tool_rectangle.ui</file>
<file>tools/ui/tool_select.ui</file>
<file>tools/ui/tool_text.ui</file>

<file>tools/ui/tool_crop.ui</file>
Expand Down
2 changes: 0 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ drawing_sources = [
'tools/classic_tools/tool_rectangle.py',
'tools/classic_tools/tool_text.py',

'tools/selection_tools/tool_select.py',

'tools/selection_tools/abstract_select.py',
'tools/selection_tools/rect_select.py',
'tools/selection_tools/free_select.py',
Expand Down
1 change: 1 addition & 0 deletions src/minimap.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, window, minimap_btn, **kwargs):
box = builder.get_object('minimap_box')

self.zoom_scale = builder.get_object('zoom_scale')
self.zoom_scale.add_mark(100.0, Gtk.PositionType.TOP, None)
self.zoom_scale.connect('value-changed', self.update_zoom_level)

self.minimap_area = builder.get_object('minimap_area')
Expand Down
10 changes: 4 additions & 6 deletions src/tools/selection_tools/abstract_select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tool_select.py
# abstract_select.py

from gi.repository import Gtk, Gdk, GdkPixbuf
import cairo
Expand All @@ -23,11 +23,9 @@ def __init__(self, tool_id, label, icon_name, window, **kwargs):
self.operation_type = None # 'op-define'

# Special bottom panel
builder = Gtk.Builder.new_from_resource( \
'/com/github/maoschanz/drawing/tools/ui/tool_select.ui')
path = '/com/github/maoschanz/drawing/ui/selection.ui'
builder = Gtk.Builder.new_from_resource(path)
self.bottom_panel = builder.get_object('bottom-panel')
actions_menu = builder.get_object('actions-menu')
builder.get_object('actions_btn').set_menu_model(actions_menu)
self.import_box_narrow = builder.get_object('import_box_narrow')
self.import_box_long = builder.get_object('import_box_long')
self.minimap_label = builder.get_object('minimap_label')
Expand All @@ -49,7 +47,7 @@ def get_edition_status(self):
return label

def get_options_model(self):
path = '/com/github/maoschanz/drawing/tools/ui/tool_select.ui' # XXX
path = '/com/github/maoschanz/drawing/ui/selection.ui'
builder = Gtk.Builder.new_from_resource(path)
return builder.get_object('options-menu')

Expand Down
Loading

0 comments on commit 37cb2d8

Please sign in to comment.