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

📄 encbrowser.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 ENCBROWSER_H_#define ENCBROWSER_H_#include <vector>#include <map>#include <iostream>#include <string>#include <gtkmm.h>#include <boost/filesystem/operations.hpp>#include <boost/filesystem/fstream.hpp>#include <boost/filesystem/path.hpp>#include <boost/filesystem/convenience.hpp>#include "configuration.h"#include "s57.h"/** * Tree model column record for the ENCBrowser */class ModelColumns : public Gtk::TreeModel::ColumnRecord{    public:        Gtk::TreeModelColumn<Glib::ustring> filename;        Gtk::TreeModelColumn<Glib::ustring> description;        Gtk::TreeModelColumn<float> nlat;        Gtk::TreeModelColumn<float> slat;        Gtk::TreeModelColumn<float> elon;        Gtk::TreeModelColumn<float> wlon;        /**         * Constructor         */        ModelColumns() { add(filename); add(description); add(nlat);                          add(slat); add(elon); add(wlon); }};/** * Gtk widget for browsing an ENC_ROOT directory */class ENCBrowser : public Gtk::Dialog{    public:        ENCBrowser();        ~ENCBrowser();        int Init(Configuration &configuration);        // retrieving model data        boost::filesystem::path GetSelectedFilepath();        Glib::ustring GetSelectedDescription();        float GetSelectedDimension(int which);        // custom signals        sigc::signal<void> signal_progress;    private:        ModelColumns model_columns;        Gtk::TreeView tree_view;        Glib::RefPtr<Gtk::ListStore> list_store;        boost::filesystem::path catalog_path;};#endif

⌨️ 快捷键说明

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