mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 14:45:07 +00:00

Since they are nice enough to provide a JSON API over HTTP, this makes for a perfect way to exercise our networking code a bit. :^)
25 lines
627 B
C++
25 lines
627 B
C++
#include "ThreadCatalogModel.h"
|
|
#include <LibGUI/GApplication.h>
|
|
#include <LibGUI/GBoxLayout.h>
|
|
#include <LibGUI/GTableView.h>
|
|
#include <LibGUI/GWindow.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
GApplication app(argc, argv);
|
|
|
|
auto* window = new GWindow;
|
|
window->set_title("ChanViewer");
|
|
window->set_rect(100, 100, 640, 480);
|
|
|
|
auto* widget = new GWidget;
|
|
window->set_main_widget(widget);
|
|
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
|
|
|
auto* catalog_view = new GTableView(widget);
|
|
catalog_view->set_model(ThreadCatalogModel::create());
|
|
|
|
window->show();
|
|
|
|
return app.exec();
|
|
}
|