Changes between Version 3 and Version 4 of ProgramStructure


Ignore:
Timestamp:
31/12/2016 03:52:39 (9 months ago)
Author:
gfarmerfr
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgramStructure

    v3 v4  
    88'Notebooks' and 'Notebook Tabs' are contained in their respective python files, with User Info and User Browse sharing the '''!UserTabs''' notebook class in userinfo.py.
    99
    10 The !UserBrowse class used to use a browsetreemodels.py file for storing and accessing folder/file data, but I removed that.
    11 
    1210pynicotine/gtkgui/'''utils.py''' contains a bunch of functions that are shared across different files, such as !InitialiseColumns, a function for creating listview/treeview columns.
    1311!AppendLine is used for adding text to all textviews.
    1412
    1513The Notebooks are wrapped with the !IconNotebook class, which allows for an icon (which changes) and close button on each tab.
    16 
    17 pynicotine/'''utils.py''' contains the translation function _() and the shares scanning code.
    1814
    1915=== Config ===
     
    2319
    2420=== Networking ===
    25 pynicotine/'''pynicotine.py''' holds the networking callbacks. They pass thru frame.py's callback, networkcallback to !OnNetworkEvent where the proper function (that's in pynicotine.py's events dict) is executed.
     21pynicotine/'''pynicotine.py''' holds the networking callbacks. They pass through frame.py's callback, networkcallback to !OnNetworkEvent where the proper function (that's in pynicotine.py's events dict) is executed.
    2622
    2723'''slskproto.py''' is the networking thread. lots of undocumented stuff, here. Server and Peer messages get downloaded and get sent off to be parsed in slskmessages.py, unless they are peerinit messages. Outgoing messages are packed and sent from here, as well.
     
    3329
    3430pynicotine/gtkgui/'''transferlist.py''' is a class that gets incorporated in both downloads.py and uploads.py. The update function is probably the most important part of that. Currently, I have transfers in a tree, sorted by username.
     31
    3532=== Etc ===
    3633Search, the about dialogs, Interests, and the buddies list have their own classes and functions.
     
    3936
    4037Often you'll see a notebook class that has a function with the same names as the tab class. These will try to run same function in each class.
    41 === To do ===
    42 More extensive documentation would be a good thing.