/* GADMIN-PROFTPD - An easy to use GTK+ frontend for the ProFTPD standalone server.
 * Copyright (C) 2001 - 2008 Magnus Loef <magnus-swe@telia.com> 
 *
 * 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 3 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, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
*/



#include "../config.h"
#include <gtk/gtk.h>
#include "support.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "allocate.h"
#include "widgets.h"
#include "populate_gadmin_proftpd.h"
#include "populate_servers.h"
#include "select_first_server.h"
#include "populate_server_settings.h"
#include "populate_users.h"
#include "select_first_user.h"
#include "populate_user_settings.h"
#include "populate_disc_tab.h"
#include "populate_file_tab.h"
#include "populate_security_tab.h"
#include "populate_conf_tab.h"



void populate_gadmin_proftpd(struct w *widgets)
{
	/* Populate the servers treeview */
	populate_servers(widgets);
	/* Set the first server as selected */
	select_first_server(widgets);

	/* Populate the server settings */
	populate_server_settings(widgets);

	/* Populate the user tab */
	populate_users(widgets);   
	/* Set the first user as selected */
	select_first_user(widgets);

	/* Populate the user settings */
	populate_user_settings(widgets);

	/* Populate the disc tab */
	populate_discs(widgets);

	/* Populate the file tab */
	/* This can take a long time so we let the user do this manually  populate_files(widgets); */

	/* Populate the security tab */
	populate_security(widgets);

	/* Populate the conf tab */
	populate_conf_tab(widgets);
}
