Updating to version 0.20.2
[wmaker-crm.git] / src / winspector.h
blob5cf162f6563537a9329c947311c0a1d0180ae18c
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[8];
61 /* 3rd page. more attributes */
62 WMFrame *moreFrm;
63 WMButton *moreChk[7];
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 WMButton *curRb;
80 WMButton *setRb;
81 WMTextField *wsText;
83 /* 5th page. application wide attributes */
84 WMFrame *appFrm;
85 WMButton *appChk[2];
87 unsigned int done:1;
88 unsigned int destroyed:1;
89 unsigned int choosingIcon:1;
90 } InspectorPanel;
94 void wShowInspectorForWindow(WWindow *wwin);
95 void wDestroyInspectorPanels();
97 #endif