24 #ifndef __kpanelapplet_h__
25 #define __kpanelapplet_h__
106 enum Type { Normal = 0, Stretch };
112 enum Action { About = 1, Help = 2, Preferences = 4, ReportBug = 8 };
113 enum Position { pLeft = 0, pRight, pTop, pBottom };
114 enum Alignment { LeftTop = 0, Center, RightBottom };
115 enum Direction {
Up = 0, Down, Left, Right };
127 KPanelApplet(
const TQString& configFile, Type t = Normal,
128 int actions = 0, TQWidget *parent = 0,
const char *name = 0,
188 KSharedConfig::Ptr sharedConfig()
const;
212 virtual void action( Action a );
218 const TQPopupMenu* customMenu()
const;
223 void setPosition( Position p );
227 void setAlignment( Alignment a );
261 void requestFocus(
bool focus);
305 Orientation orientation()
const;
320 virtual void positionChange( Position p );
338 void setCustomMenu(
const TQPopupMenu*);
347 void watchForFocus(TQWidget* widget,
bool watch =
true);
355 void needsFocus(
bool focus);
370 Direction popupDirection();
381 bool eventFilter(TQObject *, TQEvent *);
386 Alignment _alignment;
390 virtual void virtual_hook(
int id,
void* data );
391 class KPanelAppletPrivate;
392 KPanelAppletPrivate *d;