History log of /haiku/src/apps/networkstatus/NetworkStatusView.cpp
Revision Date Author Comments
# 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.


# 702ff421 13-Jun-2022 Javier Steinaker <jsteinaker@gmail.com>

NetworkStatus: do not show non-present interfaces

Used explicit type declaration instead of auto and old style
map erase() function to (hopefully) make it compatible with gcc2 builds.

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


# 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>


# 8ff235aa 09-Jan-2021 Humdinger <humdingerb@gmail.com>

Sentence casing

+ avoid spaces at the end of a translatable string, as those can
easily be missed by the translators.

Change-Id: Ic41e613b44e4248529d1f68f6bab13a048e66f3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3612
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 96fbe0f7 05-Jan-2021 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

NetworkStatus: build fix.


# b81d67ed 24-Dec-2020 Jeremy Visser <jeremyvisser@google.com>

NetworkStatus: print all interface addresses, not just the first

The NetworkStatus applet by default only shows the first address
on the interface, assuming IPv4 semantics and ignoring others.

This assumption doesn't hold true for IPv6-enabled systems, which
not only have both IPv4+IPv6 addresses, but typically multiple
IPv6 addresses (link-local and global at a minimum).

In addition, it's not unheard of to have multiple IPv4 addresses
on a single interface, even though it's difficult to configure in
Haiku at time of writing.

This change loops through all available addresses and prints them
in the status.

No attention to ordering is made; future enhancements could
include sorting IPv6 global/link-local, displaying the type, etc.

Change-Id: Ib437e32fc878b5baafa8c2437659e10fb6fcffbf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3550
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# ab05d368 17-Mar-2019 sushilhub <sushil.bit.cse@gmail.com>

src/apps: style fixes

* add break statement to the last clause of switch/cases
* fix some other minor issues

Change-Id: I9ac3dac0cda0b14043b975938caea88b79bb749f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1299
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 47102c07 24-Feb-2020 X512 <danger_mail@list.ru>

Interface Kit: introduce B_TRANSPARENT_BACKGROUND flag

BeOS didn't support transparent views. As documented in the Be Book,
SetViewColor(B_TRANSPARENT_COLOR) only effect is to not fill the
invalidated areas with the view color before calling Draw() (it avoids
flickering, especially when combined with B_FULL_UPDATE_ON_RESIZE).

A previous change made B_TRANSPARENT_COLOR actually make the view
transparent (that is, additionally to the above, the underlying view is
drawn before the transparent children), but it creates compatibility
issues.

In order to keep the API compatible with BeOS, the new behavior is now
enabled explicitly using the B_TRANSPARENT_VIEW flag. This also opens
for future developments like allowing a view color with an alpha
channel (not supported yet).

Adjust programs that require transparent views.

Fixes #15744, #15745.
Helps with #15645.

Change-Id: I529574ea23db0a23579521b263bc8d572775e35a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2275
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 485a9ea0 24-Feb-2020 X512 <danger_mail@list.ru>

NetworkStatus: use transparent view

Change-Id: I707f043e08b7f54de1304c7697e19621ff279c7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2277
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# efafab64 02-Nov-2018 Axel Dörfler <axeld@pinc-software.de>

Deskbar: Resizable tray

* Adds max width and height arguments to
instantiate_deskbar_(item|entry).
* Old applications just stay with a 16x16 scaled icon, though.
* All used apps within the repository are converted to the new call
besides the input_server input method icon (that will need further
API changes in the input_server).

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


# 4a531db1 03-Aug-2017 Philippe Houdoin <philippe.houdoin@gmail.com>

networkstatus: test explicit boolean expression


# cb7833c7 03-Aug-2017 Philippe Houdoin <philippe.houdoin@gmail.com>

networkstatus: add no NoLink and LinkNoConfig status
An interface that fail to configure due to link lost will be
reported to have "No Link" instead of to be still "Configuring...",
which was not the actual state.


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


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

