| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include <map> |
| 24 |
#include <string> |
| 25 |
|
| 26 |
#include "Server/Web/HtmlTagButton.h" |
| 27 |
|
| 28 |
namespace Server { namespace Web |
| 29 |
{ |
| 30 |
class HtmlTagButtonCommandToggle : public HtmlTagButton |
| 31 |
{ |
| 32 |
public: |
| 33 |
HtmlTagButtonCommandToggle(const std::string& value, |
| 34 |
const std::string& command, |
| 35 |
const bool on, |
| 36 |
const std::map<std::string,std::string>& arguments = std::map<std::string,std::string>(), |
| 37 |
const std::string& tooltip = ""); |
| 38 |
|
| 39 |
HtmlTagButtonCommandToggle(const std::string& value, |
| 40 |
const std::string& command, |
| 41 |
const bool on, |
| 42 |
const Languages::TextSelector tooltip) |
| 43 |
: HtmlTagButtonCommandToggle(value, command, on, std::map<std::string,std::string>(), Languages::GetText(tooltip)) |
| 44 |
{} |
| 45 |
}; |
| 46 |
}} |