diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 10:10:38 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-04 10:10:38 +0200 |
commit | 030891531b9a0626502e6e2bbb9cd5dc6eb56d68 (patch) | |
tree | 8f9b81b55add5dca71352c77f0c2aa6b1c1df0f1 /Applications/ChanViewer/main.cpp | |
parent | 210550d4b3937d24698ea052ba51b605fab3cfcd (diff) | |
download | serenity-030891531b9a0626502e6e2bbb9cd5dc6eb56d68.zip |
ChanViewer: Start working on a simple read-only 4Chan viewer
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. :^)
Diffstat (limited to 'Applications/ChanViewer/main.cpp')
-rw-r--r-- | Applications/ChanViewer/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Applications/ChanViewer/main.cpp b/Applications/ChanViewer/main.cpp new file mode 100644 index 0000000000..917df59be0 --- /dev/null +++ b/Applications/ChanViewer/main.cpp @@ -0,0 +1,25 @@ +#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(); +} |