Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / apps / wm / authors.c
blob4dd46d7554057a4a60eb473808aae6f31fc9e966
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
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.
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.
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/>.
20 #include <stdio.h>
21 #include <string.h>
22 #include <stdlib.h>
23 #include <unistd.h>
24 #include <time.h>
25 #include <libx/base.h>
26 #include <libx/object.h>
27 #include <libx/image.h>
28 #include <libx/cursor.h>
29 #include <libx/text.h>
30 #include "window.h"
31 #include "cursor.h"
32 #include "button.h"
33 #include "menu.h"
34 #include "dialog.h"
35 #include "filemanager.h"
36 #include "config.h"
38 unsigned authors_act = 0;
39 wmdialog *authors_dialog;
41 unsigned iauthors ()
43 if (authors_act)
44 return 0;
46 authors_act = 1;
48 authors_dialog = dialog_create (160-90, 100-25, 180, 50, "Authors");
50 return 1;
53 unsigned authors_handle ()
55 if (authors_dialog != 0)
56 if (authors_dialog->active) {
57 xtext_puts (authors_dialog->x+1, authors_dialog->y+11, 0, "Programmer:");
58 xtext_puts (authors_dialog->x+1, authors_dialog->y+20, 0, "Tomas 'ZeXx86' Jedrzejek");
59 xtext_puts (authors_dialog->x+1, authors_dialog->y+38, 0, "Licensed under GNU/GPL 3");
63 unsigned init_authors ()
65 authors_dialog = 0;
66 authors_act = 0;
68 return 1;