/usr/lib/Wt/examples/widgetgallery/DialogWidgets.h is in witty-examples 3.1.10-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2008 Emweb bvba
*
* See the LICENSE file for terms of use.
*/
#ifndef DIALOGWIDGETS_H_
#define DIALOGWIDGETS_H_
#include <Wt/WMessageBox>
#include <Wt/WDialog>
#include <Wt/WString>
#include <Wt/WLineEdit>
#include <Wt/WPushButton>
#include "ControlsWidget.h"
#include "EventDisplayer.h"
namespace Wt {
namespace Ext {
class Dialog;
}
}
class NonModalDialog : public Wt::WDialog
{
public:
NonModalDialog(const Wt::WString& title, EventDisplayer *ed);
private:
Wt::WLineEdit *edit_;
Wt::WPushButton *ok_;
EventDisplayer *ed_;
void welcome() {
ed_->setStatus("Welcome, " + edit_->text());
setHidden(true);
}
};
class DialogWidgets : public ControlsWidget
{
public:
DialogWidgets(EventDisplayer *ed);
void populateSubMenu(Wt::WMenu *menu);
private:
Wt::WWidget *wDialog();
Wt::WWidget *wMessageBox();
Wt::WWidget *eDialogs();
void messageBox1();
void messageBox2();
void messageBox3();
void messageBox4();
void customModal();
void customNonModal();
void messageBoxDone(Wt::StandardButton result);
void setStatus(const Wt::WString& text);
Wt::WMessageBox *messageBox_;
Wt::WText *status_;
#ifndef WT_TARGET_JAVA
void createExtDialog();
void createExtMessageBox();
void createExtProgress();
void deleteExtDialog();
Wt::Ext::Dialog *extDialog_;
#endif
};
#endif
|