Changeset 3576
- Timestamp:
- 08/20/08 06:47:02 (5 years ago)
- Location:
- branch/PacketManipulator
- Files:
-
- 2 modified
-
PM/Gui/Tabs/OperationsTab.py (modified) (3 diffs)
-
TODO (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/PacketManipulator/PM/Gui/Tabs/OperationsTab.py
r3457 r3576 241 241 ) 242 242 243 idx = 0 243 244 for lbl, stock, cb in zip(labels, stocks, callbacks): 244 245 action = gtk.Action(None, lbl, None, stock) 245 246 action.connect('activate', cb, operation) 246 247 menu.append(action.create_menu_item()) 247 item = action.create_menu_item() 248 249 if idx in (1, 2) and not operation.has_pause or \ 250 idx == 3 and not operation.has_stop or \ 251 idx == 4 and not operation.has_restart: 252 item.set_sensitive(False) 253 254 menu.append(item) 255 256 idx += 1 248 257 249 258 menu.show_all() … … 303 312 304 313 def __on_clear(self, action, operation): 305 # TODO: try a better method306 314 iter = self.store.get_iter_first() 307 315 308 while iter: 316 current = len(self.store) 317 318 while current >= 0: 319 iter = self.store.get_iter_from_string((current, )) 309 320 operation = self.store.get_value(iter, 0) 310 321 … … 312 323 self.store.remove(iter) 313 324 314 iter = self.store.iter_next(iter)325 current -= 1 315 326 316 327 class OperationsTab(UmitView): -
branch/PacketManipulator/TODO
r3561 r3576 9 9 - hexview with insert mode 10 10 - plugins system (UmitPlugins) / geoip as example plugin 11 - fix the send/receive on windows12 11 - sending/receiving a list of packets instead of a single 13 12 - switching to pyprocessing? 14 13 - documentation and test cases 15 - rewrite the UMPA backend 16 - create a method to set docstrings for Scapy (load an xml definitions file) 14 - rewrite the UMPA backend (complete/remove) 17 15 - page to show relationships between connections 18 16 - graph page like scapy … … 22 20 - Implementing a get_icon for operation to use only the object in ListStore 23 21 - same in property grid 24 - disable the actions in operation popup menu (has_pause ..)25 - rewrite the clean action26 - implement a popup menu in proto hierarchy to remove layers
