/** **/
/*************************************************************************************/
-#ifndef _ArcBall_h
-#define _ArcBall_h
+#pragma once
// 8<--Snip here if you have your own math types/funcs-->8
void init_arcBall(ArcBall_t * a, GLfloat NewWidth, GLfloat NewHeight);
void arcmouseClick(void);
void arcmouseDrag(void);
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef DRAW_H
-#define DRAW_H
+#pragma once
+
#include "smyrnadefs.h"
#include <gtk/gtkgl.h>
#include <xdot/xdot.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GLEXPOSE_H
-#define GLEXPOSE_H
+#pragma once
#include "viewport.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GLMOTION_H
-#define GLMOTION_H
+#pragma once
#include "viewport.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
/*
this code is used to set up a opngl window and set
some basic features (panning zooming and rotating)
Viewport.h provides a higher level control such as drawing primitives
*/
-#ifndef GL_TEMPLATE_H
-#define GL_TEMPLATE_H
#ifdef _WIN32
#include <windows.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
-#ifndef GLUTRENDER_H
-#define GLUTRENDER_H
-
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef APPMOUSE_H
-#define APPMOUSE_H
+#pragma once
+
#include "smyrnadefs.h"
extern void appmouse_left_click_down(ViewInfo* v,int x,int y);
extern void appmouse_move(ViewInfo* v,int x,int y);
extern void appmouse_key_release(ViewInfo* v);
extern void appmouse_key_press(ViewInfo* v,int key);
-
-
-
-#endif
*
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef CALLBACKS_H
-#define CALLBACKS_H 1
+
+#pragma once
#include <gtk/gtk.h>
#include "toolboxcallbacks.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef DATALISTCALLBACKS_H
-#define DATALISTCALLBACKS_H
-
+#pragma once
#include "gui.h"
#include "tvnodes.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef FRMOBJECTUI_H
-#define FRMOBJECTUI_H
+#pragma once
#include "smyrnadefs.h"
extern attr_list* load_attr_list(Agraph_t* g);
extern void showAttrsWidget(topview* t);
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GLCOMPUI_H
-#define GLCOMPUI_H
+#pragma once
+
#include "smyrnadefs.h"
#ifdef __cplusplus
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GUI_H
-#define GUI_H
+#pragma once
#include "smyrnadefs.h"
#include <gtk/gtk.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef MENUCALLBACKS_H
-#define MENUCALLBACKS_H
+#pragma once
#include "gui.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TOOLBOXCALLBACKS_H
-#define TOOLBOXCALLBACKS_H
+#pragma once
+
#include <gtk/gtk.h>
#include "gui.h"
#if defined(_WIN32)
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TOPVIEWSETTINGS_H
-#define TOPVIEWSETTINGS_H
+#pragma once
#include "smyrnadefs.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef GVPRPIPE_H
-#define GVPRPIPE_H
+#pragma once
#include <cgraph/cgraph.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef HIER_H
-#define HIER_H
+#pragma once
#include <topfish/hierarchy.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef HOTKEYMAP_H
-#define HOTKEYMAP_H
+#pragma once
+
#include "smyrnadefs.h"
#define B_LSHIFT 65505
extern int get_mode(ViewInfo* v);
extern int get_key_action(ViewInfo* v,int key);
-
-
-
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef MATERIALS_H
-#define MATERIALS_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
} /* end extern "C" */
#endif
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef POLYTESS_H
-#define POLYTESS_H
+#pragma once
+
#include "smyrnadefs.h"
#ifdef __cplusplus
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef SELECTIONFUNCS_H
-#define SELECTIONFUNCS_H
+#pragma once
#include "draw.h"
#include <GL/gl.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
*
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef SMYRNA_UTILS_H
-#define SMYRNA_UTILS_H
+
+#pragma once
#include "smyrnadefs.h"
#include <cgraph/cgraph.h>
extern int point_within_sphere_with_coords(float x0, float y0, float z0,
float r, float x, float y,
float z);
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef SMYRNADEFS_H
-#define SMYRNADEFS_H
+#pragma once
#ifdef _WIN32
#ifndef NO_WIN_HEADER
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
*
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TOPFISHEYEVIEW_H
-#define TOPFISHEYEVIEW_H
+
+#pragma once
#include "smyrnadefs.h"
#include "hier.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TOPVIEWDEFS_H
-#define TOPVIEWDEFS_H
+#pragma once
+
#include "smyrnadefs.h"
#include "gui.h"
#include "tvnodes.h"
#include <glcomp/glcompset.h>
-
-
-
-
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TOPVIEWFUNCS_H
-#define TOPVIEWFUNCS_H
+#pragma once
#include "smyrnadefs.h"
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef TVNODES_H
-#define TVNODES_H
+#pragma once
#include "gui.h"
#define MAX_NODE_PER_PAGE 100
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#pragma once
+
//view data structure
-#ifndef VIEWPORT_H
-#define VIEWPORT_H
#include "smyrnadefs.h"
#include <gtk/gtk.h>
#include <xdot/xdot.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif
* Contributors: Details at https://graphviz.org
*************************************************************************/
-#ifndef VIEWPORTCAMERA_H
-#define VIEWPORTCAMERA_H
+#pragma once
#include "smyrnadefs.h"
#include <glcomp/glcompset.h>
#ifdef __cplusplus
} /* end extern "C" */
#endif
-#endif