~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/dolphin/src/dolphinpart.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 13:28:20 UTC
  • mto: This revision was merged to the branch mainline in revision 258.
  • Revision ID: james.westby@ubuntu.com-20091202132820-tpxn348l9frx5zd5
Tags: upstream-4.3.80
ImportĀ upstreamĀ versionĀ 4.3.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <kparts/part.h>
24
24
#include <kparts/browserextension.h>
 
25
 
 
26
#include <QItemSelectionModel>
 
27
 
25
28
class KNewMenu;
26
29
class DolphinViewActionHandler;
27
30
class QActionGroup;
34
37
class DolphinModel;
35
38
class KDirLister;
36
39
class DolphinView;
37
 
class QLineEdit;
38
40
class KAboutData;
39
41
 
40
42
class DolphinPart : public KParts::ReadOnlyPart
113
115
private Q_SLOTS:
114
116
    void slotCompleted(const KUrl& url);
115
117
    void slotCanceled(const KUrl& url);
116
 
    void slotInfoMessage(const QString& msg);
 
118
    void slotMessage(const QString& msg);
117
119
    void slotErrorMessage(const QString& msg);
118
120
    /**
119
121
     * Shows the information for the item \a item inside the statusbar. If the
177
179
    void slotEditMimeType();
178
180
 
179
181
    /**
 
182
     * Connected to the "select_items_matching" action.
 
183
     * Opens a dialog which permits to select all items matching a pattern like "*.jpg".
 
184
     */
 
185
    void slotSelectItemsMatchingPattern();
 
186
 
 
187
    /**
 
188
     * Connected to the "unselect_items_matching" action.
 
189
     * Opens a dialog which permits to unselect all items matching a pattern like "*.jpg".
 
190
     */
 
191
    void slotUnselectItemsMatchingPattern();
 
192
 
 
193
    /**
180
194
     * Open a terminal window, starting with the current directory.
181
195
     */
182
196
    void slotOpenTerminal();
206
220
                        const QString& text, const QString& url,
207
221
                        QActionGroup* actionGroup);
208
222
 
 
223
    void openSelectionDialog(const QString& title, const QString& text,
 
224
                             QItemSelectionModel::SelectionFlags command);
 
225
 
 
226
    QItemSelection childrenMatchingPattern(const QModelIndex& parent, const QRegExp& patternRegExp);
 
227
 
209
228
private:
210
229
    DolphinView* m_view;
211
230
    DolphinViewActionHandler* m_actionHandler;
226
245
    DolphinPartBrowserExtension( DolphinPart* part )
227
246
        : KParts::BrowserExtension( part ), m_part(part) {}
228
247
 
 
248
    virtual void restoreState(QDataStream &stream);
 
249
    virtual void saveState(QDataStream &stream);
 
250
 
229
251
public Q_SLOTS:
230
252
    void cut();
231
253
    void copy();
232
254
    void paste();
 
255
    void pasteTo(const KUrl&);
233
256
    void reparseConfiguration();
234
257
 
235
258
private: