Older/WebApplication/NavigationBar.h

22 lines
433 B
C
Raw Normal View History

2024-12-18 23:35:26 +08:00
#ifndef __NAVIGATIONBAR_H__
#define __NAVIGATIONBAR_H__
#include <Wt/WTemplate.h>
2024-12-21 23:08:38 +08:00
class LoginPage;
class NavigationBar : public Wt::WTemplate {
2024-12-18 23:35:26 +08:00
public:
NavigationBar();
2024-12-21 23:08:38 +08:00
~NavigationBar();
LoginPage *addLoginItem(std::unique_ptr<LoginPage> item);
std::unique_ptr<LoginPage> removeLoginItem();
protected:
void createLoginButtons();
private:
Wt::WTemplate *m_menu = nullptr;
2024-12-18 23:35:26 +08:00
};
#endif // __NAVIGATIONBAR_H__