-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
346 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,10 @@ | |
using namespace Wt; | ||
|
||
|
||
|
||
namespace Body { | ||
|
||
|
||
|
||
class Body : public WContainerWidget | ||
{ | ||
public: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,106 @@ | ||
#include "lloginwidget.h" | ||
#include <Wt/WHBoxLayout.h> | ||
#include <Wt/WVBoxLayout.h> | ||
#include <Wt/WPushButton.h> | ||
|
||
|
||
|
||
LLoginWidget::LLoginWidget() | ||
{ | ||
// addWidget(cpp14::make_unique<WText>("ŞLPĞİŞÜÇÖç")); | ||
|
||
setContentAlignment(AlignmentFlag::Center); | ||
|
||
mMainContainer = addWidget(cpp14::make_unique<WContainerWidget>()); | ||
mMainContainer->addStyleClass(Bootstrap::Grid::container_fluid); | ||
|
||
row = mMainContainer->addWidget(cpp14::make_unique<WContainerWidget>()); | ||
row->addStyleClass(Bootstrap::Grid::row); | ||
|
||
this->initLoginPage(); | ||
|
||
} | ||
|
||
void LLoginWidget::initLoginPage() | ||
{ | ||
row->clear(); | ||
|
||
|
||
|
||
auto container = row->addWidget(cpp14::make_unique<WContainerWidget>()); | ||
|
||
container->addStyleClass(Bootstrap::Grid::col_full_12); | ||
container->setContentAlignment(AlignmentFlag::Center); | ||
|
||
|
||
auto mContainer = container->addWidget(cpp14::make_unique<WContainerWidget>()); | ||
|
||
mContainer->addStyleClass(Bootstrap::Grid::container_fluid); | ||
|
||
mContainer->setMaximumSize(650,WLength::Auto); | ||
|
||
mContainer->setMargin(200,Side::Top|Side::Bottom); | ||
|
||
mContainer->addStyleClass("loginLoginContainer"); | ||
|
||
|
||
auto mRow = mContainer->addWidget(cpp14::make_unique<WContainerWidget>()); | ||
|
||
mRow->addStyleClass(Bootstrap::Grid::row); | ||
mRow->setContentAlignment(AlignmentFlag::Center); | ||
mRow->setAttributeValue(Style::style,Style::background::color::rgba(0,0,0,0.25)); | ||
|
||
{ | ||
auto textContainer = mRow->addWidget(cpp14::make_unique<WContainerWidget>()); | ||
textContainer->addStyleClass(Bootstrap::Grid::col_full_12); | ||
textContainer->setHeight(300); | ||
|
||
auto vLayout = textContainer->setLayout(cpp14::make_unique<WVBoxLayout>()); | ||
|
||
vLayout->addStretch(1); | ||
|
||
{ | ||
mTel = vLayout->addWidget(cpp14::make_unique<WLineEdit>(),0,AlignmentFlag::Center); | ||
mTel->setPlaceholderText("Telefon Numarasını Giriniz"); | ||
|
||
} | ||
|
||
{ | ||
auto sifre = vLayout->addWidget(cpp14::make_unique<WLineEdit>(),0,AlignmentFlag::Center); | ||
sifre->setPlaceholderText(WString::fromUTF8("Şifrenizi Giriniz")); | ||
sifre->setEchoMode(EchoMode::Password); | ||
} | ||
|
||
{ | ||
auto giris = vLayout->addWidget(cpp14::make_unique<WPushButton>(WString::fromUTF8("Giriş")),0,AlignmentFlag::Center); | ||
giris->addStyleClass(Bootstrap::Button::Primary); | ||
} | ||
|
||
{ | ||
auto unuttum = vLayout->addWidget(cpp14::make_unique<WPushButton>("Şifremi Unuttum"),0,AlignmentFlag::Center); | ||
unuttum->addStyleClass(Bootstrap::Button::Success); | ||
} | ||
|
||
{ | ||
auto uye = vLayout->addWidget(cpp14::make_unique<WPushButton>("Yeni Üye Ol"),0,AlignmentFlag::Center); | ||
uye->addStyleClass(Bootstrap::Button::Warning); | ||
uye->clicked().connect(this,&LLoginWidget::inityeniUye); | ||
} | ||
vLayout->addStretch(1); | ||
} | ||
|
||
} | ||
|
||
void LLoginWidget::inityeniUye() | ||
{ | ||
row->clear(); | ||
|
||
row->addWidget(cpp14::make_unique<LYeniUye>()) | ||
->addStyleClass(Bootstrap::Grid::col_full_12); | ||
} | ||
|
||
LYeniUye::LYeniUye() | ||
:WContainerWidget () | ||
{ | ||
addWidget(cpp14::make_unique<WText>("Yeni Üye Sayfası")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
#ifndef LLOGINWIDGET_H | ||
#define LLOGINWIDGET_H | ||
|
||
#include <QtCore/qglobal.h> | ||
#include <Wt/WContainerWidget.h> | ||
#include <Wt/WText.h> | ||
#include "bootstrap.h" | ||
#include "inlinestyle.h" | ||
|
||
class LLoginWidget : public WContainerWidget | ||
|
||
#include <Wt/WLineEdit.h> | ||
|
||
|
||
using namespace Wt; | ||
|
||
class LLoginWidget : public Wt::WContainerWidget | ||
{ | ||
public: | ||
LLoginWidget(); | ||
|
||
~LLoginWidget(){} | ||
|
||
|
||
void initLoginPage(); | ||
|
||
void inityeniUye(); | ||
|
||
|
||
WContainerWidget* mMainContainer,*row; | ||
WLineEdit* mTel; | ||
}; | ||
|
||
#endif // LLOGINWIDGET_H | ||
|
||
|
||
|
||
class LYeniUye : public WContainerWidget | ||
{ | ||
public: | ||
LYeniUye(); | ||
}; | ||
|
||
|
||
|
||
#endif // LLOGINWIDGET_H |
Oops, something went wrong.