diff options
author | Slávek Banko <[email protected]> | 2016-03-21 20:35:05 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-03-21 20:35:05 +0100 |
commit | 066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch) | |
tree | 4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /sidebar/linkview.h | |
download | tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip |
Initial import of baghira 0.8
Diffstat (limited to 'sidebar/linkview.h')
-rw-r--r-- | sidebar/linkview.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sidebar/linkview.h b/sidebar/linkview.h new file mode 100644 index 0000000..ebe54ef --- /dev/null +++ b/sidebar/linkview.h @@ -0,0 +1,46 @@ + +#ifndef LINKVIEW_H +#define LINKVIEW_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <qscrollview.h> + +class ListBoxLink; +class DnDListBox; +class MediaListBox; + +class LinkView : public QScrollView +{ + Q_OBJECT + +public: + LinkView(QWidget * parent = 0, const char * name = 0, WFlags f = 0); + + /** destructor */ + ~LinkView(); + MediaListBox *Hardware(){return hardware;} + DnDListBox *Locations(){return locations;} + void loadLinks(); + void saveLinks(); + +protected: + void viewportResizeEvent( QResizeEvent * ); + bool eventFilter(QObject *, QEvent *); +private: + MediaListBox *hardware; + DnDListBox *locations; + QSplitter *splitter; + bool _blocked; + uint loadedLinks; +private slots: + void postInstallEventFilter(); + void unselectLocations(); + void unselectHardware(); + void adjustSplitter2Locations(); + void adjustSplitter2Hardware(bool added); +}; + +#endif |