📄 qt_widget_toolbar2.h
字号:
// ============================================================================//// Copyright (c) 1997-2000 The CGAL Consortium// This software and related documentation are part of the Computational// Geometry Algorithms Library (CGAL).// This software and documentation are provided "as-is" and without warranty// of any kind. In no event shall the CGAL Consortium be liable for any// damage of any kind. //// Every use of CGAL requires a license. //// Academic research and teaching license// - For academic research and teaching purposes, permission to use and copy// the software and its documentation is hereby granted free of charge,// provided that it is not a component of a commercial product, and this// notice appears in all copies of the software and related documentation. //// Commercial licenses// - Please check the CGAL web site http://www.cgal.org/index2.html for // availability.//// The CGAL Consortium consists of Utrecht University (The Netherlands),// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),// and Tel-Aviv University (Israel).//// ----------------------------------------------------------------------//// file : demo/Qt_widget/Max_k-gon/Qt_widget_toolbar.h// package : Qt_widget// author(s) : Ursu Radu// release : CGAL-2.4// release_date : 2002, May 16//// coordinator : Laurent Rineau//// email : contact@cgal.org// www : http://www.cgal.org//// ======================================================================#ifndef CGAL_QT_WIDGET_TOOLBAR_H#define CGAL_QT_WIDGET_TOOLBAR_H#include "cgal_types2.h"// TODO: check if some of those includes shouldn't be in the .C file#include <CGAL/IO/Qt_widget.h>#include <CGAL/IO/Qt_widget_get_simple_polygon.h>#include <qobject.h>#include <qtoolbutton.h>#include <qtoolbar.h>#include <qbuttongroup.h>#include <qmainwindow.h>typedef CGAL::Quotient<CGAL::MP_Float> Cd;typedef CGAL::Cartesian<Cd> RP;class Tools_toolbar : public QToolBar{ Q_OBJECTpublic: Tools_toolbar(CGAL::Qt_widget *w, QMainWindow *mw, std::list<Cgal_Polygon> *l1); ~Tools_toolbar(){};signals: void new_object(CGAL::Object);private: QToolButton *but[9]; QButtonGroup *button_group; CGAL::Qt_widget *widget; int nr_of_buttons; CGAL::Qt_widget_get_polygon<Cgal_Polygon> polygonbut;};//end class#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -