Changeset 11419 for titan/plugins/panel/panel_system_backup.h
- Timestamp:
- 11/20/11 16:49:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/panel/panel_system_backup.h
r11416 r11419 1 #ifndef AAFPANEL_SYSTEM_BACKUP_H2 #define AAFPANEL_SYSTEM_BACKUP_H1 #ifndef PANEL_SYSTEM_BACKUP_H 2 #define PANEL_SYSTEM_BACKUP_H 3 3 4 void screen aafpanel_system_backup()4 void screenpanel_system_backup() 5 5 { 6 6 int rcret = 0; 7 struct skin* aaf_backup = getscreen("aafpanel_system_backup");8 struct skin* listbox = getscreennode( aaf_backup, "listbox");9 struct skin *listfield = getscreennode( aaf_backup, "listfield");10 struct skin* b_red = getscreennode( aaf_backup, "b1");11 struct skin* b_green = getscreennode( aaf_backup, "b2");12 struct skin* info = getscreennode( aaf_backup, "info");7 struct skin* panel_backup = getscreen("panel_system_backup"); 8 struct skin* listbox = getscreennode(panel_backup, "listbox"); 9 struct skin *listfield = getscreennode(panel_backup, "listfield"); 10 struct skin* b_red = getscreennode(panel_backup, "b1"); 11 struct skin* b_green = getscreennode(panel_backup, "b2"); 12 struct skin* info = getscreennode(panel_backup, "info"); 13 13 struct skin* tmp = NULL; 14 14 char* tmpstr = NULL, *infotext = NULL; … … 21 21 b_red->hidden = NO; b_green->hidden = NO; 22 22 23 changetitle( aaf_backup, _("Create Backup"));23 changetitle(panel_backup, _("Create Backup")); 24 24 25 addscreenrc( aaf_backup, listbox);25 addscreenrc(panel_backup, listbox); 26 26 27 27 if(checkbox("UFS912") || checkbox("AT7500")) … … 34 34 } 35 35 36 drawscreen( aaf_backup, 0);36 drawscreen(panel_backup, 0); 37 37 tmp = listbox->select; 38 38 39 39 while(1) 40 40 { 41 addscreenrc( aaf_backup, tmp);42 rcret = waitrc( aaf_backup, 0, 0);41 addscreenrc(panel_backup, tmp); 42 rcret = waitrc(panel_backup, 0, 0); 43 43 tmp = listbox->select; 44 44 … … 56 56 { 57 57 b_red->hidden = YES; b_green->hidden = YES; 58 drawscreen( aaf_backup, 0);58 drawscreen(panel_backup, 0); 59 59 tmpstr = ostrcat(tmpstr, "backup.sh ", 1, 0); 60 60 tmpstr = ostrcat(tmpstr, getownconfig(listbox->select->name), 1, 0); … … 67 67 68 68 infotext = NULL; 69 delownerrc( aaf_backup);70 clearscreen( aaf_backup);69 delownerrc(panel_backup); 70 clearscreen(panel_backup); 71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.