~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to plugins/infowidget/fileview.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-02-16 18:37:14 UTC
  • mfrom: (1.1.25 upstream) (0.4.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090216183714-52tf47jrnmk4xkmp
Tags: 3.2+dfsg.1-2ubuntu1
* Merge with Debian, remaining changes: (LP: #296433)
  - Use Kubuntu's kde4.mk
  - Build-depend on libboost-serialization1.35-dev since unversioned -dev is
    in universe
  - Change plasma-applet-ktorrent to plasma-widget-ktorrent since we're
    supposed to call them widgets for the users

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
namespace bt
31
31
{
32
32
        class TorrentInterface;
 
33
        class TorrentFileInterface;
33
34
}
34
35
 
35
36
namespace kt
51
52
                void saveState(KSharedConfigPtr cfg);
52
53
                void loadState(KSharedConfigPtr cfg);
53
54
                void update();
 
55
                void filePercentageChanged(bt::TorrentFileInterface* file,float percentage);
 
56
                void filePreviewChanged(bt::TorrentFileInterface* file,bool preview);
 
57
                
54
58
        public slots:
55
59
                void onTorrentRemoved(bt::TorrentInterface* tc);
56
60
 
61
65
                
62
66
        private:
63
67
                void changePriority(bt::Priority newpriority);
 
68
                void expandCollapseTree(const QModelIndex& idx, bool expand);
 
69
                void expandCollapseSelected(bool expand);
64
70
                virtual bool viewportEvent(QEvent *event);
 
71
                virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
65
72
 
66
73
        private slots:
67
74
                void open();
71
78
                void doNotDownload();
72
79
                void deleteFiles();
73
80
                void moveFiles();
 
81
                void collapseTree();
 
82
                void expandTree();
74
83
 
75
84
        private:
 
85
                bool redraw;
76
86
                bt::TorrentInterface* curr_tc;
77
87
                TorrentFileModel* model;
78
88
 
84
94
                QAction* dnd_action;
85
95
                QAction* delete_action;
86
96
                QAction* move_files_action;
 
97
                QAction* collapse_action;
 
98
                QAction* expand_action;
87
99
 
88
100
                QString preview_path;
89
101
                bool show_list_of_files;