| 1 |
|
/** |
| 2 |
|
Copyright 2002 Cyril Picard |
| 3 |
|
|
| 4 |
|
This file is part of the GEDCOMViewer tool |
| 5 |
|
(developed within the Genealogy Free Software Tools project). |
| 6 |
|
|
| 7 |
|
The GEDCOMViewer tool is free software; you can redistribute it and/or modify |
| 8 |
|
it under the terms of the GNU General Public License as published by |
| 9 |
|
the Free Software Foundation; either version 2 of the License, or |
| 10 |
|
(at your option) any later version. |
| 11 |
|
|
| 12 |
|
The GEDCOMViewer tool 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 |
|
|
| 17 |
|
You should have received a copy of the GNU General Public License |
| 18 |
|
along with the GEDCOMViewer tool ; if not, write to the Free Software |
| 19 |
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
|
|
| 21 |
|
**/ |
| 22 |
#include "BakeryGateway/App.hh" |
#include "BakeryGateway/App.hh" |
| 23 |
|
|
| 24 |
BakeryGateway::App::App(void) : |
BakeryGateway::App::App(void) : |
| 35 |
} |
} |
| 36 |
|
|
| 37 |
void BakeryGateway::App::init(void) |
void BakeryGateway::App::init(void) |
| 38 |
{ |
{ |
| 39 |
|
type_vecStrings vecAuthors; |
| 40 |
|
vecAuthors.push_back("Cyril PICARD <cpcp@free.fr>"); |
| 41 |
|
set_about_information("GEDCOMViewer 1.0", vecAuthors, _("Copyright (c) 2002 by Cyril PICARD\nReleased under the GNU General Public License"), _("Copyright (c) 2002 by Cyril PICARD\nReleased under the GNU General Public License\nA GEDCOM files viewer\n\nhttp://www.freesoftware.fsf.org/ghosts\nghosts-users@mail.freesoftware.fsf.org")); |
| 42 |
|
|
| 43 |
Bakery::App_WithDoc::init(); |
Bakery::App_WithDoc::init(); |
| 44 |
|
|
| 45 |
set_contents(_view); |
set_contents(_view); |
| 46 |
return; |
return; |
| 47 |
} |
} |
| 54 |
type_vecGnome_UI_Info menu_browse; |
type_vecGnome_UI_Info menu_browse; |
| 55 |
menu_browse.push_back(Gnome::UI::Item(_("List"), slot(&_view, &BakeryGateway::View::on_menu_ListBrowser), _("List browser"))); |
menu_browse.push_back(Gnome::UI::Item(_("List"), slot(&_view, &BakeryGateway::View::on_menu_ListBrowser), _("List browser"))); |
| 56 |
|
|
| 57 |
menu_browse.push_back(Gnome::UI::Item(_("Tree"), slot(&_view, &BakeryGateway::View::on_menu_TreeBrowser), _("Tree browser"))); |
menu_browse.push_back(Gnome::UI::Item(_("Ascendant tree (current individu)"), slot(&_view, &BakeryGateway::View::on_menu_TreeBrowser), _("Tree browser"))); |
| 58 |
|
|
| 59 |
m_menu_UI_Infos.push_back(Gnome::UI::Menu(_("_Browse"), menu_browse) ); |
m_menu_UI_Infos.push_back(Gnome::UI::Menu(_("_Browse"), menu_browse) ); |
| 60 |
|
|
| 61 |
|
|
| 62 |
|
type_vecGnome_UI_Info menu_data; |
| 63 |
|
menu_data.push_back(Gnome::UI::Item(_("Transmission header"), slot(&_view, &BakeryGateway::View::on_menu_DataHeader), _("Transmission header"))); |
| 64 |
|
|
| 65 |
|
m_menu_UI_Infos.push_back(Gnome::UI::Menu(_("_Data"), menu_data) ); |
| 66 |
|
|
| 67 |
init_menus_help(); |
init_menus_help(); |
| 68 |
create_menus(m_menu_UI_Infos); |
create_menus(m_menu_UI_Infos); |
| 69 |
install_menu_hints(); |
install_menu_hints(); |