~ubuntu-branches/ubuntu/vivid/krusader/vivid-proposed

« back to all changes in this revision

Viewing changes to krusader/Dialogs/kurllistrequester.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 *                                                                         *
29
29
 ***************************************************************************/
30
30
 
31
 
#ifndef __KURLLISTREQUESTER_H__
32
 
#define __KURLLISTREQUESTER_H__
 
31
#ifndef KURLLISTREQUESTER_H
 
32
#define KURLLISTREQUESTER_H
33
33
 
34
34
#include <qwidget.h>
35
 
#include "../GUI/krlistwidget.h"
36
 
#include <qtoolbutton.h>
 
35
#include <QtGui/QToolButton>
37
36
#include <QKeyEvent>
 
37
 
38
38
#include <klineedit.h>
39
39
#include <kurl.h>
40
40
#include <kurlcompletion.h>
41
41
 
 
42
#include "../GUI/krlistwidget.h"
 
43
 
42
44
class KURLListRequester : public QWidget
43
45
{
44
 
  Q_OBJECT
45
 
  
 
46
    Q_OBJECT
 
47
 
46
48
public:
47
 
  KURLListRequester( QWidget *parent = 0 );  
48
 
  
49
 
  KUrl::List   urlList();
50
 
  void         setUrlList( KUrl::List );
51
 
  
52
 
  KLineEdit    *lineEdit()    {return urlLineEdit;}
53
 
  KrListWidget *listBox()     {return urlListBox;}
54
 
  
55
 
  void         setCompletionDir( QString dir ) { completion.setDir( dir ); }
 
49
    KURLListRequester(QWidget *parent = 0);
 
50
 
 
51
    KUrl::List   urlList();
 
52
    void         setUrlList(KUrl::List);
 
53
 
 
54
    KLineEdit    *lineEdit()    {
 
55
        return urlLineEdit;
 
56
    }
 
57
    KrListWidget *listBox()     {
 
58
        return urlListBox;
 
59
    }
 
60
 
 
61
    void         setCompletionDir(QString dir) {
 
62
        completion.setDir(dir);
 
63
    }
56
64
 
57
65
signals:
58
 
  void         checkValidity( QString &text, QString &error );
59
 
  void         changed();
60
 
  
 
66
    void         checkValidity(QString &text, QString &error);
 
67
    void         changed();
 
68
 
61
69
protected slots:
62
 
  void         slotAdd();
63
 
  void         slotBrowse();
64
 
  void         slotRightClicked( QListWidgetItem *, const QPoint & );
65
 
  
 
70
    void         slotAdd();
 
71
    void         slotBrowse();
 
72
    void         slotRightClicked(QListWidgetItem *, const QPoint &);
 
73
 
66
74
protected:
67
 
  virtual void keyPressEvent(QKeyEvent *e);
68
 
  void         deleteSelectedItems();
69
 
  
70
 
  KLineEdit    *urlLineEdit;
71
 
  KrListWidget *urlListBox;
72
 
  QToolButton  *urlAddBtn;
73
 
  QToolButton  *urlBrowseBtn;
74
 
  
75
 
  KUrlCompletion completion;
 
75
    virtual void keyPressEvent(QKeyEvent *e);
 
76
    void         deleteSelectedItems();
 
77
 
 
78
    KLineEdit    *urlLineEdit;
 
79
    KrListWidget *urlListBox;
 
80
    QToolButton  *urlAddBtn;
 
81
    QToolButton  *urlBrowseBtn;
 
82
 
 
83
    KUrlCompletion completion;
76
84
};
77
85
 
78
86
#endif /* __KURLLISTREQUESTER_H__ */