⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 application.h

📁 开源的电子海图程序
💻 H
字号:
/* GHelm - Nautical Navigation Software * Copyright (C) 2004 Jon Michaelchuck * * This application is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this software; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA. */#ifndef NAVIGATOR_H_#define NAVIGATOR_H_#include "chart.h"#include "configuration.h"#include "drawingconfiguration.h"#include "encbrowser.h"#include "glchartpreviewrenderer.h"#include "glchartrenderer.h"#include "rendererbook.h"#include "waypointlist.h"#include "s57.h"#include <gtkmm.h>#include <gtkglmm.h>#include <GL/gl.h>#include <GL/glu.h>#include <boost/filesystem/operations.hpp>#include <boost/filesystem/fstream.hpp>#include <boost/filesystem/path.hpp>#define APPNAME "GHelm"/** * Main application class */class Application : public Gtk::Window{    public:        Application();        ~Application();        int Init(boost::filesystem::path &confdir);    private:        // initialization helpers        int LoadConfiguration(boost::filesystem::path &confdir);        int FirstTime(boost::filesystem::path &confdir);        // callbacks         void SetInputMode(input_mode_e mode)                                { renderer_book.SetInputMode(mode); }        void BrowseCatalog();        Chart *LoadChartHelper(boost::filesystem::path &filepath,                               Glib::ustring description);        void CloseChart(Chart *chart);        void CloseCurrentChart();        void AddRenderer() { renderer_book.AddRenderer(); }        void RemoveRenderer();        void SelectChart(boost::filesystem::path &filepath);        void ZoomFit();        void GetRendererConfiguration();        void About();        void Quit();        // interface creation        void CreateTopUI();        void CreateBottomUI();        // custom signal handlers        void on_pointer_longlat_updated(double x, double y);        void on_add_waypoint(waypoint_t *waypoint);        // Top section of our UI        Gtk::Widget *menubar;        Gtk::Widget *toolbar;        std::map<Chart *, Gtk::UIManager::ui_merge_id> chart_to_merge_id;        Glib::RefPtr<Gtk::ActionGroup> action_group;        Glib::RefPtr<Gtk::UIManager> ui_manager;         RendererBook renderer_book;        // Bottom section of our UI        GLChartPreviewRenderer preview_renderer;        Gtk::HBox bottom_hbox;        Gtk::Label lat_label;        Gtk::Label long_label;        Gtk::VBox longlat_preview_vbox;                // other        ENCBrowser enc_browser;          DrawingConfiguration drawing_configuration;        Configuration configuration;        std::vector<Chart *> charts;        WaypointList waypoint_list;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -