History log of /haiku/src/preferences/network/InterfaceView.cpp
Revision Date Author Comments
# 61f5f30c 14-Feb-2022 Alexander von Gluck IV <kallisti5@unixzen.com>

preflet/network: Fix window dynamics, scale right pane only

* Left list now static in width
* Right dynamic
* Fix dynamic nature of right networkinterface info pane

Change-Id: I678a3355c95ed5c4c759b5b1e3715e5e170979fd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4962
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 6610656e 27-Oct-2022 Augustin Cavalier <waddlesplash@gmail.com>

Network preferences: Add type specification to appease GCC2.


# b2c77ad2 25-Oct-2022 Augustin Cavalier <waddlesplash@gmail.com>

Network: Add a BNetworkDevice::GetNetworks() method and use it in the GUI.

The GetNextNetwork() method is really inefficient: it fetches all the
networks at once from the kernel every single time and then winds
up returning only one of them. In parts of the GUI that iterate over
all networks more than once per refresh (sometimes within a loop, even!)
this was often a noticeable lag on the GUI, especially with OpenBSD
drivers which have extra overhead to do struct translation in the
ioctl handler.

Now, we have a way to fetch all scan results at once and just iterate
over them as many times as we need, and this is what NetworkStatus
and Network preferences now do, saving lots of time and effort.


# 02ad9218 01-Aug-2021 John Scipione <jscipione@gmail.com>

Network: Sort network menu items w/o deleting

* Delete dropped out networks.
* Add in newly discovered networks.
* Add static (aka class) compare method to WirelessNetworkMenuItem
that is used to sort items by signal strength descending.

Add == operator to wireless_network struct to determine if
existing items have a known network attached.

Remove the non-network items from the menu, save them, sort
network menu items, then add non-network items back into the
menu.

Update NetworkStatus preflet to use same compare method as Network
preflet. signal_strength_compare function had a bool return value
instead of int which worked to sort items the first time, but does
not work on successive compares.

By not deleting and recreating the menu items each Pulse(),
the Network preflet no longer crashes on update. The menu flashes
on update still but doesn't crash.

Fixes #12024

Change-Id: Ie5b22cea4e66350b9c5df8e3b8de266ede50ad6d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4243
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>


# 5de2f989 23-Nov-2019 Augustin Cavalier <waddlesplash@gmail.com>

Network: Remove TODO and "(---)" in device interface display view.

The current network is already displayed in the next field, so
displaying it here would be redundant.


# bc622f6b 15-Oct-2018 Humdinger <humdingerb@gmail.com>

Fix missing localization

This addresses some of what's reported in ticket #14637.

* Keymap preferences: Localize key labels. Translators have
to be careful not too use too long words here...

* Media preferences: Fix typo "SoundFonts" -> "SoundFont"
The two popup menus, Video input/output, both use "<none>",
which when the catkeys are collected is reduced to one item.
Apparently, Italian likes to have different tranlsations for
them. I hope to fix that by using B_TRANSLATE_COMMENT with
differing comments. Not sure if that'll work...

* Network preferences: Localize "on/off" and "Enable/Disable"
in the Services.

* Repositories preferences:
Add RepoRow.cpp to DoCatalogs.

* Shortcuts preferences: Localize "Left/Right/Both/Either/None"

* Bluetooth replicant: Localize menu items and alerts.

* DeskCalc: Localize button names.

* HaikuDepot:
- Use BStringFormat and variables to replace for the WorkStatusView.
- Put package name in single quotes; nicer if you have package names
with spaces.
- Avoid leading and trailing spaces in translatable strings. Those
can be overlooked b the translator.
- Use B_UTF8_ELLIPSIS instead of "...".

Change-Id: Ia32908f9faad5188aa87c918c31229277decbda9
Reviewed-on: https://review.haiku-os.org/631
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 45bc01d2 12-Sep-2018 Augustin Cavalier <waddlesplash@gmail.com>

ifconfig & Network preferences: Actually trigger scans using BNetworkDevice.

Fixes #12034, and a variety of other strange "no wireless networks
appear" bugs that have plagued Haiku for years.

Change-Id: I734cb8084e8a626b8e03511519609bf80c1559eb
Reviewed-on: https://review.haiku-os.org/552
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# ba931975 02-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

Network: fixed uninitialized members.

* CIDs 1251073, 1292681, 1292686, and 1292687 -- all irrelevant, though.


# 386b6f15 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: disabling/enabling devices is now working.

* Disabled the "renegotiate" button for now -- this will move to the
interface add-ons, at least some day.


# f6c7cf44 05-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Network: integrated former hardware view from add-on.

* The interfaces logic is within the main application, so is the
new interface view.
* Disabling/renegotiating does not work yet.
* Reveals a bug in some interface code; when you click on an ethernet
device first, there is no place for the wireless menu. When you then
press on a wireless device, it crashes in BMenuField code.
In the other direction, there is then an empty space.
* Fixed list item width reporting.


# ba931975e57d2c34c9093c970330898454062245 02-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

Network: fixed uninitialized members.

* CIDs 1251073, 1292681, 1292686, and 1292687 -- all irrelevant, though.


# 386b6f15e6dfe92396855702984dad51973ab8fc 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

Network: disabling/enabling devices is now working.

* Disabled the "renegotiate" button for now -- this will move to the
interface add-ons, at least some day.


# f6c7cf44b56eda3d39841a5a05a9d0666c32a717 05-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Network: integrated former hardware view from add-on.

* The interfaces logic is within the main application, so is the
new interface view.
* Disabling/renegotiating does not work yet.
* Reveals a bug in some interface code; when you click on an ethernet
device first, there is no place for the wireless menu. When you then
press on a wireless device, it crashes in BMenuField code.
In the other direction, there is then an empty space.
* Fixed list item width reporting.