diff --git a/data/key-mapper.glade b/data/key-mapper.glade index 5f206f17..4355139b 100644 --- a/data/key-mapper.glade +++ b/data/key-mapper.glade @@ -261,53 +261,32 @@ document-save - 450 + -1 False Key Mapper + 350 mouse - + True False + vertical - + True False - vertical + 15 + 10 - + + 50 True False - 10 - 10 - - - True - False - Device - 13 - 0 - - - False - True - 0 - - - - - True - False - - - - True - True - 1 - - + Device + 13 + 0 False @@ -316,218 +295,15 @@ - + True False - - - False - True - 1 - - - - - True - False - 10 - vertical - 10 - - - True - False - 10 - - - gtk-apply - 80 - True - True - True - Presets need to be saved before they can be applied - True - - - - False - True - 0 - - - - - Save - 80 - True - True - True - save-icon - - - - False - True - 1 - - - - - New - 80 - True - True - True - new-icon - - - - False - True - 2 - - - - - gtk-delete - 80 - True - True - True - True - - - - False - True - 4 - - - - - False - True - 0 - - - - - True - False - 10 - - - 50 - True - False - preset - 13 - 0 - - - False - True - 0 - - - - - 200 - True - False - - - - True - True - 1 - - - - - False - True - 1 - - - - - True - False - 10 - - - True - False - Rename - 13 - 0 - - - False - True - 0 - - - - - True - True - - - True - True - 1 - - - - - False - True - 2 - - - - - True - False - - - True - False - Automatically load this preset - 0 - - - True - True - 0 - - - - - True - True - - - - False - True - 1 - - - - - True - True - 3 - - + True True - 2 + 1 @@ -538,88 +314,18 @@ True To give your keys back their original mapping. end - 10 - 10 - 0 gtk-redo-icon-2 False False - 3 - - - - - True - False - - - False - True - 4 - - - - - True - False - - - True - False - 10 - 10 - 10 - 10 - 6 - 6 - vertical - 2 - - - True - True - 0 - - - - - True - False - - - False - True - 1 - - - - - True - False - This is the keycode you just pressed, and that you see in the mappings to the right. - 10 - 10 - 4 - - - False - True - 2 - - - - - False - True - 5 + 2 - True + False True 0 @@ -636,68 +342,288 @@ - - 250 + True False - vertical True False + vertical - - 50 + True False - Click on a cell below and hit a key on your device. If you have your preset active, the reported keycodes may be wrong. - 5 - 5 - Key - - - False - True - 0 - - - - - True - False - a-z, A-Z, 0-9 -"KP_0" - "KP_9" -"Shift_L", "Shift_R" -"Alt_L", "Alt_R" -"Control_R" - 5 - 5 - Mapping + 15 + vertical + 10 + + + True + False + 10 + + + gtk-apply + 80 + True + True + True + Presets need to be saved before they can be applied + True + + + + False + True + 0 + + + + + Save + 80 + True + True + True + save-icon + + + + False + True + 1 + + + + + New + 80 + True + True + True + new-icon + + + + False + True + 2 + + + + + gtk-delete + 80 + True + True + True + True + + + + False + True + 4 + + + + + False + True + 0 + + + + + True + False + 10 + + + 50 + True + False + Preset + 13 + 0 + + + False + True + 0 + + + + + 200 + True + False + + + + True + True + 1 + + + + + False + True + 1 + + + + + True + False + 10 + + + True + False + Rename + 13 + 0 + + + False + True + 0 + + + + + True + True + + + True + True + 1 + + + + + False + True + 2 + + + + + True + False + + + True + False + Automatically load this preset + 0 + + + True + True + 0 + + + + + True + True + + + + False + True + 1 + + + + + False + True + 3 + + True True - 1 + 2 - - 50 + True False False True - 2 + 4 + + + + + True + False + + + True + False + 10 + 10 + 10 + 10 + 6 + 6 + vertical + 2 + + + True + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + False + This is the keycode you just pressed, and that you see in the mappings to the right. + 10 + 10 + 4 + + + False + True + 2 + + + + + False + True + 5 - - False + True True 0 @@ -714,21 +640,106 @@ - + + 250 True - True + False + vertical - + True False - + + 50 True False - none + Click on a cell below and hit a key on your device. If you have your preset active, the reported keycodes may be wrong. + 5 + 5 + Key + + + False + True + 0 + + + + + True + False + a-z, A-Z, 0-9 +"KP_0" - "KP_9" +"Shift_L", "Shift_R" +"Alt_L", "Alt_R" +"Control_R" + 5 + 5 + Mapping + + + True + True + 1 + + + + + 50 + True + False + + + False + True + 2 + + + + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + True + + + True + False + + + True + False + none + + + + True + True + 2 + diff --git a/keymapper/gtk/window.py b/keymapper/gtk/window.py index ff481ed7..80273147 100755 --- a/keymapper/gtk/window.py +++ b/keymapper/gtk/window.py @@ -102,7 +102,7 @@ class Window: window = self.get('window') window.show() # hide everything until stuff is populated - self.get('wrapper').set_opacity(0) + self.get('vertical-wrapper').set_opacity(0) self.window = window # if any of the next steps take a bit to complete, have the window @@ -116,7 +116,7 @@ class Window: self.timeout = GLib.timeout_add(100, self.check_add_row) # now show the proper finished content of the window - self.get('wrapper').set_opacity(1) + self.get('vertical-wrapper').set_opacity(1) def get(self, name): """Get a widget from the window""" @@ -293,6 +293,7 @@ class Window: device = self.selected_device preset = self.selected_preset # TODO test call this and then check config + # TODO new screenshot config.set_autoload_preset(device, preset, active) config.save_config()