Commit Graph

1807 Commits

Author SHA1 Message Date
Janus
5871779df8 DataTranslations: sort translator list.
* Fixes #10353.
2015-04-22 16:44:01 +00:00
Janus
853598431c Preferences: Consistent buttons position and spacing.
* Fix DataTranslations.
* Fix Touchpad.
* Fixes #5230.
2015-04-21 21:15:20 +00:00
Janus
aaa7d92685 Preferences: improve layout.
* Sounds use LayoutBuilder vs. GroupLayoutBuilder.
* Time standard spacing.
* VirtualMemory standard spacing.
2015-04-21 18:29:25 +00:00
Janus
41425e461d Preferences: uses BLayoutBuilder instead of BGroupLayoutBuilder.
* Fixes Appearance.
* Fixes Keyboard.
* Fixes Mouse.
* Fixes Notifications.
2015-04-21 09:36:07 +00:00
Janus
2a1583cbc0 Preferences: Consistent buttons position and spacing.
* Appearance fix spacing.
* Keyboard fix spacing.
* Mouse fix spacing.
* Notifications fix spacing.
* Fixes #5230.
2015-04-19 13:02:10 +00:00
Michael Lotz
3b7b927dd0 libbnetapi: Add BNetworkRoute to replace use of route_entry.
The BNetworkRoute class manages a route_entry and the sockaddr's
associated with it. It replaces the direct use of route_entry in the
BNetworkInterface API.

Using route_entry is fragile and inconvenient as it only holds pointers
to the sockaddr's. When getting a list of routes from the kernel, each
route_entry is set up so that its pointers point into the single flat
buffer that is passed around. Creating a copy of the route_entry and
then deleting the flat buffer makes the pointers in the copy stale.
Returning these route entries therefore always lead to a use-after-free
when they were eventually used.

BNetworkRoute also takes over the code and functionallity of getting
routes from RouteSupport. The corresponding method in BNetworkRoster is
replaced by a static method in BNetworkRoute.

Also distinguish between the default route and gateway of an interface.
GetDefaultRoute() now gets the default BNetworkRoute for the interface
while GetDefaultGateway() gets the associated gateway address within
that default route. Adjust network preferences panel to this change.

Note that we currently only seem to have per interface default routes
and not an actual global default route. This was already the case before
these changes and I did not further investigate what this means.
2015-04-12 18:50:00 +02:00
Michael Lotz
abed891d1b Shortcuts: Fix use-after-free in EditWindow return.
Calling Quit() on the window deletes it, so using the fTextControl
member to get the result does not work.
2015-04-11 13:39:33 +02:00
Janus
aa05612321 User interface: Use user colors in menu and list items.
* Use user colors for selected menuItem in ProcessController
* Use user colors for selected listItem in FileTypes, Media, Printers
* Fixes the menuItem and listItem part of #10840.
   The BColumnListView and other widgets need more thoughts.
2015-04-06 11:21:59 +00:00
Axel Dörfler
ba931975e5 Network: fixed uninitialized members.
* CIDs 1251073, 1292681, 1292686, and 1292687 -- all irrelevant, though.
2015-04-02 10:56:36 +02:00
Axel Dörfler
213f3cdb69 Network: preselect first item, make device view resizable.
* After start, the first item will now be selected.
* The InterfaceAddressView will no longer restrict its width, so
  that the window doesn't have to be resized anymore when switching
  to it.
* This implements ticket #11923.
2015-03-31 18:00:23 +02:00
Axel Dörfler
a526734858 Network: gcc 4 build fix. 2015-03-31 16:52:42 +02:00
Axel Dörfler
6257ef9246 Network: let add-ons replace themselves by name.
* Ie. an add-on "Super duper service" in ~/config will override
  one with the same name in /system (and non-packaged in packaged,
  etc.).
* Fixed size of the scroller to ignore the content size vertically.
2015-03-31 14:45:17 +02:00
Axel Dörfler
49b69c86d3 ifconfig/Network: gcc4 build fix. 2015-03-27 15:26:51 +01:00
Axel Dörfler
386b6f15e6 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.
2015-03-27 13:25:31 +01:00
Axel Dörfler
8b8bd796f4 Network: give static IP focus.
* InterfaceAddressView now gives the address control focus when
  "static" mode is selected.
2015-03-27 13:25:30 +01:00
Axel Dörfler
6a29020593 Network: made the revert button (somewhat) work.
* DNS add-on does not yet support it, the rest does.
* However, there seems to be some problems with the net_server when
  changing interfaces -- not just with revert.
