| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |