Older/WebApplication/NavigationBar.h

23 lines
467 B
C
Raw Permalink 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();
2024-12-22 13:56:15 +08:00
Wt::Signal<> registerClicked;
2024-12-21 23:08:38 +08:00
protected:
void createLoginButtons();
private:
Wt::WTemplate *m_menu = nullptr;
2024-12-18 23:35:26 +08:00
};
#endif // __NAVIGATIONBAR_H__