Debian Codegraph @

src/plugin/test_folderlistmodel/simpleUI/simplelist.h

raw symbols SCIP
1 /**************************************************************************
2 *
3 * Copyright 2013 Canonical Ltd.
4 * Copyright 2013 Carlos J Mazieri <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; version 3.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * File: simplelist.h
19 * Date: 3/9/2013
20 */
21
22 #ifndef SIMPLELIST_H
23 #define SIMPLELIST_H
24
25 #include <QMainWindow>
26 #include <QModelIndex>
27
28 class DirModel;
29 class QProgressBar;
30 class DirSelection;
31 class PlacesModel;
32 class QDialog;
33
34 namespace Ui {
35 class SimpleList;
36 class AuthenticationDialog;
37 }
38
39 class SimpleList : public QMainWindow
40 {
41 Q_OBJECT
42
43 public:
44 explicit SimpleList(QWidget *parent = 0);
45 ~SimpleList();
46
47 protected:
48 bool eventFilter(QObject *obj, QEvent *event);
49
50 private:
51 void allowSelectedActions(int selectedCounter);
52 void allowTrashActions(bool enable);
53 void do_connections();
54
55 private:
56 Ui::SimpleList *ui;
57 DirModel *m_model;
58 QProgressBar * m_pbar;
59 DirSelection * m_selection;
60 bool m_holdingCtrlKey;
61 bool m_holdingShiftKey;
62 Qt::MouseButton m_button;
63 PlacesModel * m_placesModel;
64 QDialog * m_authDialog;
65 Ui::AuthenticationDialog *m_uiAuth;
66
67 private slots:
68 void onNewDir();
69 void onRename();
70 void onRowClicked(QModelIndex);
71 void onOpenItem(QModelIndex index);
72 void onSetSort(int col, Qt::SortOrder order);
73 void onProgress(int, int,int);
74 void onClipboardChanged();
75 void onError(QString title, QString message);
76 void onPathChanged(QString path);
77 void onPathChoosedFromList(int);
78 void onPathComboEdited();
79 void onSelectionChanged(int);
80 void onPlacesClicked(QModelIndex);
81 void onOpenTerminal();
82 void onAwaitingResultsChanged();
83 void onRowsInserted(QModelIndex, int,int);
84 void onNeedsAutentication(QString, QString);
85 void onAuthenticaionAccepted();
86 };
87
88 #endif // SIMPLELIST_H