1
# -*- coding: utf-8 -*-
4
Copyright (C) 2006-2008 Adolfo González Blázquez <code@infinicode.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2
9
of the License, or (at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
If you find any bugs or have any suggestions email: code@infinicode.org
23
class PyrenamerMenuCB:
25
def __init__(self, main):
28
def on_menu_undo_activate(self, widget):
29
self.main.undo_manager.undo()
30
self.main.dir_reload_current()
31
self.main.menu_undo.set_sensitive(False)
32
self.main.menu_redo.set_sensitive(True)
34
def on_menu_redo_activate(self, widget):
35
self.main.undo_manager.redo()
36
self.main.dir_reload_current()
37
self.main.menu_undo.set_sensitive(True)
38
self.main.menu_redo.set_sensitive(False)
40
def on_menu_refresh_activate(self, widget):
41
self.main.file_browser.create_new()
42
self.main.file_browser.set_active_dir(self.main.active_dir)
44
def on_menu_patterns_activate(self, widget):
45
self.main.notebook.set_current_page(0)
47
def on_menu_substitutions_activate(self, widget):
48
self.main.notebook.set_current_page(1)
50
def on_menu_insert_activate(self, widget):
51
self.main.notebook.set_current_page(2)
53
def on_menu_manual_activate(self, widget):
54
self.main.notebook.set_current_page(3)
56
def on_menu_images_activate(self, widget):
57
self.main.notebook.set_current_page(4)
59
def on_menu_music_activate(self, widget):
60
self.main.notebook.set_current_page(5)
62
def on_menu_show_options_activate(self, widget):
63
self.main.options_panel_state(widget.get_active())
b'\\ No newline at end of file'