subpanel.h 1.61 KB
Newer Older
Monty Montgomery's avatar
 
Monty Montgomery committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/*
 *
 *  postfish
 *    
 *      Copyright (C) 2002-2004 Monty
 *
 *  Postfish 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, or (at your option)
 *  any later version.
 *   
 *  Postfish 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 Postfish; see the file COPYING.  If not, write to the
 *  Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * 
 */

typedef struct{
  GtkWidget *mainpanel_windowbutton;
26
  GtkWidget **mainpanel_activebutton;
Monty Montgomery's avatar
 
Monty Montgomery committed
27
  GtkWidget *subpanel_windowbutton;
28
  GtkWidget **subpanel_activebutton;
Monty Montgomery's avatar
 
Monty Montgomery committed
29
  GtkWidget *subpanel_toplevel;
Monty Montgomery's avatar
 
Monty Montgomery committed
30
  GtkWidget *subpanel_topframe;
Monty Montgomery's avatar
 
Monty Montgomery committed
31 32
  GtkWidget *subpanel_box;
  sig_atomic_t *activevar;
33 34 35

  int active_button_count; /* silliness around the rotating non-alt-shortcut */
  int active_button_start; /* silliness around the rotating non-alt-shortcut */
36
  int rotation[10];
37

Monty Montgomery's avatar
 
Monty Montgomery committed
38
  sig_atomic_t *mappedvar;
Monty Montgomery's avatar
 
Monty Montgomery committed
39 40 41 42 43 44

  postfish_mainpanel *mainpanel;
} subpanel_generic;

extern subpanel_generic *subpanel_create(postfish_mainpanel *mp,
					 GtkWidget *windowbutton,
45
					 GtkWidget **activebutton,
Monty Montgomery's avatar
 
Monty Montgomery committed
46
					 sig_atomic_t *activevar,
Monty Montgomery's avatar
 
Monty Montgomery committed
47
					 sig_atomic_t *mappedvar,
48 49 50
					 char *prompt,char **shortcut,
					 int start,int num);

Monty Montgomery's avatar
 
Monty Montgomery committed
51
extern void subpanel_show_all_but_toplevel(subpanel_generic *s);