Revert "Move getifaddrs to libnetwork again."

This reverts commit 31ea76548a64b232ed10cb444bf84ca1f7e40b0f.

Adrien, please try again without clobbering the otherwise nice
BNetworkInterface API!

Conflicts:
src/kits/network/getifaddrs.cpp


# 31ea7654 20-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Move getifaddrs to libnetwork again.

* BNetworkInterfaceAddress is moved to libnetwork. It is modified to not
use BNetworkAddress (which is in libbnetapi) and instead use sockaddr
and sockaddr_storage directly. All callers are adjusted to this.
* Some support code is shared between BNetworkInterface and
BNetworkInterfaceAddress, move it to libnetwork but in the BPrivate
namespace.


# aba4cb20 04-Sep-2014 Michael Lotz <mmlr@mlotz.ch>

NetworkStatus: Sort wireless networks by signal strength.


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 5bb799c2 10-Nov-2013 Przemysław Buczkowski <przemub@przemub.pl>

NetworkStatus: show authentication mode in WiFi list. #9666

* now WirelessNetworkMenuItem appends authentication mode to its label

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 8897f278 08-Nov-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

NetworkStatus: Use the network API
Use the Network API instead of querying the net_stack via socket.


# 6c7caf44 26-Sep-2013 Axel Dörfler <axeld@pinc-software.de>

NetworkStatus now joins networks by address instead of name.

* This solves part of ticket #10008.


# 31535ac6 01-May-2013 Adrien Destugues <pulkomandy@gmail.com>

Make BAboutWindow modal

�* Set its type to B_MODAL_WINDO, and also set B_NOT_MOVABLE
* Since this removes the window tab, add an "Ok" button to close the window
* Remove the GetWindow mess and just use it as any regular window
* Adjust all callers again

The AlertPosition method doesn't seem to work right, the window pops up
offset to the right. I also noticed that some of our calls to BAboutWindow
are actually not reacable because we removed Abutrequested from the apps.
Maybe we should clean them up (locale preflet and activity monitor are examples)

More annoying is the fact that opening a modal window from a deskbar replicant
is modal against the whole deskbar. Not sure what to do about that.


# fd19c736 30-Apr-2013 Adrien Destugues <pulkomandy@gmail.com>

Fix BAboutWindow lifecycle

BAboutWindow returned false in QuitRequested in order to hide instead of closing.
Not only this keeps a BLooper running for a rarely used window, but it also
prevents quitting an application in the window was not destroyed first.

* Remove aforementioned QuitRequested method,
* Add a static GetWindow method that returns the existing about window, if there
is one, or creates one if there is not. A boolean can be set to tell the caller
what happened,
* Adjust all callers to use that new method, instead of managing the window themselves.


# 7fe8b2bf 17-Dec-2012 John Scipione <jscipione@gmail.com>

Also lock fAboutWindow before Quit()ting in other apps


# c191daa8 12-Nov-2012 John Scipione <jscipione@gmail.com>

remove uneeded comment


# 5070e7e2 12-Nov-2012 John Scipione <jscipione@gmail.com>

Init fAboutWindow NULL first


# 730a45ee 12-Nov-2012 John Scipione <jscipione@gmail.com>

Rework NetworkStatus to use a non-modal BAboutWindow


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# ff09c7bf 26-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

Now is transparent on the desktop as other replicants.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 937ca113 15-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Reorder names alphabetically.


# 5c46b171 14-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Rework NetworkStatus's status tracking a bit.

NetworkStatus now tracks the status of each interface separately, and
uses that information to make correct comparisons for notifications.
Previously, it would only send notifications using whatever interface
was last in the enumeration list, and if an earlier interface had a higher
configuration level than that, the notification would incorrectly be sent
as occurring on the last interface. We now send notifications for each
interface separately. The status shown by the deskbar icon remains that
of the most highly configured detected interface. Fixes #8468.


# 43c68287 03-Apr-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

NetworkStatus: Simplify state change notification code


