Debian Codegraph @

src/af/xap/gtk/xap_UnixDlg_PluginManager.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 2001-2002 AbiSource, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #ifndef XAP_UNIXDIALOG_PLUGIN_MANAGER_H
21 #define XAP_UNIXDIALOG_PLUGIN_MANAGER_H
22
23 #include <gtk/gtk.h>
24
25 #include "xap_App.h"
26 #include "xap_Dlg_PluginManager.h"
27
28 class XAP_Frame;
29
30 class XAP_UnixDialog_PluginManager : public XAP_Dialog_PluginManager
31 {
32 public:
33 XAP_UnixDialog_PluginManager(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
34 virtual ~XAP_UnixDialog_PluginManager(void);
35
36 virtual void runModal(XAP_Frame * pFrame);
37
38 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id);
39
40 protected:
41
42 GtkWidget * _constructWindow ();
43
44 private:
45
46 void event_DeactivateAll ();
47 void event_Deactivate ();
48 void event_Load ();
49
50 void _updatePluginList ();
51 void _selectFirstEntry ();
52
53 static void s_deactivate_clicked (GtkWidget * w,
54 XAP_UnixDialog_PluginManager * dlg);
55
56 static void s_deactivate_all_clicked (GtkWidget * w,
57 XAP_UnixDialog_PluginManager * dlg);
58
59 static void s_load_clicked (GtkWidget * w,
60 XAP_UnixDialog_PluginManager * dlg);
61
62 static void s_list_clicked(GtkTreeSelection *selection,
63 XAP_UnixDialog_PluginManager * dlg);
64
65 void _refresh ();
66
67 GtkWidget * m_windowMain;
68 GtkWidget * m_list;
69 GtkWidget * m_name;
70 GtkWidget * m_author;
71 GtkWidget * m_version;
72 GtkWidget * m_desc;
73
74 XAP_Frame * m_pFrame;
75 };
76
77 #endif /* PLUGIN_MANAGER_H */