00001 /* AbiSource Application Framework 00002 * Copyright (C) 2001-2002 AbiSource, Inc. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 #ifndef XAP_UNIXDIALOG_PLUGIN_MANAGER_H 00021 #define XAP_UNIXDIALOG_PLUGIN_MANAGER_H 00022 00023 #include <gtk/gtk.h> 00024 00025 #include "xap_App.h" 00026 #include "xap_Dlg_PluginManager.h" 00027 00028 class XAP_Frame; 00029 00030 class XAP_UnixDialog_PluginManager : public XAP_Dialog_PluginManager 00031 { 00032 public: 00033 XAP_UnixDialog_PluginManager(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00034 virtual ~XAP_UnixDialog_PluginManager(void); 00035 00036 virtual void runModal(XAP_Frame * pFrame); 00037 00038 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); 00039 00040 protected: 00041 00042 GtkWidget * _constructWindow (); 00043 00044 private: 00045 00046 void event_DeactivateAll (); 00047 void event_Deactivate (); 00048 void event_Load (); 00049 00050 void _updatePluginList (); 00051 void _selectFirstEntry (); 00052 00053 static void s_deactivate_clicked (GtkWidget * w, 00054 XAP_UnixDialog_PluginManager * dlg); 00055 00056 static void s_deactivate_all_clicked (GtkWidget * w, 00057 XAP_UnixDialog_PluginManager * dlg); 00058 00059 static void s_load_clicked (GtkWidget * w, 00060 XAP_UnixDialog_PluginManager * dlg); 00061 00062 static void s_list_clicked(GtkTreeSelection *selection, 00063 XAP_UnixDialog_PluginManager * dlg); 00064 00065 void _refresh (); 00066 00067 GtkWidget * m_windowMain; 00068 GtkWidget * m_list; 00069 GtkWidget * m_name; 00070 GtkWidget * m_author; 00071 GtkWidget * m_version; 00072 GtkWidget * m_desc; 00073 00074 XAP_Frame * m_pFrame; 00075 }; 00076 00077 #endif /* PLUGIN_MANAGER_H */