| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include "smyrnadefs.h" |
| 14 |
#include <gtk/gtk.h> |
| 15 |
#include <gdk/gdkkeysyms.h> |
| 16 |
#include <gtk/gtkgl.h> |
| 17 |
#include <glade/glade.h> |
| 18 |
#include "callbacks.h" |
| 19 |
#include <cgraph/cgraph.h> |
| 20 |
|
| 21 |
extern GladeXML *xml; //global libglade vars |
| 22 |
|
| 23 |
void load_graph_properties(void); //load from graph to gui |
| 24 |
|
| 25 |
//GTK helper functions |
| 26 |
//void Color_Widget_bg (int r, int g, int b, GtkWidget *widget); //change background color |
| 27 |
void Color_Widget_bg(char *colorstring, GtkWidget * widget); |
| 28 |
/*generic warning pop up*/ |
| 29 |
void show_gui_warning(char *str); |
| 30 |
/** generic open file dialog |
| 31 |
* |
| 32 |
* \param [out] filename Selected filename on success. Caller should \p g_free |
| 33 |
* this. |
| 34 |
* \return Non-zero on success. |
| 35 |
*/ |
| 36 |
int openfiledlg(char **filename); |
| 37 |
/** generic save file dialog |
| 38 |
* |
| 39 |
* \param [out] filename Selected filename on success. Caller should \p g_free |
| 40 |
* this. |
| 41 |
* \return Non-zero on success. |
| 42 |
*/ |
| 43 |
int savefiledlg(char **filename); |
| 44 |
void append_textview(GtkTextView * textv, const char *s, size_t bytes); |