Conflicts: openair1/PHY/INIT/lte_init.c openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation.c openair1/PHY/LTE_TRANSPORT/dci.c openair1/PHY/LTE_TRANSPORT/dci_tools.c openair1/PHY/LTE_TRANSPORT/dlsch_coding.c openair1/PHY/LTE_TRANSPORT/edci.c openair1/PHY/LTE_TRANSPORT/if4_tools.c openair1/PHY/LTE_TRANSPORT/prach.c openair1/PHY/LTE_TRANSPORT/print_stats.c openair1/PHY/LTE_TRANSPORT/pucch.c openair1/PHY/LTE_TRANSPORT/transport_eNB.h openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c openair1/PHY/LTE_UE_TRANSPORT/transport_proto_ue.h openair1/PHY/impl_defs_lte.h openair1/SCHED/fapi_l1.c openair1/SCHED/phy_procedures_lte_eNb.c openair2/COMMON/rrc_messages_types.h openair2/ENB_APP/enb_config.c openair2/ENB_APP/enb_paramdef.h openair2/LAYER2/MAC/config.c openair2/LAYER2/MAC/defs.h openair2/LAYER2/MAC/eNB_scheduler.c openair2/LAYER2/MAC/eNB_scheduler_RA.c openair2/LAYER2/MAC/eNB_scheduler_bch.c openair2/LAYER2/MAC/eNB_scheduler_dlsch.c openair2/LAYER2/MAC/eNB_scheduler_primitives.c openair2/LAYER2/MAC/eNB_scheduler_ulsch.c openair2/LAYER2/MAC/pre_processor.c openair2/LAYER2/MAC/rar_tools.c openair2/LAYER2/MAC/ue_procedures.c openair2/PHY_INTERFACE/IF_Module.c openair2/RRC/LITE/rrc_common.c openair2/RRC/LTE/L2_interface_ue.c openair2/RRC/LTE/MESSAGES/asn1_msg.c openair2/RRC/LTE/rrc_eNB.c targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp targets/RT/USER/lte-enb.c targets/RT/USER/lte-ru.c
41 lines
892 B
C
Executable File
41 lines
892 B
C
Executable File
#include "gui.h"
|
|
|
|
int main(void)
|
|
{
|
|
gui *g;
|
|
widget *w, *c1, *c2, *l, *plot, *tl;
|
|
int tlcol;
|
|
|
|
g = gui_init();
|
|
|
|
c1 = new_container(g, VERTICAL);
|
|
c2 = new_container(g, HORIZONTAL);
|
|
|
|
l = new_label(g, "this is a good label");
|
|
widget_add_child(g, c2, l, 0);
|
|
l = new_label(g, "this is another good label");
|
|
widget_add_child(g, c2, l, -1);
|
|
|
|
l = new_label(g, "OH! WHAT A LABEL!");
|
|
widget_add_child(g, c1, l, -1);
|
|
|
|
widget_add_child(g, c1, c2, 0);
|
|
|
|
plot = new_xy_plot(g, 100, 100, "xy plot test", 30);
|
|
widget_add_child(g, c1, plot, -1);
|
|
|
|
tlcol = new_color(g, "#ddf");
|
|
tl = new_textlist(g, 300, 10, tlcol);
|
|
widget_add_child(g, c1, tl, -1);
|
|
|
|
textlist_add(g, tl, "hello", -1, FOREGROUND_COLOR);
|
|
textlist_add(g, tl, "world", -1, FOREGROUND_COLOR);
|
|
|
|
w = new_toplevel_window(g, 500, 400, "test window");
|
|
widget_add_child(g, w, c1, 0);
|
|
|
|
gui_loop(g);
|
|
|
|
return 0;
|
|
}
|