2015-03-27 13:25:27 +01:00
Axel Dörfler
3d7aaa308c Network: added notify settings updated method.
* And call it from the DNS client -- this is the only add-on that does
  not trigger a configuration or settings update, so we have to notify
  the changes manually.
2015-03-27 13:25:27 +01:00
Axel Dörfler
235571538b Network: added ability to sort ServiceListItems correctly.
* Added ServiceListItem::Label() method.
2015-03-27 13:25:26 +01:00
Axel Dörfler
ee834bb870 Network: moved commonly used classes into app.
* This way all add-ons share the same code, and also the same
  translations.
2015-03-27 13:25:25 +01:00
Axel Dörfler
1a47b15dfa Network: interface list item now used BControlLook spacing.
* Instead of hard-coded values.
2015-03-27 13:25:25 +01:00
Axel Dörfler
d0b107f311 Network: added IPAddressControl.
* Based on Adrien's previous work in the DNS settings view.
* The IPv* and DNS add-ons are now using it.
2015-03-27 13:25:18 +01:00
Axel Dörfler
30811f5d73 Network: display title items in bold. 2015-03-27 13:24:08 +01:00
Axel Dörfler
d26777c4e4 Network: added BNetworkSettingsListener.
* Same as the configuration listener, just for SettingsUpdated().
* This is now broadcasted to all list items, too.
2015-03-27 13:24:07 +01:00
Axel Dörfler
07b0531d9c Network: removed now superfluous services add-on. 2015-03-27 13:24:06 +01:00
Axel Dörfler
a4a34e4235 Network: beginnings of the DNS settings. 2015-03-27 13:24:02 +01:00
Axel Dörfler
aaca49df8d Network: removed now superfluous interface add-on.
* IPv4/IPv6 add-ons completely replace its functionality.
2015-03-27 13:23:02 +01:00
Axel Dörfler
d1f0b8db1d Network: fixed top item creation, sort entries.
* Need a way to access the NetworkWindow object from a static
  method in order to sort all entries correctly, though.
2015-03-27 13:22:29 +01:00
Axel Dörfler
25ed074fd1 Network: made InterfaceListItem::Name() const. 2015-03-27 13:22:28 +01:00
Axel Dörfler
5274e9b004 Network: added interface list item.
* Added BNetworkInterfaceListItem that can be used by interface protocol
  add-ons to represent their functionality in the list view.
* It will automatically update itself on changes, and will show the
  specified label, and address, if any, as well as indicate whether or
  not the family has been disabled (which doesn't work perfectly yet,
  as IFF_AUTO_CONFIGURED is on the interface level).
* Therefore, the interface list item will no longer show the address,
  but the type of the device instead.
* Introduced the BNetworkConfigurationListener interface that is used
  to broadcast network updates to.
2015-03-27 13:22:28 +01:00
Axel Dörfler
9461249c5a Network: also notify interface list items
* When the network configuration changes.
2015-03-27 13:21:50 +01:00
Axel Dörfler
07addd7ef5 Network: broadcast updates, remove apply button.
* Network now monitors all network, and network settings changes, and
  will notify all add-ons about those changes.
* Removed the global apply button. Instead, the static IP configuration
  now got that button. All other changes will be instant.
2015-03-27 13:21:49 +01:00
Axel Dörfler
2864e4da5e Network: added global settings.
* NetworkWindow now manages a single BNetworkSettings object
  that is shared with all add-ons.
2015-03-27 13:21:48 +01:00
Axel Dörfler
e267a9eb47 Network: show interface addresses in list item.
* No family prefix yet.
2015-03-27 13:21:47 +01:00
Axel Dörfler
14f5b52b21 Network: removed dummy add-ons. 2015-03-27 13:21:45 +01:00
Axel Dörfler
85fb1470bf Added IPv4Interface add-on for Network preferences.
* Took over most code from the former InterfacesAddOn, and
  moved it to where it should be.
* However, it doesn't work yet at all.
2015-03-27 13:21:41 +01:00
Axel Dörfler
03242441a6 Network: fixed broken item frame retrieval.
* Completely superfluous and expensive for BListView items, and just
  wrong for BOutlineListView items.
* Also increased the width of the item, as we must take the tree offset
  into account ourselves (really, great API).
