3 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
4 * Copyright (C) 2010 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
29 void zinstall_draw_step1 ()
31 zgui_puts (10, 40, "First step is focused on hard-drive ID,\nthat mean, you must select\n correct disk for installation.\n\n", 0);
33 zgui_input (10, 100, &zinst
.drive
, 31, 0);
38 zgui_puts (10, 10, "ZeX/OS Installer\n-=-=-=-=-=-=-=-=-", 0);
40 unsigned btn_next
= zgui_button (150, 145, "Next");
47 zgui_puts (10, 40, "Welcome !\nYou are attempting to install ZeX/OS\nonto your hard-drive, please be sure\nabout your backup because of data loss.\n\nWarning: This version is in the alpha-stage,\nit is possible that some error may occur.\n\nPress button \"Next\" for continue\nin installation process", 0);
50 return zinstall_draw_step1 ();
52 zgui_puts (10, 40, "In this step we should setup HDD partition\ntable before installation process begin.\nIt is necessary to choose current partition\ntype, respectively filesystem ID.", 0);
57 int main (int argc
, char **argv
)
64 if (zgui_init () == -1)
68 unsigned state
= zgui_event ();
70 if (state
& APPCL_STATE_REDRAW
)
73 if (state
& APPCL_STATE_EXIT
)