• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/qt/

Lines Matching refs:Prefs

181     QWidget * l = checkBoxNew( tr( "&Enable web client" ), Prefs::RPC_ENABLED );
184 l = hig->addRow( tr( "Listening &port:" ), w = spinBoxNew( Prefs::RPC_PORT, 0, 65535, 1 ) );
186 hig->addWideControl( w = checkBoxNew( tr( "Use &authentication" ), Prefs::RPC_AUTH_REQUIRED ) );
188 l = hig->addRow( tr( "&Username:" ), w = lineEditNew( Prefs::RPC_USERNAME ) );
190 l = hig->addRow( tr( "Pass&word:" ), w = lineEditNew( Prefs::RPC_PASSWORD, QLineEdit::Password ) );
192 hig->addWideControl( w = checkBoxNew( tr( "Only allow these IP a&ddresses to connect:" ), Prefs::RPC_WHITELIST_ENABLED ) );
194 l = hig->addRow( tr( "Addresses:" ), w = lineEditNew( Prefs::RPC_WHITELIST ) );
209 setPref( Prefs::ALT_SPEED_LIMIT_TIME_DAY, value );
221 l = checkBoxNew( tr( "Limit &download speed (%1):" ).arg( speed_K_str ), Prefs::DSPEED_ENABLED );
222 r = spinBoxNew( Prefs::DSPEED, 0, INT_MAX, 5 );
226 l = checkBoxNew( tr( "Limit &upload speed (%1):" ).arg( speed_K_str ), Prefs::USPEED_ENABLED );
227 r = spinBoxNew( Prefs::USPEED, 0, INT_MAX, 5 );
248 r = spinBoxNew( Prefs :: ALT_SPEED_LIMIT_DOWN, 0, INT_MAX, 5 );
252 r = spinBoxNew( Prefs :: ALT_SPEED_LIMIT_UP, 0, INT_MAX, 5 );
255 QCheckBox * c = checkBoxNew( tr( "&Scheduled times:" ), Prefs::ALT_SPEED_LIMIT_TIME_ENABLED );
258 QWidget * w = timeEditNew( Prefs :: ALT_SPEED_LIMIT_TIME_BEGIN );
264 w = timeEditNew( Prefs :: ALT_SPEED_LIMIT_TIME_END );
283 box->setCurrentIndex( box->findData( myPrefs.getInt( Prefs :: ALT_SPEED_LIMIT_TIME_DAY ) ) );
302 hig->addWideControl( checkBoxNew( tr( "Show Transmission icon in the &notification area" ), Prefs::SHOW_TRAY_ICON ) );
303 hig->addWideControl( checkBoxNew( tr( "Show &popup notifications" ), Prefs::SHOW_DESKTOP_NOTIFICATION ) );
317 myWidgets[Prefs::PEER_PORT]->setEnabled( true );
327 myWidgets[Prefs::PEER_PORT]->setEnabled( false );
337 QSpinBox * s = spinBoxNew( Prefs::PEER_PORT, 1, 65535, 1 );
350 hig->addWideControl( checkBoxNew( tr( "Pick a &random port every time Transmission is started" ), Prefs :: PEER_PORT_RANDOM_ON_START ) );
351 hig->addWideControl( checkBoxNew( tr( "Use UPnP or NAT-PMP port &forwarding from my router" ), Prefs::PORT_FORWARDING ) );
355 hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, FD_SETSIZE, 5 ) );
356 hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, FD_SETSIZE, 5 ) );
362 hig->addWideControl( w = checkBoxNew( tr( "Enable &uTP for peer connections" ), Prefs::UTP_ENABLED ) );
413 setPref( Prefs::ENCRYPTION, value );
424 QWidget * l = checkBoxNew( tr("Enable &blocklist:"), Prefs::BLOCKLIST_ENABLED );
425 QWidget * e = lineEditNew( Prefs::BLOCKLIST_URL );
440 l = checkBoxNew( tr( "Enable &automatic updates" ), Prefs::BLOCKLIST_UPDATES_ENABLED );
451 myWidgets.insert( Prefs :: ENCRYPTION, box );
455 hig->addWideControl( w = checkBoxNew( tr( "Use PE&X to find more peers" ), Prefs::PEX_ENABLED ) );
457 hig->addWideControl( w = checkBoxNew( tr( "Use &DHT to find more peers" ), Prefs::DHT_ENABLED ) );
459 hig->addWideControl( w = checkBoxNew( tr( "Use &Local Peer Discovery to find more peers" ), Prefs::LPD_ENABLED ) );
475 const QString myPath = myPrefs.getString( Prefs::SCRIPT_TORRENT_DONE_FILENAME );
479 onLocationSelected( path, Prefs::SCRIPT_TORRENT_DONE_FILENAME );
486 const QString myPath = myPrefs.getString( Prefs::INCOMPLETE_DIR );
490 onLocationSelected( path, Prefs::INCOMPLETE_DIR );
497 const QString myPath = myPrefs.getString( Prefs::DIR_WATCH );
501 onLocationSelected( path, Prefs::DIR_WATCH );
508 const QString myPath = myPrefs.getString( Prefs::DOWNLOAD_DIR );
512 onLocationSelected( path, Prefs::DOWNLOAD_DIR );
535 hig->addWideControl( checkBoxNew( tr( "Show &options dialog" ), Prefs::OPTIONS_PROMPT ) );
536 hig->addWideControl( checkBoxNew( tr( "&Start when added" ), Prefs::START ) );
537 hig->addWideControl( checkBoxNew( tr( "Mo&ve .torrent file to the trash" ), Prefs::TRASH_ORIGINAL ) );
539 l = checkBoxNew( tr( "Automatically &add torrents from:" ), Prefs::DIR_WATCH_ENABLED );
550 l = checkBoxNew( tr( "Stop seeding at &ratio:" ), Prefs::RATIO_ENABLED );
551 r = doubleSpinBoxNew( Prefs::RATIO, 0, INT_MAX, 0.5, 2 );
555 l = checkBoxNew( tr( "Stop seeding if idle for &N minutes:" ), Prefs::IDLE_LIMIT_ENABLED );
556 r = spinBoxNew( Prefs::IDLE_LIMIT, 1, INT_MAX, 5 );
587 hig->addRow( tr( "Maximum active &downloads:" ), spinBoxNew( Prefs::DOWNLOAD_QUEUE_SIZE, 1, INT_MAX, 1 ) );
588 hig->addRow( tr( "Downloads sharing data in the last N minutes are &active:" ), spinBoxNew( Prefs::QUEUE_STALLED_MINUTES, 1, INT_MAX, 10 ) );
593 hig->addWideControl( checkBoxNew( tr( "Append \".&part\" to incomplete files' names" ), Prefs::RENAME_PARTIAL_FILES ) );
595 l = myIncompleteCheckbox = checkBoxNew( tr( "Keep &incomplete files in:" ), Prefs::INCOMPLETE_DIR_ENABLED );
603 l = myTorrentDoneScriptCheckbox = checkBoxNew( tr( "Call scrip&t when torrent is completed:" ), Prefs::SCRIPT_TORRENT_DONE_ENABLED );
619 PrefsDialog :: PrefsDialog( Session& session, Prefs& prefs, QWidget * parent ):
646 keys << Prefs :: RPC_ENABLED
647 << Prefs :: ALT_SPEED_LIMIT_ENABLED
648 << Prefs :: ALT_SPEED_LIMIT_TIME_ENABLED
649 << Prefs :: ENCRYPTION
650 << Prefs :: BLOCKLIST_ENABLED
651 << Prefs :: DIR_WATCH
652 << Prefs :: DOWNLOAD_DIR
653 << Prefs :: INCOMPLETE_DIR
654 << Prefs :: INCOMPLETE_DIR_ENABLED
655 << Prefs :: SCRIPT_TORRENT_DONE_FILENAME;
702 case Prefs :: RPC_ENABLED:
703 case Prefs :: RPC_WHITELIST_ENABLED:
704 case Prefs :: RPC_AUTH_REQUIRED: {
705 const bool enabled( myPrefs.getBool( Prefs::RPC_ENABLED ) );
706 const bool whitelist( myPrefs.getBool( Prefs::RPC_WHITELIST_ENABLED ) );
707 const bool auth( myPrefs.getBool( Prefs::RPC_AUTH_REQUIRED ) );
714 case Prefs :: ALT_SPEED_LIMIT_TIME_ENABLED: {
720 case Prefs :: BLOCKLIST_ENABLED: {
726 case Prefs :: DIR_WATCH:
727 myWatchButton->setText( QFileInfo(myPrefs.getString(Prefs::DIR_WATCH)).fileName() );
730 case Prefs :: SCRIPT_TORRENT_DONE_FILENAME: {
736 case Prefs :: PEER_PORT:
741 case Prefs :: DOWNLOAD_DIR: {
747 case Prefs :: INCOMPLETE_DIR: {
753 case Prefs :: INCOMPLETE_DIR_ENABLED: {
794 else if( key == Prefs::ENCRYPTION )