// case - file manager for N900
-// Copyright (C) 2010 Lukas Hrazky
+// Copyright (C) 2010 Lukas Hrazky <lukkash@email.cz>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
#include "button.h"
#include <QMainWindow>
-#include <QEvent>
+#include <QKeyEvent>
class Case : public QMainWindow {
Q_OBJECT
-signals:
- void activePaneSwitched();
-
public:
Case(QWidget *parent = 0);
public slots:
void switchActivePane();
-private:
+protected:
+ void keyPressEvent(QKeyEvent *e);
+
Pane *leftPane, *rightPane, *activePane, *inactivePane;
- Button *cloneBtn, *moveBtn, *copyBtn, *delBtn, *swapBtn;
+ Button *cloneBtn, *swapBtn, *copyBtn, *moveBtn, *delBtn;
FileOperator *fileOperator;
-private slots:
- void deleteFiles();
- void copyFiles();
- void moveFiles();
+protected slots:
void clonePane();
void swapPanes();
+ void copyFiles();
+ void moveFiles();
+ void deleteFiles();
};
#endif // CASE_H