lp:~elementary-pantheon/switchboard-plug-networking/rewrite
This is a rewrite of the networking plug.
Please: if you want to push something to this branch, ping me on Slack first and then push it or better, propose a merge proposal.
This branch features a full rewrite of the networking plug reorganizing code and it's structure to be less hardcoded and more readable / extendable. The major concept here is that the common part of code doesn't contain any UI code anymore, everything is done on the actual plug side.
We now have two main classes of the common code: DeviceManager and Device. The manager takes care of adding / removing devices from the list and updating their properites so they can be always up to date in the UI. Device class holds those properties as well as NetworkManager's Device class and useful functions for clients.
The pages are now split into Page and DevicePage, the Page is the main header UI, and DevicePage is the holder of the Device and adds it's own widgets into the Page. It is now possible to create custom pages without having to supply a device because of the Page class: see ProxyPage.
DeviceItems are now subclassing a base class "Item" which provides a UI for them, DeviceItems contain a Device much of like how it is now with pages.
Other changes include simplification of handling state updates and moving the parts of the code from Plug to relevant classes.
Don't look at the commented code, it's just an old code or reminder what needs to be done before getting this branch merged into trunk.
- Get this branch:
- bzr branch lp:~elementary-pantheon/switchboard-plug-networking/rewrite
Branch merges
Branch information
Recent revisions
- 371. By Adam Bieńkowski
-
Add ethernet page; move get_activity_
information to device class; add updating property to prevent switch updating issues; remove unneded things in InfoBox class - 369. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
- 368. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
- 367. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
- 366. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
- 365. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
- 364. By Launchpad Translations on behalf of elementary-pantheon
-
Launchpad automatic translations update.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)