launcher.h 591 B

123456789101112131415161718192021222324252627282930
  1. #ifndef LAUNCHER_H
  2. #define LAUNCHER_H
  3. #include "../../staticapplet.h"
  4. #include <QPushButton>
  5. #include <QString>
  6. #include <QFile>
  7. #include <QSettings>
  8. #include <QProcess>
  9. #include <QIcon>
  10. #include <QPropertyAnimation>
  11. class LauncherApplet : public StaticApplet {
  12. Q_OBJECT
  13. public:
  14. LauncherApplet(ConfigManager* cfgMan, Panel* parentPanel, QString entry);
  15. void externalWidgetSetup() override;
  16. QIcon resolveIconNameOrPath(QString iconNameOrPath);
  17. ~LauncherApplet();
  18. private:
  19. void execute(QString cmd);
  20. int mIconSize;
  21. QString mEntry;
  22. };
  23. #endif // LAUNCHER_H