2015-03-27 13:08:45 +01:00
Axel Dörfler
aae1e071aa Network: fixed mixed up AddUnder() arguments.
* BOutlineListView is the worst of the interface kit.
2015-03-27 13:08:45 +01:00
Axel Dörfler
3401ff7c2f BNetworkSettingsAddOn: added missing destructor. 2015-03-27 13:08:44 +01:00
Axel Dörfler
f6c7cf44b5 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.
2015-03-27 13:08:44 +01:00
Axel Dörfler
021ff1ca46 Network: no need for public constants. 2015-03-27 13:08:42 +01:00
Axel Dörfler
5493c30fed Network: Removed unused includes. 2015-03-27 13:08:42 +01:00
Axel Dörfler
6dcbe4bf44 Network: made list view B_FULL_UPDATE_ON_RESIZE.
* To account for its right aligned contents.
2015-03-27 13:08:41 +01:00
Axel Dörfler
77db25ddc7 Network: moved add-on headers to the correct position.
* Ie. they've moved to headers/os/add-ons/network_settings now.
2015-03-27 13:08:41 +01:00
Axel Dörfler
a7cb9f5f55 Network: WIP of redesign.
* Fletched out new add-on API.
* Moved InterfaceListItem from the interfaces add-on into the
  application.
* Renamed NetworkSetup* to Network* respectively NetworkSettings*.
2015-03-27 13:08:29 +01:00
Janus
68ec13b405 Media: make ListViewItem scale correctly with big fonts.
Fixes #11918.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:12:04 -04:00
Janus
ffafcc16d7 Printers: avoid redraw glitches in the listview.
Fixes #11917.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:05:14 -04:00
Janus
4e71cef8fd Preferences: Make "Antialiasing" Revert button work as expected.
Fixes #11787.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:03:24 -04:00
JackBurton
959051f813 Midi preflet: remove check for big_synth.sy, since we don't create it
anymore.
Fixed comment.
2015-03-17 21:11:52 +01:00
Janus
f0cf06d6ae Fix 11899. [Mail Preferences] move the revert button to the left
Signed-off-by: John Scipione <jscipione@gmail.com>
2015-03-11 18:41:56 -04:00
Josef Gajdusek
617096a497 Shortcuts: don't store the contents of the columns in the settings file.
Fixes #11820 and #11849.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-02-12 09:51:11 -05:00
Axel Dörfler
7720614300 Revert "Move getifaddrs to libnetwork again."
This reverts commit 31ea76548a.

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

Conflicts:
	src/kits/network/getifaddrs.cpp
2015-02-05 11:07:53 +01:00
Alexander von Gluck IV
a6c2b2fa63 network preflet: On IPv6, show "Automatic" for address mode
* IPv6 is "DHCPv6" or "Router Advertisement". Lets just say
  automatic to not confuse techie people.
2015-02-02 17:17:29 +00:00
Axel Dörfler
17f8ccc06c Network: use BLayoutBuilder, more cleanup.
* Instead of the deprecated GroupLayoutBuilder.
* Ordered headers correctly, use headers directly instead of including
  InterfaceKit.h.
* Also, guarded the profile sections in their ENABLE_PROFILES
  definition.
2015-02-01 22:04:49 +01:00
Axel Dörfler
3427ae3942 Network: fixed wrong signature.
* I accidentally replaced the signature for NetworkStatus with the
  one from the preferences app.
2015-01-28 18:29:42 +01:00
Axel Dörfler
be883bad52 Network: style cleanup. 2015-01-28 17:05:06 +01:00
Janus
7b915ffb48 Mouse: enable Revert only if settings changed.
* If changing the settings and manually reverting to the previous
values, the Revert button would stay enabled.
* Fixes #11783.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-26 11:11:36 +01:00
Janus
95ef50445f Screen: disable Apply button when no changes would be made.
* Previously this would work only in "current workspace" mode.
* Also avoid calling count_workspaces in a loop since its result is not
cached and it needs to ask app_server each time.
* Fixes #4231.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-26 11:05:31 +01:00
Rene Gollent
d229773736 Shortcuts: Automatic whitespace cleanup. 2015-01-23 22:18:25 -05:00
Rene Gollent
d13b9014e8 Shortcuts: Fix #11777.
- Add missing B_AUTO_UPDATE_SIZE_LIMITS flag to window, otherwise it
  never recomputes its initial size in the absence of previously
  stored settings.
2015-01-23 22:17:05 -05:00
Axel Dörfler
86f6a66bbe Mouse: make the buttons actually look pressed.
* Just making the font bold looks ugly, lazy Adrien :-)
2015-01-23 21:00:37 +01:00
Axel Dörfler
9b2f561908 Mouse: minor cleanup.
* Removed no longer used class members.
* Synchronized implementation and declaration order.
2015-01-23 21:00:34 +01:00
Axel Dörfler
637cd3124e Mouse: slightly improved the look of the mouse.
* Made it a bit longer, and let the button outline stand out less.
2015-01-23 21:00:33 +01:00
Axel Dörfler
be9609b91c Mouse: made the shadow an actual shadow. 2015-01-23 21:00:32 +01:00
Axel Dörfler
ddf7ecfaa9 E-mail: take fCheckMailCheckBox into account on save.
* Only the time you entered mattered (ie. 0 would have turned
  the auto check off).
