%box_labels->$setSpacing(1)
%box_labels->$addGroup("label",$array("Queue slots:","Slots per user:","Priority to:"))
%box_params=$new(NGLfserv::classes::customwidgets::box,%gb,box,vertical)
- %box_params->$setSpacing(1)
-
+ %box_params->$setSpacing(1)
%maxQueues = %box_params->$addWidget(spinbox,"\%MaxQueues",60,1000)
%maxQueues->$setMaxValue(999)
-
%eachQueues = %box_params->$addWidget(spinbox,"\%EachQueues",60,100)
$$->%comboBoxPriorityType=%box_params->$addWidget(combobox,$array("-","o","ov"))
$$->%comboBoxPriorityType->$setMaximumWidth(60)
$$->%comboBoxPriorityType->$setCurrentItem(%PriorityType)
- $$->%comboBoxPriorityType->$setTooltip($tr("You can set different priority type.<br> Users with priority will stay in queue before not-prioritized users.<br>-: Stands for no priority<br>o: Stands for priority to opped users<br>ov: Stands for opped and voiced users"))
%main_layout->$addWidget(%gb,0,1)
// Box Dcc properties
%gb->$setColumnLayout(1,Horizontal)
$$->%ckbReverse=$new(NGLfserv::classes::customwidgets::checkbox,%gb,cb,"Always use DCC Reverse","\%DccReverse")
$$->%ckbCloneDetection=$new(NGLfserv::classes::customwidgets::checkbox,%gb,cb,"Enable clone detection","\%CloneDetection")
-
- %maxSends->$setTooltip($tr("Maximum number of contemporary sends (globally)"))
- %eachSends->$setTooltip($tr("Maximum number of contemporary sends per user"))
- %maxResends->$setTooltip($tr("Number of times a failed transfer will be retried"))
- $$->%spinBoxInstantSend->$setTooltip($tr("Files with size smaller than this will be sent immediately"))
- $$->%spinBoxResendInterval->$setTooltip($tr("Seconds elapsed before retrying a dcc-transfer<br><b>Note: </b>Values bigger than 15 seconds are discouraged"))
- $$->%spinBoxLoadSendsDelay->$setTooltip($tr("Incomplete sends from previous sessions are saved: this is the delay before they start upon kvirc startup. If your connection to server takes more than this, consider increasing this value"))
-
- %maxQueues->$setTooltip($tr("Maximum number of contemporary queued files (globally)"))
- %eachQueues->$setTooltip($tr("Maximum number of contemporary queued files per user"))
- $$->%comboBoxPriorityType->$setTooltip($tr("Give priority in queue to:<ul><li><b>-</b>: none (all have same priority)</li><li><b>o</b>: operators users only</li><li><b>ov</b>: operators and voiced users only</li></ul>"))
-
- $$->%ckbReverse->$setTooltip($tr("Dcc-Chats and Dcc-Sends will<br> be effectuated connecting to the remote host instead of listening on a local port. This is very useful for users with private addresses that are unreachable from the extern."))
- $$->%ckbCloneDetection->$setTooltip($tr("Any user accessing the File Server will be scanned for clone detection and if recognized as a clone will be treated as a single user"))
- %main_layout->$addWidget(%gb,0,2)
-
+ %main_layout->$addWidget(%gb,0,2)
+
// Box color properties
%colors[]=$array(Dark Blue,Dark Green,Red,\
Dark Red,Violet,Orange,\
Blue,Light Violet,Dark Grey,Grey)
%gbColors=$new(NGLfserv::classes::customwidgets::groupbox,$$,gbColors,"File server colors",5,20)
%gbColors->$setColumnLayout(1,Vertical)
- %gbColors->$setTooltip($tr("Set the colors of File Server messages"))
%box_colors_labels=$new(NGLfserv::classes::customwidgets::box,%gbColors,box,vertical)
%box_colors_labels->$setSpacing(1)
%box_colors_labels->$addGroup("label",$array("Primary Color:","Secondary Color:"),120)
$$->%comboBoxColor1->$setCurrentItem($(%NGLc1 - 2))
$$->%comboBoxColor2->$setCurrentItem($(%NGLc2 - 2))
%main_layout->$addWidget(%gbcolors,1,0)
-
+
// Box find properties
%gbFind=$new(NGLfserv::classes::customwidgets::groupbox,$$,gbFind,"@find properties",5,20)
%gbFind->$setColumnLayout(1,Vertical)
%box_find_params=$new(NGLfserv::classes::customwidgets::box,%gbFind,box,vertical)
%findMsgs = %box_find_params->$addWidget(spinbox,"\%FindMsg",60,100)
%maxCache = %box_find_params->$addWidget(spinbox,"\%MaxCacheFind",60,1000)
- %findMsgs->$setTooltip($tr("Maximum number of reported found results"))
- %maxCache->$setTooltip($tr("<b>(Advanced)</b> Maxium number of cached results"))
%main_layout->$addWidget(%gbFind,1,1)
// Box other
$$->%ckbDebug=$new(NGLfserv::classes::customwidgets::checkbox,%gb,cb,"Enable debug","\%G_NGLdebug")
$$->%ckbNGLVersion=$new(NGLfserv::classes::customwidgets::checkbox,%gb,cb,"Respond to NGLVERSION","\%NGLRespondToNGLVersion")
%main_layout->$addWidget(%gb,1,2)
-
+
+ // Tooltips sends
+ %maxSends->$setTooltip($tr("Maximum number of contemporary sends (globally)"))
+ %eachSends->$setTooltip($tr("Maximum number of contemporary sends per user"))
+ %maxResends->$setTooltip($tr("Number of times a failed transfer will be retried"))
+ $$->%spinBoxInstantSend->$setTooltip($tr("Files with size smaller than this will be sent immediately"))
+ $$->%spinBoxResendInterval->$setTooltip($tr("Seconds elapsed before retrying a dcc-transfer<br><b>Note: </b>Values bigger than 15 seconds are discouraged"))
+ $$->%spinBoxLoadSendsDelay->$setTooltip($tr("Incomplete sends from previous sessions are saved: this is the delay before they start upon kvirc startup. If your connection to server takes more than this, consider increasing this value"))
+
+ // Tooltips queues
+ %maxQueues->$setTooltip($tr("Maximum number of contemporary queued files (globally)"))
+ %eachQueues->$setTooltip($tr("Maximum number of contemporary queued files per user"))
+ $$->%comboBoxPriorityType->$setTooltip($tr("You can set different priority type.<br> Users with priority will stay in queue before not-prioritized users.<br>-: Stands for no priority<br>o: Stands for priority to opped users<br>ov: Stands for opped and voiced users"))
+
+ // Tooltips DCC
+ $$->%ckbReverse->$setTooltip($tr("Dcc-Chats and Dcc-Sends will<br> be effectuated connecting to the remote host instead of listening on a local port. This is very useful for users with private addresses that are unreachable from the extern."))
+ $$->%ckbCloneDetection->$setTooltip($tr("Any user accessing the File Server will be scanned for clone detection and if recognized as a clone will be treated as a single user"))
+
+ // Tooltips colors
+ %gbColors->$setTooltip($tr("Set the colors of File Server messages"))
+
+ // Tooltips @find
+ %findMsgs->$setTooltip($tr("Maximum number of reported found results"))
+ %maxCache->$setTooltip($tr("<b>(Advanced)</b> Maxium number of cached results"))
+
+ // Tooltips other
+ $$->%ckbDebug->$setTooltip($tr("Enables debug messages. This could be useful to make a report of any anomaly you could find"))
+ $$->%ckbNGLVersion->$setTooltip($tr("File server will respond to command /ctcp nick NGLVERSION telling the script version in use"))
+
objects.connect $$->%spinBoxInstantSend valueChanged $$ commit
objects.connect $$->%spinBoxResendInterval valueChanged $$ commit
objects.connect $$->%comboBoxPriorityType activated $$ commit