2006-03-10 00:40:55 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2001-2006 Donald N. Allingham
|
2008-01-06 02:12:05 +05:30
|
|
|
# Copyright (C) 2008 Brian Matherly
|
2008-09-02 01:38:39 +05:30
|
|
|
# Copyright (C) 2008 Gary Burton
|
2006-03-10 00:40:55 +05:30
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
2008-01-22 14:47:46 +05:30
|
|
|
# $Id$
|
2008-05-19 00:54:28 +05:30
|
|
|
#
|
2008-03-22 04:28:35 +05:30
|
|
|
from _GuiOptions import GuiMenuOptions, make_gui_option
|
2008-02-19 01:37:09 +05:30
|
|
|
from _Options import Options, OptionListCollection, OptionList, OptionHandler
|
|
|
|
|
2006-03-10 01:51:32 +05:30
|
|
|
import _Tool as Tool
|
2008-05-19 09:44:11 +05:30
|
|
|
from _PluginDialogs import ReportPluginDialog, ToolPluginDialog
|
2007-11-29 12:02:59 +05:30
|
|
|
import _PluginWindows as PluginWindows
|
2007-11-29 20:32:40 +05:30
|
|
|
|
|
|
|
# This needs to go above Tool and MenuOption as it needs both
|
2008-01-18 11:09:50 +05:30
|
|
|
class MenuToolOptions(GuiMenuOptions,Tool.ToolOptions):
|
2007-11-29 20:32:40 +05:30
|
|
|
"""
|
2009-08-09 22:39:32 +05:30
|
|
|
The MenuToolOptions class implements the ToolOptions
|
2007-11-29 20:32:40 +05:30
|
|
|
functionality in a generic way so that the user does not need to
|
|
|
|
be concerned with the graphical representation of the options.
|
|
|
|
|
|
|
|
The user should inherit the MenuToolOptions class and override the
|
|
|
|
add_menu_options function. The user can add options to the menu
|
|
|
|
and the MenuToolOptions class will worry about setting up the GUI.
|
|
|
|
"""
|
2008-01-16 02:38:32 +05:30
|
|
|
def __init__(self, name, person_id=None, dbstate=None):
|
2008-01-28 10:47:29 +05:30
|
|
|
Tool.ToolOptions.__init__(self, name, person_id)
|
|
|
|
GuiMenuOptions.__init__(self)
|
2007-12-13 11:01:13 +05:30
|
|
|
|
2007-11-29 20:32:40 +05:30
|
|
|
|