Add interface class to represent player interface. Have simple hide/show animation between. Put up more interface elements on login interface to show inteded ui.

This commit is contained in:
Kevin Whitaker
2017-01-28 16:51:14 -05:00
parent 93e095d46e
commit 22f1b90238
7 changed files with 115 additions and 5 deletions

View File

@@ -22,6 +22,10 @@
#include <Wt/WContainerWidget>
#include <Wt/WPushButton>
#include <Wt/WVBoxLayout>
#include <Wt/WHBoxLayout>
#include <Wt/WLineEdit>
#include <Wt/WText>
#include "../WebInterface.h"
class LoginInterface : public Wt::WContainerWidget
@@ -30,6 +34,15 @@ public:
LoginInterface(WebInterface* app);
private:
Wt::WPushButton* loginButton;
Wt::WVBoxLayout* loginLayout;
Wt::WContainerWidget* loginContainer;
Wt::WHBoxLayout* usernameArea;
Wt::WContainerWidget* usernameContainer;
Wt::WHBoxLayout* passwordArea;
Wt::WContainerWidget* passwordContainer;
Wt::WLineEdit* usernameField;
Wt::WLineEdit* passwordField;
WebInterface* app;
};
#endif // LOGININTERFACE_H