1
# -*- coding: utf-8 -*-
2
# Copyright © 2005 Lateef Alabi-Oki
4
# This file is part of Scribes.
6
# Scribes is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# Scribes 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 Scribes; if not, write to the Free Software
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22
This module documents a class that implements the plug-in protocol to
23
show the remote dialog.
25
@author: Lateef Alabi-Oki
26
@organization: The Scribes Project
27
@copyright: Copyright © 2005 Lateef Alabi-Oki
28
@license: GNU GPLv2 or Later
29
@contact: <mystilleef@gmail.com>
32
name = "Remote Dialog Plugin"
33
authors = ["Lateef Alabi-Oki <mystilleef@gmail.com>"]
36
class_name = "RemoteDialogPlugin"
37
short_description = "Show the remote dialog."
38
long_description = """This plug-in shows the remote dialog."""
40
class RemoteDialogPlugin(object):
42
This class initializes a plug-in that shows the remote dialog.
45
def __init__(self, editor):
47
Initialize the plug-in object.
49
@param self: Reference to the RemoteDialogPlugin instance.
50
@type self: A RemoteDialogPlugin object.
52
@param editor: Reference to the text editor.
53
@type editor: An Editor object.
55
self.__editor = editor
60
Initialize the RemoteDialogPlugin instance.
62
@param self: Reference to the RemoteDialogPlugin instance.
63
@type self: An RemoteDialogPlugin object.
65
from RemoteDialog.Trigger import RemoteDialogTrigger
66
self.__trigger = RemoteDialogTrigger(self.__editor)
71
Destroy the RemoteDialogPlugin instance.
73
@param self: Reference to the RemoteDialogPlugin instance.
74
@type self: An RemoteDialogPlugin object.
76
self.__trigger.emit("destroy")