~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to src/dcc/transferpanel.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-02-11 14:52:14 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20100211145214-xsbd3hmrnu5fmb8f
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define TRANSFERPANEL_H
20
20
 
21
21
#include "chatwindow.h"
22
 
 
23
22
#include <QModelIndex>
24
 
#include <QItemSelection>
25
 
 
26
 
#include <kdeversion.h>
27
 
 
28
 
#if KDE_IS_VERSION(4, 5, 0)
29
 
#   include <KDialog>
30
 
#   include <KLocalizedString>
31
 
#   include <kfilemetadatawidget.h>
32
 
#endif
33
 
#include <KDebug>
34
23
 
35
24
class QSplitter;
36
25
class KMenu;
44
33
        class TransferView;
45
34
        class Transfer;
46
35
 
47
 
#if KDE_IS_VERSION(4, 5, 0)
48
 
        class FileMetaDataDialog : public KDialog
49
 
        {
50
 
            public:
51
 
                explicit FileMetaDataDialog(const KUrl& file, QWidget *parent = 0)
52
 
                    : KDialog(parent)
53
 
                {
54
 
                    setCaption( i18nc("%1=filename", "File Information for %1",  file.fileName() ) );
55
 
                    setButtons( KDialog::Ok );
56
 
 
57
 
                    m_fileMetaDataWidget = new KFileMetaDataWidget(this);
58
 
 
59
 
                    KFileItemList fileList;
60
 
                    fileList.append(KFileItem(KFileItem::Unknown, KFileItem::Unknown, file));
61
 
                    m_fileMetaDataWidget->setItems(fileList);
62
 
 
63
 
                    setMainWidget(m_fileMetaDataWidget);
64
 
 
65
 
                    //known Qt problem, minimum size is not set, limitation of X11 window manager
66
 
                    setMinimumSize(QSize(sizeHint().height()*2, sizeHint().width()));
67
 
                }
68
 
 
69
 
                ~FileMetaDataDialog()
70
 
                {
71
 
                    delete m_fileMetaDataWidget;
72
 
                }
73
 
 
74
 
            private:
75
 
                KFileMetaDataWidget* m_fileMetaDataWidget;
76
 
        };
77
 
#endif
78
 
 
79
36
        class TransferPanel : public ChatWindow
80
37
        {
81
38
            Q_OBJECT
111
68
 
112
69
                void updateButton();
113
70
 
114
 
                void setDetailPanelItem (const QItemSelection &newindex, const QItemSelection &oldindex);
 
71
                void setDetailPanelItem (const QModelIndex &newindex, const QModelIndex &oldindex);
115
72
 
116
73
            protected:
117
74
                /** Called from ChatWindow adjustFocus */
125
82
                KToolBar *m_toolBar;
126
83
 
127
84
                TransferDetailedInfoPanel *m_detailPanel;
128
 
                QSplitter *m_splitter;
 
85
                QSplitter* m_splitter;
129
86
 
130
87
                QAction *m_abort;
131
88
                QAction *m_accept;