1 // resource.hh for bbkeys - a pager tool for Blackbox
3 // Copyright (c) 1998-1999 John Kennis, jkennis@chello.nl
5 // this program is free software; you can redistribute it and/or modify
6 // it under the terms of the gnu general public license as published by
7 // the free software foundation; either version 2 of the license, or
8 // (at your option) any later version.
10 // this program is distributed in the hope that it will be useful,
11 // but without any warranty; without even the implied warranty of
12 // merchantability or fitness for a particular purpose. see the
13 // gnu general public license for more details.
15 // you should have received a copy of the gnu general public license
16 // along with this program; if not, write to the free software
17 // foundation, inc., 675 mass ave, cambridge, ma 02139, usa.
19 // (see the included file copying / gpl-2.0)
27 #include "Baseresource.hh"
31 enum {none
=0, border
=1, texture
=2};
32 enum WHICH_BUTTON
{ LEFT_BUTTON
= 1, MIDDLE_BUTTON
, RIGHT_BUTTON
,
33 FOURTH_BUTTON
, FIFTH_BUTTON
};
53 int width0
, width1
, width2
, width3
;
63 bool totalmail_counter
;
80 BTexture focusedTexture
;
87 BTexture texture_pressed
;
90 class Resource
: public BaseResource
{
93 Resource(ToolWindow
*);
100 struct POSITION position
;
101 struct SIZE desktopSize
;
102 struct REPORT report
;
103 struct BBPAGERWIN pagerwin
;
104 struct BBPAGERWIN desktopwin
;
107 int getFocusStyle(void) { return focus_style
; }
108 int getDesktopFocusStyle(void) { return desktop_focus_style
; }
109 WHICH_BUTTON
getWindowMoveButton(void) { return window_move_button
; }
110 WHICH_BUTTON
getDesktopChangeButton(void) { return desktop_change_button
; }
111 WHICH_BUTTON
getWindowRaiseButton(void) { return window_raise_button
; }
112 WHICH_BUTTON
getWindowFocusButton(void) { return window_focus_button
; }
116 virtual void LoadBBToolResource(void);
120 void SizeAndPosition(void);
123 int desktop_focus_style
;
127 WHICH_BUTTON window_move_button
;
128 WHICH_BUTTON desktop_change_button
;
129 WHICH_BUTTON window_raise_button
;
130 WHICH_BUTTON window_focus_button
;
133 #endif /* __RESOURCE_HH */