📄 rendererbook.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 RENDERERBOOK_H_#define RENDERERBOOK_H_#include <iostream>#include <stdlib.h>#include <gtkmm.h>#include <gtkglmm.h>#include <GL/gl.h>#include <GL/glu.h>#include "chart.h"#include "configuration.h"#include "drawingconfiguration.h"#include "glchartrenderer.h"#include "waypointlist.h"class RendererBook : public Gtk::Notebook, public Gtk::GL::Widget{ public: RendererBook(); ~RendererBook(); int Init(Configuration *conf); void SetInputMode(input_mode_e mode); // chart manipulation int LoadChart(Chart *chart, Gtk::Notebook_Helpers::PageList::iterator &it); void CloseChart(Chart *chart); // renderer manipulation void AddRenderer(); // renderer info void GetRendererConfiguration( Gtk::Notebook_Helpers::PageList::iterator &it); void PrintGLAttribute(std::ostringstream &strstr, const char* attrib_str, int attrib, bool is_boolean); std::string PrintGLSettings(); // custom signal handlers void on_changed(feature_type_e type, int index, bool drawn); // custom signals sigc::signal<void, waypoint_t *> signal_add_waypoint; sigc::signal<void, double, double> signal_pointer_longlat_updated; sigc::signal<void, Chart *> signal_load_chart; sigc::signal<void, Chart *> signal_switched; sigc::signal<void> signal_unload_chart; sigc::signal<void, double, double, double, double> signal_set_view_rect; // public data Glib::RefPtr<Gdk::GL::Config> glconfig; Glib::RefPtr<Gdk::GL::Context> shared_context; private: // custom signal handlers void on_switch_page(GtkNotebookPage* page, guint page_num); Configuration *configuration;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -