2019-09-03 21:45:02 +10:00
|
|
|
#include "DisplayProperties.h"
|
|
|
|
|
#include <LibDraw/PNGLoader.h>
|
|
|
|
|
#include <LibGUI/GApplication.h>
|
|
|
|
|
#include <LibGUI/GBoxLayout.h>
|
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
|
#include <LibGUI/GWindow.h>
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
|
|
|
|
GApplication app(argc, argv);
|
|
|
|
|
DisplayPropertiesWidget instance;
|
|
|
|
|
|
2019-09-21 18:18:47 +02:00
|
|
|
auto window = GWindow::construct();
|
2019-09-03 21:45:02 +10:00
|
|
|
window->set_title("Display Properties");
|
2019-12-15 19:40:17 +03:00
|
|
|
window->move_to(100,100);
|
2019-09-03 21:45:02 +10:00
|
|
|
window->resize(400, 448);
|
|
|
|
|
window->set_resizable(false);
|
2019-09-21 17:05:35 +02:00
|
|
|
window->set_main_widget(instance.root_widget());
|
2019-09-03 21:45:02 +10:00
|
|
|
window->set_icon(load_png("/res/icons/16x16/app-display-properties.png"));
|
|
|
|
|
|
|
|
|
|
window->show();
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|