PeriDyno 1.0.0
Loading...
Searching...
No Matches
WSampleWidget.cpp File Reference
#include "WSampleWidget.h"
#include <Wt/WPushButton.h>
#include <Wt/WGridLayout.h>
#include <Wt/WVBoxLayout.h>
#include <Wt/WImage.h>
#include <Wt/WLabel.h>
#include <Wt/WCssDecorationStyle.h>
#include <Platform.h>
Include dependency graph for WSampleWidget.cpp:

Go to the source code of this file.

Classes

class  SampleStore
 

Macros

#define DECLARE_PERIDYNO_SAMPLE(NAME)
 

Functions

Wt::WContainerWidget * _createItem (Sample *sample)
 

Macro Definition Documentation

◆ DECLARE_PERIDYNO_SAMPLE

#define DECLARE_PERIDYNO_SAMPLE ( NAME)
Value:
class NAME : public Sample { \
public:\
std::string name() const {return #NAME;};\
std::string thumbnail() const {return std::string("samples/") + #NAME + ".jpg";};\
std::string source() const {return getAssetPath() + std::string("python_web_sample/") + #NAME + ".py";};\
};
virtual std::string name() const =0
virtual std::string thumbnail() const
virtual std::string source() const =0

Definition at line 12 of file WSampleWidget.cpp.

Function Documentation

◆ _createItem()

Wt::WContainerWidget * _createItem ( Sample * sample)

Definition at line 150 of file WSampleWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: