Exemplo n.º 1
0
Arquivo: main.cpp Projeto: CCJY/coliru
int main()
{
    Test test;
    
    test = Test(-123, std::string("test"), Bla());
    std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    test = Test(std::string("test"), -123, Bla());
    std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    test = Test(std::string("test"), Bla(), -123);
    std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    test = Test(Bla(), -123, std::string("test"));
    std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    test = Test(Bla(), std::string("test"), -123);
    std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    //test = Test(-321.0f, std::string("test"));
    //std::cout << "str: '" << test.str << "', x: " << test.x << "\n";
    
    
    
}
Exemplo n.º 2
0
MessageBox::MessageBox(bool i18n)
  : Dialog(Bla()),
    buttonClicked_(this),
    buttons_(NoButton),
    i18n_(i18n),
    prompt_(false),
    textArea_(false),
    progress_(false),
    progressValue_(0),
    progressInfinite_(false),
    firstDisplay_(true),
    catchDelete_(0),
    result_(NoButton),
    extButtonClicked_(this, "btnclk", false)
{
  extButtonClicked_.connect(this, &MessageBox::onClick);
}
Exemplo n.º 3
0
MessageBox::MessageBox(const WString& caption, const WString& text,
		       Icon icon, WFlags<StandardButton> buttons, bool i18n)
  : Dialog(Bla()),
    text_(text),
    buttons_(buttons),
    icon_(icon),
    i18n_(i18n),
    prompt_(false),
    textArea_(false),
    progress_(false),
    progressValue_(0),
    progressInfinite_(false),
    firstDisplay_(true),
    catchDelete_(0),
    result_(NoButton),
    extButtonClicked_(this, "btnclk", false)
{
  setWindowTitle(caption);
  extButtonClicked_.connect(this, &MessageBox::onClick);
}