Skip to content
Snippets Groups Projects
Commit 99a6af46 authored by deuce's avatar deuce
Browse files

Make verious editing functions be a submenu rather than cycle through

list.

PR:25->closed
parent 4f1d4017
Branches
Tags
No related merge requests found
...@@ -223,11 +223,16 @@ int edit_list(struct bbslist *item,char *listpath) ...@@ -223,11 +223,16 @@ int edit_list(struct bbslist *item,char *listpath)
iniSetString(&inifile,item->name,"SystemPassword",item->syspass,&ini_style); iniSetString(&inifile,item->name,"SystemPassword",item->syspass,&ini_style);
break; break;
case 6: case 6:
item->conn_type--;
uifc.helpbuf= "`Connection Type`\n\n"
"Select the type of connection you wish to make:\n"
"~ RLogin:~ Auto-login with RLogin protocol\n"
"~ Telnet:~ Use more common Telnet protocol (experimental)\n"
"~ Raw: ~ Make a raw socket connection (experimental)\n";
uifc.list(WIN_SAV,0,0,0,&(item->conn_type),NULL,"Connection Type",&(conn_types[1]));
item->conn_type++; item->conn_type++;
if(item->conn_type==CONN_TYPE_TERMINATOR)
item->conn_type=CONN_TYPE_RLOGIN;
changed=1;
iniSetEnum(&inifile,item->name,"ConnectionType",conn_types,item->conn_type,&ini_style); iniSetEnum(&inifile,item->name,"ConnectionType",conn_types,item->conn_type,&ini_style);
changed=1;
break; break;
case 7: case 7:
item->reversed=!item->reversed; item->reversed=!item->reversed;
...@@ -235,11 +240,11 @@ int edit_list(struct bbslist *item,char *listpath) ...@@ -235,11 +240,11 @@ int edit_list(struct bbslist *item,char *listpath)
iniSetBool(&inifile,item->name,"Reversed",item->reversed,&ini_style); iniSetBool(&inifile,item->name,"Reversed",item->reversed,&ini_style);
break; break;
case 8: case 8:
item->screen_mode++; uifc.helpbuf= "`Screen Mode`\n\n"
if(item->screen_mode==SCREEN_MODE_TERMINATOR) "Select the screen size for this connection\n";
item->screen_mode=0; uifc.list(WIN_SAV,0,0,0,&(item->screen_mode),NULL,"Screen Mode",screen_modes);
changed=1;
iniSetEnum(&inifile,item->name,"ScreenMode",screen_modes,item->screen_mode,&ini_style); iniSetEnum(&inifile,item->name,"ScreenMode",screen_modes,item->screen_mode,&ini_style);
changed=1;
break; break;
case 9: case 9:
item->nostatus=!item->nostatus; item->nostatus=!item->nostatus;
...@@ -259,16 +264,21 @@ int edit_list(struct bbslist *item,char *listpath) ...@@ -259,16 +264,21 @@ int edit_list(struct bbslist *item,char *listpath)
iniSetString(&inifile,item->name,"UploadPath",item->uldir,&ini_style); iniSetString(&inifile,item->name,"UploadPath",item->uldir,&ini_style);
break; break;
case 12: case 12:
item->loglevel++; uifc.helpbuf= "`Log Level`\n\n"
if(item->loglevel>LOG_DEBUG) "Set the level of verbosity for file transfer info.\n\n";
item->loglevel=0; uifc.list(WIN_SAV,0,0,0,&(item->loglevel),NULL,"Log Level",log_levels);
changed=1;
iniSetInteger(&inifile,item->name,"LogLevel",item->loglevel,&ini_style); iniSetInteger(&inifile,item->name,"LogLevel",item->loglevel,&ini_style);
changed=1;
break; break;
case 13: case 13:
item->bpsrate=get_next_rate(item->bpsrate); uifc.helpbuf= "`Simulated BPS Rate`\n\n"
changed=1; "Select the rate which recieved characters will be displayed.\n\n"
"This allows ANSImation to work as intended.";
i=get_rate_num(item->bpsrate);
uifc.list(WIN_SAV,0,0,0,&i,NULL,"Simulated BPS Rate",rate_names);
item->bpsrate=rates[i];
iniSetInteger(&inifile,item->name,"BPSRate",item->bpsrate,&ini_style); iniSetInteger(&inifile,item->name,"BPSRate",item->bpsrate,&ini_style);
changed=1;
break; break;
} }
if(uifc.changes) if(uifc.changes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment