/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Grig: Gtk+ user interface for the Hamradio Control Libraries. Copyright (C) 2001-2006 Alexandru Csete. Authors: Alexandru Csete Comments, questions and bugreports should be submitted via http://sourceforge.net/projects/groundstation/ More details can be found at the project home page: http://groundstation.sourceforge.net/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, visit http://www.fsf.org/ */ /** \file rig-gui.c * \ingroup gui * \brief Master GUI object. * * This file encapsulates the various GUI parts into one big composite widget. */ #include #include "rig-gui.h" #include "rig-gui-buttons.h" #include "rig-gui-ctrl2.h" #include "rig-gui-smeter.h" #include "rig-gui-lcd.h" #include "rig-gui-levels.h" #include "rig-gui-vfo.h" #include "grig-menubar.h" /** \brief Create rig control widgets. * \return A mega-widget containing the rig controls. * * This function creates the rig control mega-widget by calling the create * function of each sub-object and packing the into a main container. * */ GtkWidget * rig_gui_create () { GtkWidget *hbox; /* the main container */ GtkWidget *vbox; GtkWidget *lcdbox; /* create the main container */ hbox = gtk_hbox_new (FALSE, 5); gtk_box_pack_start (GTK_BOX (hbox), rig_gui_buttons_create (), FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), rig_gui_smeter_create (), FALSE, FALSE, 0); lcdbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (lcdbox), rig_gui_lcd_create (), FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (lcdbox), rig_gui_vfo_create (), FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), lcdbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), rig_gui_ctrl2_create (), FALSE, FALSE, 0); /* ceate main vertical box */ vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), grig_menubar_create (), FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), gtk_hseparator_new (), FALSE, FALSE, 0); /* gtk_box_pack_start (GTK_BOX (vbox), rig_gui_levels_create (), */ /* FALSE, FALSE, 5); */ return vbox; }