| 1 package rero.dialogs; 2 3 import java.awt.*; 4 import java.awt.event.*; 5 6 import javax.swing.*; 7 import javax.swing.event.*; 8 9 import java.util.*; 10 import java.net.*; 11 12 import rero.dck.items.*; 13 import rero.config.*; 14 import rero.dck.*; 15 16 import rero.client.dcc.*; 17 18 public class DCCOptions extends DMain 19 { 20 public String getTitle() 21 { 22 return "DCC Options"; 23 } 24 25 public String getDescription() 26 { 27 return "DCC Options"; 28 } 29 30 public void setupDialog() 31 { 32 addBlankSpace(); 33 34 addSelectInput("dcc.onsend", 0, new String [] { "Ask", "Auto Accept", "Ignore" }, "On Send Request: ", 'S', 55); 35 addSelectInput("dcc.exists", 0, new String [] { "Ask", "Overwrite", "Resume", "Ignore" }, " If file exists: ", 'I', 55); 36 37 addBlankSpace(); 38 addDirectoryInput("dcc.saveto", ClientDefaults.dcc_saveto, "Download directory: ", 'd', 55); 39 addCheckboxInput("dcc.fillspaces", ClientDefaults.dcc_fillspaces, "Fill spaces in filename when sending file", 'F', FlowLayout.LEFT); 40 41 addBlankSpace(); 42 addSelectInput("dcc.onchat", 0, new String [] { "Ask", "Auto Accept", "Ignore" }, "On Chat Request: ", 'C', 55); 43 44 addBlankSpace(); 45 46 DItem itema = addOptionInput("dcc.localinfo", ClientDefaults.dcc_localinfo, new String [] { LocalInfo.RESOLVE_FROM_SERVER, LocalInfo.RESOLVE_AUTOMATIC }, "DCC IP Address: ", 'I', 55); 47 itema.getComponent().setToolTipText("<html>Select how your local host info is determined.<br>If neither of the automatic options work an<br>IP address can be manually input into this<br>textfield.</html>"); 48 49 DGroup temp = addDialogGroup(new DGroup("DCC Ports", 50) 50 { 51 public void setupDialog() 52 { 53 addStringInput("dcc.low" , ClientDefaults.dcc_low+"" , " First: ", 'f', 60); 54 addStringInput("dcc.high", ClientDefaults.dcc_high+"", " Last: ", 'l', 60); 55 } 56 }); 57 } 58 } 59 60 61 62 | Popular Tags |