gtk2 sam7fc telemetrie application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.3KB

  1. /***************************************************************************
  2. * Copyright (C) 04/2008 by Olaf Rempel *
  3. * razzor@kopf-tisch.de *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation; version 2 of the License *
  8. * *
  9. * This program is distributed in the hope that it will be useful, *
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  12. * GNU General Public License for more details. *
  13. * *
  14. * You should have received a copy of the GNU General Public License *
  15. * along with this program; if not, write to the *
  16. * Free Software Foundation, Inc., *
  17. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  18. ***************************************************************************/
  19. #include <stdio.h>
  20. #include <gtk/gtk.h>
  21. #include "gui_graph_tab.h"
  22. #include "gui_variable_tab.h"
  23. gint gui_ctrltab_init(GtkNotebook *notebook);
  24. int main(int argc, char *argv[])
  25. {
  26. gtk_init (&argc, &argv);
  27. GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  28. gtk_window_set_title(GTK_WINDOW(window), " gTDC v0.1 ");
  29. gtk_window_set_default_size(GTK_WINDOW(window), 800, 600);
  30. gtk_container_set_border_width(GTK_CONTAINER(window), 10);
  31. g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
  32. g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(gtk_main_quit), NULL);
  33. GtkWidget *notebook = gtk_notebook_new();
  34. gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook), GTK_POS_TOP);
  35. gtk_container_add(GTK_CONTAINER(window), notebook);
  36. gui_ctrltab_init(GTK_NOTEBOOK(notebook));
  37. gui_vartab_init(GTK_NOTEBOOK(notebook));
  38. gui_graphtab_init(GTK_NOTEBOOK(notebook));
  39. gtk_widget_show_all(window);
  40. gtk_main();
  41. return 0;
  42. }