155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
# File 'lib/watobo/gui/full_scan_dialog.rb', line 155
def initialize(owner, project, opts)
super(owner, opts)
@project = project
smf = FXHorizontalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_TOP)
FXLabel.new(smf, "Advanced Settings")
gbox = FXGroupBox.new(self, "Excluded Chats",LAYOUT_SIDE_RIGHT|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)
@excludedChats = FXDataTarget.new('')
@excludedChats.value = @project.scan_settings[:excluded_chats].join(", ")
FXTextField.new(gbox, 0, @excludedChats, FXDataTarget::ID_VALUE, :opts => LAYOUT_FILL_X|FRAME_GROOVE|FRAME_SUNKEN)
frame = FXHorizontalFrame.new(gbox, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_RIGHT)
button = FXButton.new(frame, "View/Edit" , nil, nil, :opts => BUTTON_NORMAL|LAYOUT_RIGHT)
button.enable
button.connect(SEL_COMMAND) do |sender, sel, item|
end
@ignoreEqualChats = FXCheckButton.new(frame, "Ignore Similar Chats", nil, 0, ICON_AFTER_TEXT|LAYOUT_LEFT)
@ignoreEqualChats.checkState = false
gbox = FXGroupBox.new(self, "Forwarding Proxy",LAYOUT_SIDE_RIGHT|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)
frame = FXHorizontalFrame.new(gbox, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_RIGHT)
FXLabel.new(frame, "Current: ")
@forwardingProxy = FXDataTarget.new('')
FXTextField.new(frame, 0, @forwardingProxy, FXDataTarget::ID_VALUE, :opts => LAYOUT_FILL_X|FRAME_GROOVE|FRAME_SUNKEN)
@forwardingProxy.value = @project.settings[:proxy]
button = FXButton.new(frame, "View/Edit" , nil, nil, :opts => BUTTON_NORMAL|LAYOUT_RIGHT)
button.enable
button.connect(SEL_COMMAND, method(:startProxyDialog))
gbox = FXGroupBox.new(self, "Session Management",LAYOUT_SIDE_RIGHT|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)
frame = FXHorizontalFrame.new(gbox, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_RIGHT)
button = FXButton.new(frame, "View/Edit" , nil, nil, :opts => BUTTON_NORMAL|LAYOUT_RIGHT)
button.enable
button.connect(SEL_COMMAND, method(:startSessionManagementDialog))
end
|