Removed titlebar drop shadow code and add plugin to draw text on titlebars.
[wmaker-crm.git] / src / winspector.h
blob2550cafe235584bfdf9f81c7d365d4d964a3efca
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 #ifdef XKB_BUTTON_HINT
64 WMButton *moreChk[9];
65 #else
66 WMButton *moreChk[8];
67 #endif
69 /* 4th page. icon and workspace */
70 WMFrame *iconFrm;
71 WMLabel *iconLbl;
72 WMLabel *fileLbl;
73 WMTextField *fileText;
74 WMButton *alwChk;
76 WMButton *updateIconBtn;
78 WMButton *browseIconBtn;
80 WMFrame *wsFrm;
81 WMPopUpButton *wsP;
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