|
#include <Wt/WApplication>
|
|
#include <Wt/WContainerWidget>
|
|
#include <Wt/WInPlaceEdit>
|
|
#include <Wt/WLength>
|
|
#include <Wt/WSuggestionPopup>
|
|
#include <Wt/WStandardItemModel>
|
|
#include <Wt/WLineEdit>
|
|
#include <Wt/WText>
|
|
#include <Wt/WString>
|
|
#include <Wt/WTableView>
|
|
#include <Wt/WTreeView>
|
|
#include <Wt/WStandardItem>
|
|
#include <Wt/WItemDelegate>
|
|
#include <Wt/WDialog>
|
|
#include <Wt/WPushButton>
|
|
#include <Wt/WAbstractProxyModel>
|
|
#include <Wt/WEvent>
|
|
#include <Wt/WSignal>
|
|
#include <Wt/WModelIndex>
|
|
#include <Wt/WHBoxLayout>
|
|
#include <Wt/WVBoxLayout>
|
|
#include <Wt/WGroupBox>
|
|
#include <Wt/WTemplate>
|
|
#include <Wt/WStackedWidget>
|
|
#include <Wt/WMenu>
|
|
#include <Wt/WServer>
|
|
#include <Wt/WSubMenuItem>
|
|
#include <Wt/WMenuItem>
|
|
#include <Wt/WTabWidget>
|
|
#include <Wt/WSpinBox>
|
|
#include <Wt/WImage>
|
|
#include <Wt/WRectArea>
|
|
#include <Wt/WRadioButton>
|
|
#include <Wt/WStreamResource>
|
|
#include <Wt/WIntValidator>
|
|
#include <Wt/WDialog>
|
|
|
|
|
|
#include <boost/bind.hpp>
|
|
#include <boost/foreach.hpp>
|
|
#include <Wt/WPainter>
|
|
#include <Wt/WPaintDevice>
|
|
#include <Wt/WPaintedWidget>
|
|
#include <Wt/WTableView>
|
|
|
|
#include <fstream>
|
|
#include <sstream>
|
|
|
|
#include <boost/thread.hpp>
|
|
#include <boost/foreach.hpp>
|
|
|
|
using namespace Wt;
|
|
using namespace boost;
|
|
|
|
using std::string;
|
|
using std::list;
|
|
|
|
|
|
class MyApplication: public WApplication {
|
|
|
|
public:
|
|
MyApplication(const Wt::WEnvironment& env);
|
|
WDialog *dialog1_;
|
|
WDialog *dialog2_;
|
|
};
|
|
|
|
MyApplication::MyApplication(const Wt::WEnvironment& env)
|
|
: Wt::WApplication(env)
|
|
{
|
|
WApplication::instance()->enableUpdates(true);
|
|
|
|
dialog1_ = new WDialog("dialog1");
|
|
dialog2_ = new WDialog("dialog2");
|
|
dialog1_->show();
|
|
dialog2_->show();
|
|
dialog1_->hide();
|
|
}
|
|
|
|
WApplication* createApplication(const Wt::WEnvironment& env)
|
|
{
|
|
WApplication* app = new MyApplication(env);
|
|
return app;
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
return Wt::WRun(argc, argv, &createApplication);
|
|
}
|