Older/WebApplication/NavigationBar.h
amass 3228553be5
Some checks failed
Deploy / Build (push) Failing after 6m40s
add navbar register.
2024-12-22 13:56:15 +08:00

23 lines
467 B
C++

#ifndef __NAVIGATIONBAR_H__
#define __NAVIGATIONBAR_H__
#include <Wt/WTemplate.h>
class LoginPage;
class NavigationBar : public Wt::WTemplate {
public:
NavigationBar();
~NavigationBar();
LoginPage *addLoginItem(std::unique_ptr<LoginPage> item);
std::unique_ptr<LoginPage> removeLoginItem();
Wt::Signal<> registerClicked;
protected:
void createLoginButtons();
private:
Wt::WTemplate *m_menu = nullptr;
};
#endif // __NAVIGATIONBAR_H__