|
1 /** |
|
2 * Relational pipes |
|
3 * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU General Public License as published by |
|
7 * the Free Software Foundation, either version 3 of the License, or |
|
8 * (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 */ |
|
18 #include <cstdlib> |
|
19 #include <unistd.h> |
|
20 #include <memory> |
|
21 |
|
22 #include <gtkmm.h> |
|
23 |
|
24 #include <relpipe/cli/CLI.h> |
|
25 #include <relpipe/cli/RelpipeCLIException.h> |
|
26 #include <relpipe/reader/Factory.h> |
|
27 #include <relpipe/reader/RelationalReader.h> |
|
28 #include <relpipe/reader/RelpipeReaderException.h> |
|
29 |
|
30 using namespace relpipe::cli; |
|
31 using namespace relpipe::reader; |
|
32 |
|
33 int main(int argc, char** argv) { |
|
34 setlocale(LC_ALL, ""); |
|
35 CLI::untieStdIO(); |
|
36 CLI cli(argc, argv); |
|
37 |
|
38 auto app = Gtk::Application::create(argc, argv, "org.gtkmm.examples.base"); |
|
39 Gtk::Window window; |
|
40 window.set_default_size(640, 480); |
|
41 window.set_title("relpipe-out-gui.gtk"); |
|
42 |
|
43 return app->run(window); |
|
44 } |