/* * GProFTPD - A GTK+ frontend for the ProFTPD standalone server. * Copyright (C) 2001 - 2006 Magnus Loef (Magnus-swe) * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * */ #include /* Make sure we have enough of these or itll borrow from the next widget-type and fail */ #define NUM_SERVERTAB_ENTRIES 25 #define NUM_SERVERTAB_SPINBUTTONS 13 #define NUM_SERVERTAB_COMBOS 18 #define NUM_USERTAB_ENTRIES 7 #define NUM_USERTAB_SPINBUTTONS 5 #define NUM_USERTAB_CHECKBUTTONS 3 #define NUM_USERTAB_COMBOS 1 typedef struct w { GtkWidget *main_window; GtkWidget *main_vbox; GtkWidget *notebook_vbox1; GtkWidget *notebook_vbox2; GtkWidget *notebook_vbox3; GtkWidget *notebook_vbox4; GtkWidget *notebook_vbox5; GtkWidget *notebook_vbox6; GtkWidget *notebook_vbox7; GtkWidget *gproftpd_version_label; GtkWidget *proftpd_version_label; GtkWidget *status_label; GtkWidget *version_label; /* The server tab's widgets */ GtkWidget *server_treeview; GtkListStore *server_store; GtkWidget *server_settings_vbox; GtkWidget *server_settings_scrolled_window; GtkWidget *server_set_entry[NUM_SERVERTAB_ENTRIES]; GtkWidget *server_set_spinbutton[NUM_SERVERTAB_SPINBUTTONS]; GtkWidget *server_set_combo[NUM_SERVERTAB_COMBOS]; GtkWidget *srv_set_table; /* The user tab's widgets */ GtkWidget *user_treeview; GtkListStore *user_store; GtkWidget *user_settings_vbox; GtkWidget *user_settings_scrolled_window; GtkWidget *user_set_entry[NUM_USERTAB_ENTRIES]; GtkWidget *user_set_spinbutton[NUM_USERTAB_SPINBUTTONS]; GtkWidget *user_set_checkbutton[NUM_USERTAB_CHECKBUTTONS]; GtkWidget *user_set_combo[NUM_USERTAB_COMBOS]; GtkWidget *gen_cert_progressbar; GtkWidget *usr_set_table; /* The add user widgets */ GtkWidget *useradd_username_entry; GtkWidget *useradd_password_entry; GtkWidget *useradd_homedir_entry; // GtkWidget *useradd_upload_checkbutton; // GtkWidget *useradd_uploaddir_entry; GtkWidget *useradd_usercomment_entry; GtkWidget *useradd_shell_combo; GtkWidget *useradd_uploaddir_checkbutton; /* The user tab's directory treeview */ GtkWidget *directory_treeview; GtkListStore *directory_store; /* The delete system user question window */ GtkWidget *del_system_user_question_window; /* The add default configuration question window */ GtkWidget *default_conf_question_window; /* The transfer tabs widgets */ GtkWidget *transfer_textview; GtkWidget *total_bandwidth_entry; GtkWidget *total_incoming_entry; GtkWidget *total_outgoing_entry; GtkWidget *kick_entry; /* The disc tabs widgets */ GtkWidget *disc_treeview; GtkListStore *disc_store; /* The file treeview */ GtkWidget *file_treeview; GtkListStore *file_store; /* The security tabs widgets */ GtkWidget *security_treeview; GtkListStore *security_store; /* The conf tabs textview */ GtkWidget *conf_textview; /* The import windows widgets */ GtkWidget *import_window; GtkWidget *import_treeview; GtkListStore *import_store; GtkWidget *import_home_entry; GtkWidget *import_with_username_checkbutton; /* The shutdown windows widgets */ GtkWidget *shutdown_window; GtkWidget *new_acc_disabled_entry; GtkWidget *existing_users_dc_entry; GtkWidget *real_shutdown_entry; GtkWidget *shutdown_msg_entry; }wid;