summaryrefslogtreecommitdiffstats
path: root/sidebar/linkview.h
blob: 1817d525d881535090f74017bee1c0033502142b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

#ifndef LINKVIEW_H
#define LINKVIEW_H

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <tqscrollview.h>

class ListBoxLink;
class DnDListBox;
class MediaListBox;

class LinkView : public TQScrollView
{
    Q_OBJECT
    
public:
     LinkView(TQWidget * 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( TQResizeEvent * );
   bool eventFilter(TQObject *, TQEvent *);
private:
   MediaListBox *hardware;
   DnDListBox *locations;
   TQSplitter *splitter;
   bool _blocked;
   uint loadedLinks;
private slots:
   void postInstallEventFilter();
   void unselectLocations();
   void unselectHardware();
   void adjustSplitter2Locations();
   void adjustSplitter2Hardware(bool added);
};

#endif