2015-01-23 21:00:30 +01:00
Adrien Destugues
31ea76548a 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.
2015-01-21 10:07:03 +01:00
Adrien Destugues
d8853b4953 Add mail provider data for hotmail.com.
Servers only accept SSL connections, so the MX entry isn't enough to
autoconfigure. Moreover, hotmail.com MX still points to mx3.hotmail.com,
while outlook.com suggests to use pop3.live.com.
2015-01-14 15:07:56 +01:00
Adrien Destugues
463de30aa0 NetworkSetup: cleanup replicant checkbox handling
* Use GetInt32 instead of deprecated FindInt32
* Dont implicitly convert int32 to bool
* Add missing break
2015-01-09 21:46:10 +01:00
Adrien Destugues
149ce46d14 Update Shortcuts to use standard ColumnListView
Patch by atalax (GCI2014)

There are some useability changes because our CLV isn't as flexible as
the Santa's Gift Bag one.

Fixes #11007.
2015-01-09 09:03:52 +01:00
Adrien Destugues
f873c092c7 Network: make sure the DNS list is wide enough to show the addresses.
Fixes #11720.
2015-01-08 09:17:35 +01:00
John Scipione
b433c2ad87 Keymap: Add ability to remove a key mapping
... of a normal (non-modifier) key via a right click menu.
2015-01-07 21:11:39 -05:00
Adrien Destugues
d37cd1e172 Network preferences: add a checkbox to control NetworkStatus
Fixes #3314.
Based on Barrett initial patch, reworked for the current network
preferences implementation.
2015-01-07 09:27:31 +01:00
Axel Dörfler
4772658841 E-mail: fixed GCC4 build. 2015-01-06 18:41:01 +01:00
Adrien Destugues
784064856f Appearance: allow to use it in test_app_server
For testing fonts and font antialiasing settings.
2015-01-06 15:58:40 +01:00
Axel Dörfler
8705e1f6e7 mail_daemon: cleanup, 30s auto check startup delay.
* Refactored new message retrieval a bit, so that the notification strings
  aren't duplicated.
* The daemon now waits 30 seconds before doing the first mail check.
2015-01-06 15:26:14 +01:00
Axel Dörfler
acee88be99 E-mail settings are now stored as they should.
* ProtocolSettingsView was still using Archive() instead of SaveInto().
* However, it looks like BMessage::Set*() does corrupt the message fields.
2015-01-06 15:24:05 +01:00
Axel Dörfler
8651ebbe7a Fixed stale config view pointer in E-mail.
* When removing an account (all accounts would be removed when the app
  was quit), AccountItem::ConfigPanel() was used to remove views.
* However, this member was only set when a new view was created, never when
  it was removed. This could cause a crash on quit.
* Removed that member completely, as it was unnecessary, anyway.
* Fixed naming of AccountItem getters to lose their Get* prefix.
2015-01-06 15:24:01 +01:00
Axel Dörfler
fa587d2956 The protocol config view now adds some glue at the bottom.
* This makes all boxes fill the complete height of the window.
* The SMTP add-on did that itself which makes no sense.
2015-01-06 15:23:51 +01:00
Axel Dörfler
19d947eb7f The E-mail window's frame is no longer stored.
* This is part of a clean up of BMailSettings; storing the window
  position might be implemented again later -- it just doesn't
  belong there.
* Changed the logic when the daemon is set to auto start. It's now
  always started if at least a single account exists.
2015-01-06 15:23:38 +01:00
Axel Dörfler
57b305558b MailProtocolConfigView now is a BMailSettingsView.
* Changed the private settings base classes to follow the new style.
* Made BodyDownloadConfig use the layout API.
* Adapted SMTP to these changes.
2015-01-06 15:23:06 +01:00
Axel Dörfler
efd1602a79 Fixed debugger call in E-mail.
* The settings view is no longer a direct child of the protocol settings
  view.
2015-01-06 15:23:01 +01:00
Axel Dörfler
ca3341c7b4 Major mail protocol/filter settings rework.
* Instead of abusing BArchive::Archive() we now use a BMailSettingsView as
  a base view for all filter/protocol settings that works with
  BMailAddOnSettings.
