Changed initial workspace specification in window attributes panel.
[wmaker-crm.git] / src / winspector.h
blob7c36ea6bad302f4ad94887619e1d81741f1e13a1
1 /* winspector.h - window attribute inspector header file
2 *
3 * Window Maker window manager
4 *
5 * Copyright (c) 1997, 1998 Alfredo K. Kojima
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 * USA.
23 #ifndef WINSPECTOR_H_
24 #define WINSPECTOR_H_
26 #include "window.h"
28 typedef struct InspectorPanel {
29 struct InspectorPanel *nextPtr;
31 WWindow *frame;
33 WWindow *inspected; /* the window that's being inspected */
35 WMWindow *win;
37 Window parent;
39 /* common stuff */
40 WMButton *revertBtn;
41 WMButton *applyBtn;
42 WMButton *saveBtn;
44 WMPopUpButton *pagePopUp;
46 /* first page. general stuff */
48 WMFrame *specFrm;
49 WMButton *instRb;
50 WMButton *clsRb;
51 WMButton *bothRb;
52 WMButton *defaultRb;
54 WMLabel *specLbl;
56 /* second page. attributes */
58 WMFrame *attrFrm;
59 WMButton *attrChk[10];
61 /* 3rd page. more attributes */
62 WMFrame *moreFrm;
63 WMButton *moreChk[8];
65 WMLabel *moreLbl;
67 /* 4th page. icon and workspace */
68 WMFrame *iconFrm;
69 WMLabel *iconLbl;
70 WMLabel *fileLbl;
71 WMTextField *fileText;
72 WMButton *alwChk;
74 WMButton *updateIconBtn;
76 WMButton *browseIconBtn;
78 WMFrame *wsFrm;
79 WMPopUpButton *wsP;
81 /* 5th page. application wide attributes */
82 WMFrame *appFrm;
83 WMButton *appChk[2];
85 unsigned int done:1;
86 unsigned int destroyed:1;
87 unsigned int choosingIcon:1;
88 } InspectorPanel;
92 void wShowInspectorForWindow(WWindow *wwin);
93 void wDestroyInspectorPanels();
95 #endif