# e58807ed 15-Mar-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

networkstatus: Scale icon to large and small sizes

* This gives us a nice status icon to use for
notification messages.


# b44d24c0 05-Mar-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

network status: Add notifications for major network events

* Add a notification if the network interface monitored by
the system tray icon has a major state change.
* This gives users a little feedback on connection state.
* User is only prompted once on each state change.
* TODO: change system tray icons to vector so we can scale
them up better.


# 4a3a7e3f 15-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Don't show the separator if there aren't any devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42195 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ee8f3f6 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ca00ffd 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Moved WirelessNetworkMenuItem into its own file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39833 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e1a6286 09-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

NetworkStatus now joins a network when you select one. If you need a password,
you need to have it configured in your "interfaces" settings file. This could
look like this:
network my-ssid-name {
authentication wep
password gurkensalat
}

Of course, the cleartext password will go away in the future.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39796 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 440d0e61 08-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Pretty much completed BNetworkDevice. The only parts missing are GetMediaAt(),
and parsing the extra station data to retrieve the authentication details.
Comments welcome.
* NetworkStatus should now mark the currently associated network (if any).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39774 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fe97f21 10-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Added WirelessNetworkMenuItem class that uses the RadioView static Draw()
method to indicate the signal quality.
* If a wireless driver is found, we now use the new BNetworkDevice class to
retrieve a list of known networks, and show them in the popup menu. You can't
do anything with this list yet, though (ie. you cannot connect this way yet).
* Use the new BNetworkRoster/BNetworkInterface class to retrieve the list of
interfaces, and the flags for an interface instead of using ioctls.
* Removed the about menu item for now.
* Minor coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39395 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9d95d3fc 04-Oct-2010 Axel Dörfler <axeld@pinc-software.de>

* Whitespace cleanup, no functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1f9c8c45 05-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Changed the _SIZEOF_ADDR_IFREQ() macro such that it can be used how we are
using it - hopefully, that is actually correct (it's adopted from FreeBSD).
* Fixed bug that cut off the sockaddr_dl reported by the system, so that DHCP
wouldn't work anymore (and ifconfig wouldn't show the actual MAC address
anymore).
* Changed the listing code to actually pad to ifreq size, and leave the length
of the sockaddr untouched.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37941 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 757e7059 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Jorma Karvonnen updated by me : localize NetworkStatus
* Fix a small bug in LocaleRoster : a / was left out in the mimesignature. Didn't cause any harm, but it's cleaner this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37337 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46cac7f7 19-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* No need to show an error alert when the preflet is already running, it behaves
as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34134 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 195981bb 04-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed the polling of the network status; instead, it now uses the new
network notifications.
* It also doesn't keep a socket open over the whole time which would prevent
the network stack to be unloaded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29904 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a31688d2 29-Dec-2008 Axel Dörfler <axeld@pinc-software.de>

* Set "openAnyway" argument of BPopUpMenu::Go() to true, fixing bug #1493,
thanks to Edwin for the hint!
* Removed about menu item, as that's a bit superfluous in such a tiny app
(you can still use "hey" to get the window from the running app).
* It was leaking the menu, as it didn't set it to auto-destruct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28832 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 53bc7943 06-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Free buffer in error case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28529 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4c28a737 15-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

mmlr + stippi:
Use B_RGBA32 if you mean that instead of B_RGB32. The IconUtils could be
changed to either refuse B_RGB32 or give them an invalid alpha channel
with just B_TRANSPARENT_MAGIC_RGBA32. That would make that mistake more
obvious.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26437 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c1502c9a 07-May-2008 Stephan Aßmus <superstippi@gmx.de>

