Newer
Older
Import / applications / Photoframe / src / mainmenu.h
@John Ryland John Ryland on 11 Jan 2021 599 bytes save wip
#ifndef __MAINMENU_H__
#define __MAINMENU_H__


#include "stage.h"
#include "menuitem.h"
class AnimatedIcon;


class MainMenu : public Stage
{
	Q_OBJECT
public:
	MainMenu(QWidget *parent = 0);
	virtual ~MainMenu();

	void animate(int dir, int before, int now);

	void keyPressEvent(QKeyEvent *ke);
	void timerEvent(QTimerEvent *te);

	virtual void changeBackground(QString);

public slots:
	void init();

private:
	MenuItem **items;
	int curItem;
	int timerId;
	int frame;
	AnimatedIcon *icon;
	Text *item1, *item2;
	int direction;
	bool animateIcons;
	bool animating;
};


#endif // __MAINMENU_H__