34 lines
981 B
C
34 lines
981 B
C
#include <stdio.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "gui_variable_tab.h"
|
|
|
|
gint gui_ctrltab_init(GtkNotebook *notebook);
|
|
gint gui_graphtab_init(GtkNotebook *notebook);
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
gtk_init (&argc, &argv);
|
|
|
|
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
|
gtk_window_set_title(GTK_WINDOW(window), " gTDC v0.1 ");
|
|
gtk_window_set_default_size(GTK_WINDOW(window), 800, 600);
|
|
gtk_container_set_border_width(GTK_CONTAINER(window), 10);
|
|
|
|
g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
|
|
g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(gtk_main_quit), NULL);
|
|
|
|
GtkWidget *notebook = gtk_notebook_new();
|
|
gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook), GTK_POS_TOP);
|
|
gtk_container_add(GTK_CONTAINER(window), notebook);
|
|
|
|
gui_ctrltab_init(GTK_NOTEBOOK(notebook));
|
|
gui_vartab_init(GTK_NOTEBOOK(notebook));
|
|
gui_graphtab_init(GTK_NOTEBOOK(notebook));
|
|
|
|
gtk_widget_show_all(window);
|
|
gtk_main();
|
|
|
|
return 0;
|
|
}
|