2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* 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, see <http://www.gnu.org/licenses/>.
20
/******************************************************************************
22
This file is a part of the cairo-dock program,
23
released under the terms of the GNU General Public License.
25
Written by Fabrice Rey (for any bug report, please mail me to fabounet@users.berlios.de)
27
******************************************************************************/
30
#include "applet-config.h"
31
#include "applet-decorator-comics.h"
32
#include "applet-decorator-modern.h"
33
#include "applet-decorator-3Dplane.h"
34
#include "applet-decorator-tooltip.h"
35
#include "applet-decorator-curly.h"
36
#include "applet-renderer-text.h"
37
#include "applet-struct.h"
38
#include "applet-init.h"
40
CD_APPLET_PRE_INIT_BEGIN (N_("dialog rendering"),
42
CAIRO_DOCK_CATEGORY_THEME,
43
N_("This plug-in provides some dialog decorators for dialog bubbles."),
44
"Fabrice Rey (Fabounet)")
45
//\_______________ On definit notre interface.
46
//pInterface->reloadModule = reload;
47
pInterface->reset_config = CD_APPLET_RESET_CONFIG_FUNC;
48
pInterface->reset_data = CD_APPLET_RESET_DATA_FUNC;
49
pInterface->read_conf_file = CD_APPLET_READ_CONFIG_FUNC;
50
pInterface->initModule = CD_APPLET_INIT_FUNC;
51
pInterface->stopModule = CD_APPLET_STOP_FUNC;
53
/*//\_______________ On enregistre les decorateurs (on le fait maintenant au cas ou un dialogue serait affiche pendant le chargement initial).
54
cd_decorator_register_comics ();
55
cd_decorator_register_modern ();
56
cd_decorator_register_3Dplane ();
57
cd_decorator_register_tooltip (); // By ChAnGFu*
58
cd_decorator_register_curly ();*/
60
//\_______________ On enregistre les moteurs de rendu (on le fait maintenant au cas ou un dialogue serait cree avec pendant le chargement initial).
61
rendering_register_text_dialog_renderer ();
63
CD_APPLET_ATTACH_TO_INTERNAL_MODULE ("Dialogs");
64
CD_APPLET_PRE_INIT_END
68
//\_______________ On enregistre les decorateurs.
69
cd_decorator_register_comics ();
70
cd_decorator_register_modern ();
71
cd_decorator_register_3Dplane ();
72
cd_decorator_register_tooltip (); // By ChAnGFu
73
cd_decorator_register_curly ();
75
/*if (! cairo_dock_is_loading ()) // plug-in active a la main (en-dehors du chargement du theme).
76
cairo_dock_update_dialog_decorator_list_for_gui ();*/
81
//\_______________ On enregistre les decorateurs.
82
cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_COMICS_NAME);
83
cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_MODERN_NAME);
84
cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_3DPLANE_NAME);
85
cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_TOOLTIP_NAME);
86
cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_CURLY_NAME);
88
cairo_dock_update_dialog_decorator_list_for_gui ();
92
/*CD_APPLET_RELOAD_BEGIN
93
if (CD_APPLET_MY_CONFIG_CHANGED)