| 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_ENCODING_H |
| 21 |
#define XAP_UNIXDIALOG_ENCODING_H |
| 22 |
|
| 23 |
#include "ut_types.h" |
| 24 |
#include "ut_xml.h" |
| 25 |
#include "ut_assert.h" |
| 26 |
#include "ut_debugmsg.h" |
| 27 |
|
| 28 |
#include "xap_UnixDialogHelper.h" |
| 29 |
#include "xap_Dialog.h" |
| 30 |
#include "ut_Encoding.h" |
| 31 |
#include "xap_Dlg_Encoding.h" |
| 32 |
|
| 33 |
class XAP_Frame; |
| 34 |
|
| 35 |
class XAP_UnixDialog_Encoding : public XAP_Dialog_Encoding |
| 36 |
{ |
| 37 |
public: |
| 38 |
XAP_UnixDialog_Encoding(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); |
| 39 |
virtual ~XAP_UnixDialog_Encoding(void); |
| 40 |
|
| 41 |
virtual void runModal(XAP_Frame * pFrame); |
| 42 |
static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); |
| 43 |
|
| 44 |
private: |
| 45 |
|
| 46 |
void event_Ok (void); |
| 47 |
void event_Cancel (void); |
| 48 |
|
| 49 |
static void s_encoding_dblclicked(GtkTreeView *treeview, |
| 50 |
GtkTreePath *arg1, |
| 51 |
GtkTreeViewColumn *arg2, |
| 52 |
XAP_UnixDialog_Encoding * me); |
| 53 |
|
| 54 |
GtkWidget * _constructWindow(void); |
| 55 |
void _populateWindowData(void); |
| 56 |
|
| 57 |
GtkWidget * m_windowMain; |
| 58 |
GtkWidget * m_listEncodings; |
| 59 |
}; |
| 60 |
#endif /* XAP_UNIXDIALOG_ENCODING_H */ |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|