You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.0 KiB
64 lines
2.0 KiB
/***************************************************************************
|
|
sidebarextension.h
|
|
-------------------
|
|
begin : Sun July 20 16:00:00 CEST 2003
|
|
copyright : (C) 2003 Joseph Wenninger
|
|
email : jowenn@kde.org
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
#ifndef SIDEBAREXTENSION_H
|
|
#define SIDEBAREXTENSION_H
|
|
|
|
#include <kpanelextension.h>
|
|
#include <kurl.h>
|
|
#include <tdeparts/browserextension.h>
|
|
|
|
class TQHBoxLayout;
|
|
class TQVBox;
|
|
|
|
class SidebarExtension : public KPanelExtension
|
|
{
|
|
TQ_OBJECT
|
|
|
|
public:
|
|
SidebarExtension( const TQString& configFile,
|
|
Type t = Normal,
|
|
int actions = 0,
|
|
TQWidget *parent = 0, const char *name = 0 );
|
|
|
|
virtual ~SidebarExtension();
|
|
|
|
TQSize sizeHint( Position, TQSize maxSize ) const;
|
|
Position preferedPosition() const;
|
|
|
|
virtual void positionChange( Position position );
|
|
|
|
protected:
|
|
virtual void about();
|
|
virtual void preferences();
|
|
virtual bool eventFilter( TQObject *o, TQEvent *e );
|
|
protected slots:
|
|
void openURLRequest( const KURL &, const KParts::URLArgs &);
|
|
void needLayoutUpdate(bool);
|
|
|
|
private:
|
|
int m_currentWidth;
|
|
int m_x;
|
|
TQFrame *m_resizeHandle;
|
|
bool m_resizing;
|
|
int m_expandedSize;
|
|
TQHBoxLayout *m_layout;
|
|
TQVBox *m_sbWrapper;
|
|
};
|
|
|
|
#endif
|
|
|