35 gtk_init(
nullptr,
nullptr);
36 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
37 gtk_window_set_title(GTK_WINDOW(window),
"ns-3 Default attributes.");
38 gtk_window_set_default_size(GTK_WINDOW(window), 600, 600);
41 GtkTreeStore* model = gtk_tree_store_new(
COL_LAST, G_TYPE_POINTER);
46 scroll = gtk_scrolled_window_new(
nullptr,
nullptr);
47 gtk_container_add(GTK_CONTAINER(scroll), view);
49 GtkWidget* vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
50 gtk_box_pack_start(GTK_BOX(vbox), scroll, TRUE, TRUE, 0);
51 gtk_box_pack_end(GTK_BOX(vbox), gtk_separator_new(GTK_ORIENTATION_HORIZONTAL), FALSE, FALSE, 0);
52 GtkWidget* hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5);
53 gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
54 GtkWidget* save = gtk_button_new_with_label(
"Save");
56 gtk_box_pack_end(GTK_BOX(hbox), save, FALSE, FALSE, 0);
57 GtkWidget* load = gtk_button_new_with_label(
"Load");
59 gtk_box_pack_end(GTK_BOX(hbox), load, FALSE, FALSE, 0);
60 GtkWidget* exit = gtk_button_new_with_label(
"Run Simulation");
62 gtk_box_pack_end(GTK_BOX(hbox), exit, FALSE, FALSE, 0);
64 gtk_container_add(GTK_CONTAINER(window), vbox);
66 gtk_widget_show_all(window);
72 gtk_widget_destroy(window);
82 gtk_init(
nullptr,
nullptr);
84 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
85 gtk_window_set_title(GTK_WINDOW(window),
"ns-3 Object attributes.");
86 gtk_window_set_default_size(GTK_WINDOW(window), 600, 600);
90 GtkTreeStore* model = gtk_tree_store_new(
COL_LAST, G_TYPE_POINTER);
95 scroll = gtk_scrolled_window_new(
nullptr,
nullptr);
96 gtk_container_add(GTK_CONTAINER(scroll), view);
98 GtkWidget* vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
99 gtk_box_pack_start(GTK_BOX(vbox), scroll, TRUE, TRUE, 0);
100 gtk_box_pack_end(GTK_BOX(vbox), gtk_separator_new(GTK_ORIENTATION_HORIZONTAL), FALSE, FALSE, 0);
101 GtkWidget* hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5);
102 gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
103 GtkWidget* save = gtk_button_new_with_label(
"Save");
105 gtk_box_pack_end(GTK_BOX(hbox), save, FALSE, FALSE, 0);
106 GtkWidget* load = gtk_button_new_with_label(
"Load");
108 gtk_box_pack_end(GTK_BOX(hbox), load, FALSE, FALSE, 0);
109 GtkWidget* exit = gtk_button_new_with_label(
"Run Simulation");
111 gtk_box_pack_end(GTK_BOX(hbox), exit, FALSE, FALSE, 0);
113 gtk_container_add(GTK_CONTAINER(window), vbox);
115 gtk_widget_show_all(window);
121 gtk_widget_destroy(window);