* Cleanups in E-mail which is now completely layout friendly. But also still
  crashes when changing the views.
2015-01-06 15:22:56 +01:00
Axel Dörfler
5faab458af Reworked the mail preferences.
* Made it use the layout API.
* Removed options that no longer apply (dial-up, for example).
* Cleanup.
* There are a few issues left, though, for example, the BTextView is not
  correctly sized, and it currently crashes in the protocol panels.
2015-01-06 15:22:47 +01:00
Axel Dörfler
9d8cf1b6f7 E-mail now also builds, but doesn't work yet. 2015-01-06 15:22:23 +01:00
Adrien Destugues
b5832c1759 Appearance: don't send kMsgUpdate on ATTRIBUTE_CHOSEN
As discussed in #11698, selecting an item in the list needs an update of
the selected color, but doesn't need a check for changes and status of
the "revert" button.
2015-01-05 15:51:41 +01:00
Adrien Destugues
e7cf3254ad Appearance: enable Revert when a color is dropped
Fixes #11698.
2015-01-05 11:25:43 +01:00
Markus Himmel
27c555cb7b Fix #8881: Add color drops to Backgrounds
- The Backgrounds preferences app will now accept color drops.
- The Backgrounds app will update if a color drop to the desktop
has changed its color due to a direct color drop

Signed-off-by: Jerome Duval <jerome.duval@gmail.com>
2014-12-31 19:05:06 +01:00
Adrien Destugues
234ac3f191 FileTypes: Avoid useless call to ReplaceRef
Don't replace the ref with itself in the most common case where the
scanned file is not a symlink. Save a lot of useless memory copies and
ref flattening in BMessage.
2014-12-24 11:52:04 +01:00
Adrien Destugues
21d247bb58 Media: add icon to media server restart notification
Use the media preferences icon for lack of anything more specific.
2014-12-19 10:15:28 +01:00
Adrien Destugues
04c56ae26b Revert "FileTypes: make space for BBox titles"
This reverts commit f0eb9fcd93.

Fixing this in BBox is better.
2014-12-15 11:04:36 +01:00
Adrien Destugues
40e05d88f9 Remove now unneeded MediaAlert class. 2014-12-15 09:56:31 +01:00
Adrien Destugues
b245bc8dbd Media Prefs: rework the BNotification code
* Factor out the notification sending in a single method
* Tweak the "progress" values so the progress bar goes from 0 to 100% in
order, and only once, during the restart
* Remove one notification that was needlessly sent twice
* Some other small cleanups

Final fix for #8171.
2014-12-15 09:52:36 +01:00
Laurent Chea
aa47adf6e0 Media service restart is now using BNotification. Fixes 8171. 2014-12-15 09:27:10 +01:00
Adrien Destugues
f0eb9fcd93 FileTypes: make space for BBox titles
In some locales the title is longer than the space there is for it. Make
sure the boxes are wide enough for the title to display completely.

Fixes #11611.
2014-12-12 16:11:07 +01:00
Adrien Destugues
27627e22db DataTranslations: remove SetExplicitMinSize
It prevents the window to get big enough for some of the translators.

Fixes #11612.
2014-12-12 15:53:25 +01:00
Puck Meerburg
e4e2ce4ce3 When testing screensaver, don't have mouse move exit the screen saver.
Fixes #7463

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2014-12-10 21:18:30 +01:00
Adrien Destugues
0edd73e467 FileTypes: fix layout of the FileTypeWindow.
* Fixes #10359.
* Thanks to Laurent Chea for investigating and identifying the problem.
His patch was not used because it makes more changes than needed.
2014-12-09 09:50:54 +01:00
Adrien Destugues
4380baa4d7 DataTranslations: avoid layout jumping
* Constrain the list and "right view" sizes so the layout doesn't change
for each translator.
* Fixes #6897.
2014-12-09 08:47:09 +01:00
Adrien Destugues
f87c1cec88 Mouse prefs: further layout fixes.
* Use BSeparatorView instead of trying to replicate it with a BBox
* Use B_USE_SMALL_SPACING instead of 7.

Fixes #11528.
2014-12-08 08:39:55 +01:00
Laurent Chea
ed35dbde39 Mouse prefs: Layout improvements
* Some spacing was uneven leaving items uncentered
* Removed "slow/fast" labels from the sliders as they were not correct
(a delay is short/long, not slow/fast, same for acceleration) and not
very useful.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2014-12-08 08:37:56 +01:00
Adrien Destugues
db7fc944bd FileTypes: disallow directories only where it makes sense.
Better fix for #8805.
2014-12-04 09:28:05 +01:00