added icons for the buttons
[case] / src / button.h
index 1379c1f..2c0de27 100644 (file)
@@ -1,5 +1,5 @@
 // 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
@@ -25,9 +25,14 @@ class Button : public QPushButton {
     Q_OBJECT
 
 public:
-    explicit Button(QWidget *parent = 0, int maxWidth = 70, int maxHeight = 70);
-    explicit Button(const QString &text, QWidget *parent = 0, const int maxWidth = 70, const int maxHeight = 70);
-    explicit Button(const QIcon &icon, const QString &text, QWidget *parent = 0, const int maxWidth = 70, const int maxHeight = 70);
+    explicit Button(const QString &name, QWidget *parent = 0, const int maxWidth = 70, const int maxHeight = 70);
+
+public slots:
+    void swapIcon();
+
+protected:
+    QIcon icons[2];
+    int iconIndex;
 };
 
 #endif // BUTTON_H