[haiku-development] Re: Quick network preference application update

  • From: Philippe Houdoin <philippe.houdoin@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 25 Jan 2011 12:03:42 +0100

From: Alexander von Gluck <kallisti5@xxxxxxxxxxx>
> Matt mentioned this other preference applet.  I glanced at it but didn't
> realize it was updated so recently.
>
> http://dl.dropbox.com/u/5560191/screenshot6.png

I try to keep it buildable state for that purpose only: so that
someone could get some inspiration.

> I might be able to add my custom drawn BListView to it.  I think going
> forward I will try to get in touch directly with phoudoin and see if he
> is open to some collaboration on getting some additional progress made
> on it.

Of course I am!

The current code there (src/tests/kits/net/preflet) is able to:
- show a live (it listen network notifications) interfaces list
- display custom interface icon (interface name) if any found in
resources or revert to a default one (wired or wireless)
- use multirows to display main information about an interface (name,
status, IPv4 address, configuration mode [static/DHCP].
- display disabled interface(s) as disabled items in a listview, aka dimmed.

Joined wireless network name and encryption are now yet displayed,
though, and the RadioView is not yet integrated too.
I guess that something that could be done quickly. The configuration
part could reuse the code of today Network preference, until we find a
better way to integrate it.
That's probably the next step to do, and contributions are, obvoulsy, welcome.

Adrien suggested:
> What about an outline view of some kind, with the adapters at the top level 
> and the wireless networks (if any) and/or profiles
> for each of them one level below ?

I want to try this actually, as this will keep future multirow
"bloating" temptation under control while keeping the whole UI well
integrated in one single window.

One issue is the detected wireless networks list: as soon as you have
two or more wireless adapters, the same wlan is detected by both (more
or less), but not necessarily with the same link quality O_o and, both
can be associated with dictinct wlan or, oh fun, the same one!
We should find a visual way to display both information:
- which wlan is detected by with adapter
- which wlan is associated with which adapter, if any.

One way to do it is to have another panel/tab listing all detected
wlan, with a connect/disconnect buttons and automatically select the
best interface to do it when there is several available to do it (it's
not that uncommun these days, with builtin 802.11a/b/g wireless + USB
802.11n plug for instance...).

Clearly, these issues don't needs to be resolved first.

Sean Collins said:
> It makes the whole networking setup very self explanatory.

My main concerns about network settings is that it's not limited to
only interface(s) and wireless network setup, but should also cover
hostname, user-defined domain/search names, extra DNS servers,
ZeroConfig name, network services enabled/disabled and their
parameters, and that each one of these settings could be set
differently depending on a "use case profile" (at home, at office,
hotspot mode, dial up only, etc).
Plus we should also add IPv6 support soon in the future (IPv4 free
addresses are running away soon).

That why the current preflet under src/tests/kits/net/preflet is
add-ons based...

Stephan said:
> This looks cool, but the separator lines above and below the list view
> could go, they don't serve any purpose IMHO.

... and why the GUI have a tabview (not visible on Alexander last
screenshot, instead he inserts a separation line)
*and* a separation line between the top part and the buttons at
bottom, which are supposed to commit all changes made (interfaces,
naming, services, whatever else) in a
transactional way.

As the profile API is missing, I guess for start these visual elements
should be simply postponed, though.

Bye,
  Philippe Houdoin.

Other related posts: