21 lines
532 B
C++
21 lines
532 B
C++
//
|
|
// Created by selim on 03.01.2022.
|
|
//
|
|
|
|
#include "MainWindow.h"
|
|
#include "AddNumberDialog.h"
|
|
#include "../gtkpp/HeaderBar.h"
|
|
|
|
#include <iostream>
|
|
|
|
MainWindow::MainWindow(std::shared_ptr<gtkpp::Application> app):
|
|
gtkpp::Window(std::move(app), "/gui/MainWindow.xml", "adw_main_window"),
|
|
_addNumberButton(_builder, "add_number_button") {
|
|
|
|
_addNumberButton.onClick([this] {
|
|
std::cout << "Add clicked" << std::endl;
|
|
auto dialog = std::make_unique<AddNumberDialog>(gobj());
|
|
dialog->show();
|
|
});
|
|
}
|