Fixed name and placement for kMsgOpenNetworkPreferences definition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25337 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b41ad86 06-May-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Dario Casalinuovo with some changes by myself:
The NetworkStatus applet is now able to launch the Network preferences via
its contex menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25329 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66eba86f 16-May-2007 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Jonas Sundstrom: fixed the usage of B_UTF8_ELLIPSIS hopefully
everywhere in the tree.
* Added the ellipsis to "About Haiku" in Deskbar as well.
* Minor cleanup of Deskbar's StatusView.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21156 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5ba07a3 12-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed two bugs:
* FrameReceived() updated the bitmaps, but did not invalidate the view, causing
B_FULL_UPDATE_ON_RESIZE to show an outdated icon.
* fInDeskbar was not initialized in case the archive constructor was used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20666 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a17be44 11-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Got fooled by operator precedence - it's now working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20658 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f01106c3 11-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Moved the network status replicant into its own application, similar to what
ProcessController and PowerStatus are doing.
* Currently polls for info only - later, the stack should support listeners for
interface related changes.
* Also works under BONE (although it doesn't make much sense to use it there).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20655 a95241bf-73f2-0310-859d-f6bbb57e9c96


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

Revert "Move getifaddrs to libnetwork again."

This reverts commit 31ea76548a64b232ed10cb444bf84ca1f7e40b0f.

Adrien, please try again without clobbering the otherwise nice
BNetworkInterface API!

Conflicts:
src/kits/network/getifaddrs.cpp


# 31ea76548a64b232ed10cb444bf84ca1f7e40b0f 20-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Move getifaddrs to libnetwork again.

* BNetworkInterfaceAddress is moved to libnetwork. It is modified to not
use BNetworkAddress (which is in libbnetapi) and instead use sockaddr
and sockaddr_storage directly. All callers are adjusted to this.
* Some support code is shared between BNetworkInterface and
BNetworkInterfaceAddress, move it to libnetwork but in the BPrivate
namespace.


# aba4cb20854642299dea8789e2007bf5a4255f5f 04-Sep-2014 Michael Lotz <mmlr@mlotz.ch>

NetworkStatus: Sort wireless networks by signal strength.


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 5bb799c2d3b452fa8d18b5ba66301f10ffa59b1b 10-Nov-2013 Przemysław Buczkowski <przemub@przemub.pl>

NetworkStatus: show authentication mode in WiFi list. #9666

* now WirelessNetworkMenuItem appends authentication mode to its label

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 8897f2780d28e1b4d42988d82bf5e190968b6819 08-Nov-2013 Stefano Ceccherini <stefano.ceccherini@gmail.com>

NetworkStatus: Use the network API
Use the Network API instead of querying the net_stack via socket.


# 6c7caf44dfbb7d6ff766089e4006a50454220750 26-Sep-2013 Axel Dörfler <axeld@pinc-software.de>

NetworkStatus now joins networks by address instead of name.

* This solves part of ticket #10008.


# 31535ac63b726cbcd1933c5fa429543eca4e7509 01-May-2013 Adrien Destugues <pulkomandy@gmail.com>

Make BAboutWindow modal

�* Set its type to B_MODAL_WINDO, and also set B_NOT_MOVABLE
* Since this removes the window tab, add an "Ok" button to close the window
* Remove the GetWindow mess and just use it as any regular window
* Adjust all callers again

The AlertPosition method doesn't seem to work right, the window pops up
offset to the right. I also noticed that some of our calls to BAboutWindow
are actually not reacable because we removed Abutrequested from the apps.
Maybe we should clean them up (locale preflet and activity monitor are examples)

More annoying is the fact that opening a modal window from a deskbar replicant
is modal against the whole deskbar. Not sure what to do about that.


# fd19c7366df2134106131c370c99c3ed7f38757f 30-Apr-2013 Adrien Destugues <pulkomandy@gmail.com>

Fix BAboutWindow lifecycle

BAboutWindow returned false in QuitRequested in order to hide instead of closing.
Not only this keeps a BLooper running for a rarely used window, but it also
prevents quitting an application in the window was not destroyed first.

* Remove aforementioned QuitRequested method,
* Add a static GetWindow method that returns the existing about window, if there
is one, or creates one if there is not. A boolean can be set to tell the caller
what happened,
* Adjust all callers to use that new method, instead of managing the window themselves.


# 7fe8b2bf2a3e4b1c258ec9a4ec748f71d8a9e226 17-Dec-2012 John Scipione <jscipione@gmail.com>

Also lock fAboutWindow before Quit()ting in other apps


# c191daa8164725b930bfcf5e2f6b691a5df1fe84 12-Nov-2012 John Scipione <jscipione@gmail.com>

remove uneeded comment


# 5070e7e2228b34caae7f8d99846059672bb86b69 12-Nov-2012 John Scipione <jscipione@gmail.com>

Init fAboutWindow NULL first


# 730a45ee8f314649f7989e1014287b4766875fe1 12-Nov-2012 John Scipione <jscipione@gmail.com>

Rework NetworkStatus to use a non-modal BAboutWindow


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# ff09c7bfdfc0ba76fa9fee6e1ba7207cca53420a 26-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

Now is transparent on the desktop as other replicants.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 937ca113b0b7ca9c8aef601311ff336c8d7df8c4 15-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Reorder names alphabetically.


# 5c46b171392ac6c49b56eae7bf1e636d3d854c08 14-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Rework NetworkStatus's status tracking a bit.

NetworkStatus now tracks the status of each interface separately, and
uses that information to make correct comparisons for notifications.
Previously, it would only send notifications using whatever interface
was last in the enumeration list, and if an earlier interface had a higher
configuration level than that, the notification would incorrectly be sent
as occurring on the last interface. We now send notifications for each
interface separately. The status shown by the deskbar icon remains that
of the most highly configured detected interface. Fixes #8468.


# 43c6828704aa3d0f358f47e18ccfb6dbb1e6fd47 03-Apr-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

NetworkStatus: Simplify state change notification code


# e58807ed85d518c3ccf9e0a7ec77b55a3d3e2701 15-Mar-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

networkstatus: Scale icon to large and small sizes

* This gives us a nice status icon to use for
notification messages.


# b44d24c0add302a34ae55a305d9bac69b0ee4a1c 05-Mar-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

network status: Add notifications for major network events

* Add a notification if the network interface monitored by
the system tray icon has a major state change.
* This gives users a little feedback on connection state.
* User is only prompted once on each state change.
* TODO: change system tray icons to vector so we can scale
them up better.


# 4a3a7e3f289f7dc87057d33061bcdc263bca119f 15-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Don't show the separator if there aren't any devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42195 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ee8f3f65fdeb106272bd3a195898778c86abf27 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ca00ffdbc314d156c08af0eda1a6b231a7be3ce 13-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Moved WirelessNetworkMenuItem into its own file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39833 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e1a62865f95a77a3abb824ea2a2ab89cdd71be5 09-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

NetworkStatus now joins a network when you select one. If you need a password,
you need to have it configured in your "interfaces" settings file. This could
look like this:
network my-ssid-name {
authentication wep
password gurkensalat
}

Of course, the cleartext password will go away in the future.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39796 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 440d0e61e812dd49268aa75e9fee369e4df4db0d 08-Dec-2010 Axel Dörfler <axeld@pinc-software.de>

* Pretty much completed BNetworkDevice. The only parts missing are GetMediaAt(),
and parsing the extra station data to retrieve the authentication details.
Comments welcome.
* NetworkStatus should now mark the currently associated network (if any).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39774 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fe97f21b69ac7d689925611cfdf8a1b2cae8ad1 10-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Added WirelessNetworkMenuItem class that uses the RadioView static Draw()
method to indicate the signal quality.
* If a wireless driver is found, we now use the new BNetworkDevice class to
retrieve a list of known networks, and show them in the popup menu. You can't
do anything with this list yet, though (ie. you cannot connect this way yet).
* Use the new BNetworkRoster/BNetworkInterface class to retrieve the list of
interfaces, and the flags for an interface instead of using ioctls.
* Removed the about menu item for now.
* Minor coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39395 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9d95d3fc6e4bcf574cdefd9df9ddfdf40f95a0fb 04-Oct-2010 Axel Dörfler <axeld@pinc-software.de>

* Whitespace cleanup, no functional change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1f9c8c4576524824cf035824a9cac69ac8371aee 05-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Changed the _SIZEOF_ADDR_IFREQ() macro such that it can be used how we are
using it - hopefully, that is actually correct (it's adopted from FreeBSD).
* Fixed bug that cut off the sockaddr_dl reported by the system, so that DHCP
wouldn't work anymore (and ifconfig wouldn't show the actual MAC address
anymore).
* Changed the listing code to actually pad to ifreq size, and leave the length
of the sockaddr untouched.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37941 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 757e70593ce141fee4777aab3c3d8c097ce2faaa 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Jorma Karvonnen updated by me : localize NetworkStatus
* Fix a small bug in LocaleRoster : a / was left out in the mimesignature. Didn't cause any harm, but it's cleaner this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37337 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46cac7f7dd2a0e979163bac66db834ab15f3bc1a 19-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* No need to show an error alert when the preflet is already running, it behaves
as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34134 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 195981bb591d618483ad535d5dfcb3fb75f2445c 04-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed the polling of the network status; instead, it now uses the new
network notifications.
* It also doesn't keep a socket open over the whole time which would prevent
the network stack to be unloaded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29904 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a31688d23dc877e02fe96d62424c6673d4813a1f 29-Dec-2008 Axel Dörfler <axeld@pinc-software.de>

* Set "openAnyway" argument of BPopUpMenu::Go() to true, fixing bug #1493,
thanks to Edwin for the hint!
* Removed about menu item, as that's a bit superfluous in such a tiny app
(you can still use "hey" to get the window from the running app).
* It was leaking the menu, as it didn't set it to auto-destruct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28832 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 53bc79433414cb188e7bbb728085b2885f182221 06-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Free buffer in error case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28529 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4c28a7375dd0df1768e4fdeb6d01251fb06e7133 15-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

mmlr + stippi:
Use B_RGBA32 if you mean that instead of B_RGB32. The IconUtils could be
changed to either refuse B_RGB32 or give them an invalid alpha channel
with just B_TRANSPARENT_MAGIC_RGBA32. That would make that mistake more
obvious.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26437 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c1502c9a45e07369705d0c8cee9c6e0d7c0d1358 07-May-2008 Stephan Aßmus <superstippi@gmx.de>

Fixed name and placement for kMsgOpenNetworkPreferences definition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25337 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b41ad8606a88410702af016bdfea61c3b33a5df 06-May-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Dario Casalinuovo with some changes by myself:
The NetworkStatus applet is now able to launch the Network preferences via
its contex menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25329 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66eba86f4b3c2eef6462d090e93245fc60d7127b 16-May-2007 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Jonas Sundstrom: fixed the usage of B_UTF8_ELLIPSIS hopefully
everywhere in the tree.
* Added the ellipsis to "About Haiku" in Deskbar as well.
* Minor cleanup of Deskbar's StatusView.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21156 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5ba07a3adad66a6f66c1bf9ff4d77df10404167 12-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed two bugs:
* FrameReceived() updated the bitmaps, but did not invalidate the view, causing
B_FULL_UPDATE_ON_RESIZE to show an outdated icon.
* fInDeskbar was not initialized in case the archive constructor was used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20666 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a17be44d7239ef57784ced4dba6f1aa2961cdbc 11-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

Got fooled by operator precedence - it's now working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20658 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f01106c3cfc01f5706583d75c6d75d3b7cd98b77 11-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

* Moved the network status replicant into its own application, similar to what
ProcessController and PowerStatus are doing.
* Currently polls for info only - later, the stack should support listeners for
interface related changes.
* Also works under BONE (although it doesn't make much sense to use it there).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20655 a95241bf-73f2-0310-859d-f6bbb57e9c96