1853 Commits

Author SHA1 Message Date
Augustin Cavalier
9c7d0c3157 FileTypes: Remove hardcoded message what from generic class.
As noted on the commits list.
2016-05-14 15:53:13 -04:00
Mark Hellegers
49448867f5 FileTypes: Enable save menu item when changing version information of a resource.
Fixes #12780.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Some minor whitespace nits were fixed by me.
2016-05-14 13:44:04 -04:00
Augustin Cavalier
5559d51db7 bluetooth_server: Nuke the weird logging system, just use macros...
... just like everything else on Haiku does. Permanently enabled for the
time being. At least I can tell what's going on now.
2016-05-07 21:10:34 -04:00
Augustin Cavalier
b83e81795a bluetooth: Rename rdefs to be the same as binary names as is convention. 2016-05-07 20:22:21 -04:00
Augustin Cavalier
a563f9b38b preferences/bluetooth: More UI creation fixes.
Hopefully fixes a "pure virtual call" crash I was getting in UI kit
layout code in the InquiryPanel.
2016-05-07 20:18:19 -04:00
Augustin Cavalier
a9cf7e56e0 Nuke the "DUN" (Dial-Up Networking) preflet.
It literally did nothing except look nice^W^W^W^Wterrible, as it didn't
use the Layout Kit and it pre-dates the Haiku coding style (last "real"
modification was sometime before 2005). Supposedly it saved its settings
to disk but I can't find that.

See the "pppconfig" and "ppp_up" applications in src/bin/network for
something that actually works (though the modem stuff in the kernel PPP
stack hasn't been rewritten, so those are PPPoE only at the moment.)
2016-05-07 18:21:02 -04:00
Augustin Cavalier
e20d72d947 preferences/bluetooth: Remove a bunch of needless debug statements. 2016-05-06 17:35:34 -04:00
Augustin Cavalier
aa0020bf07 preferences/bluetooth: Remove last non-layout code. 2016-05-06 17:35:34 -04:00
Augustin Cavalier
f7359bb49a preferences/bluetooth: Make the "show debug" menu item actually work. 2016-05-06 17:35:34 -04:00
Augustin Cavalier
f52a021a33 preferences/bluetooth: Add some missing NULL checks.
Fixes some more crashes when nothing is selected.
2016-05-06 17:35:34 -04:00
John Scipione
9d48ecb522 Bluetooth Window: Defaults and Revert on left
These buttons go to the left according to the ad-hoc rule we've
created for preflets. The right side is reserved for an Apply or OK
button and is left blank otherwise.
2016-05-06 09:51:41 -07:00
John Scipione
1231bfebe4 Bluetooth Window: Layout tweaks
SetBorder(B_NO_BORDER) on tabView.

Add a BSeparatorView to draw a line between tabs and bottom buttons
Inset by B_USE_WINDOW_SPACING around buttons.
(B_USE_DEFAULT_SPACING betwen buttons and the tabview)
2016-05-06 09:46:07 -07:00
Augustin Cavalier
f1d1e8297b preferences/bluetooth: Remove the unused 'View' menu. 2016-05-05 18:27:09 -04:00
Augustin Cavalier
9080758a24 preferences/bluetooth: Some coding style cleanup. 2016-05-05 18:25:25 -04:00
Augustin Cavalier
9f95282c84 preferences/bluetooth: Rephrase 'services not running' dialog. 2016-05-05 18:20:38 -04:00
Augustin Cavalier
ef3761dd07 preferences/bluetooth: Use BAboutWindow instead of BAlert.
Now the about window will actually fit on my screen vertically.
2016-05-05 18:09:58 -04:00
Augustin Cavalier
deaef0eb2e preferences/bluetooth: Use BLayoutBuilder instead of B*LayoutBuilder.
Fixes a bunch of window sizing issues and the weird space between
the window border and the contents.
2016-05-05 18:09:16 -04:00
Alexander von Gluck IV
f0f01d2a89 bluetooth: Fix preferences build? Works here (again) 2016-04-17 15:07:41 -05:00
Alexander von Gluck IV
30f6fed181 bluetooth: Fix preferences build 2016-04-17 13:38:04 -05:00
John Scipione
fbf9ac1ce4 ScreenSaver: Center window on screen 2016-04-13 15:50:30 -07:00
John Scipione
a60b9ee3ac Screensaver: Set explicit min width for fSettingsView
Also make some new const variables to make some math more opaque
i.e. don't use as many magic constants.

This works great at 12pt font size, decenly at all other sizes. There is a
bit of jitter at 13pt and 24pt for some reason when moving from a default
settings view to another settings view.
2016-04-13 15:50:30 -07:00
John Scipione
4f0eceacb4 Screensaver: Move Puck up alphabetically 2016-04-13 15:50:30 -07:00
John Scipione
53dc6af917 Screensaver: Blackness not Darkness 2016-04-13 15:50:30 -07:00
John Scipione
e9208b6876 ScreenSaver: Rename BuildScreenSaverDefaultSettingsView
...to just DefaultSettingsView

It is just as obvious what it does in context, but shorter.

Rename the function it contains from
BuildDefaultScreenSaverSettingsView to
BuildDefaultSettingsView
2016-04-13 15:50:30 -07:00
John Scipione
a80db836bf Appearance: Backport changes from Gravity back to Appearance
Make the square a rectangle with Golden Ratio
Use Set*UIColor() instead of Set*Color(ui_color())
Use B_CONTROL_BORDER_COLOR instead of hardcoding
Sort out copyright -- Haiku, Inc. didn't exist before 2003
Use variable width spacing based on font size from ControlLook
Removed unnecessary #includes

Did a little pixel pushing to make sure that everything is spaced
nicely and to ensure everything lies on integer pixel boundries.
2016-04-12 20:54:43 -07:00
Alexander von Gluck IV
a4a85baea1 bluetooth/preflet: Fix x86_64 build 2016-04-09 21:43:53 -05:00
Dario Casalinuovo
866084f7a9 MediaPrefs: No need to start media services anymore
* This will cause troubles as the launch_daemon is
doing this job for us.
2016-04-04 01:26:49 +02:00
John Scipione
1e7a0406dc DataTranslation: Fix crash
just noticed this crash...

when fConfigView gets deleted by selecting a translator it
deletes its child fInfoText but we were leaving the pointer
alone.

Afterwords if you changed the panel text color in Appearance
a message gets sent that checks to see if the fInfoView
pointer is NULL, and since it isn't, procedes to dereference
the pointer and *boom* the app crashes.

Fix this by setting the fInfoText pointer to NULL when fConfig
view gets deleted. That way when you change the panel text
color it doesn't attempt to dereference the stale pointer
and everything works as it should.
2016-03-30 16:48:59 -07:00
John Scipione
b90d36ccd6 DataTranslations: Make window not resize
As you scroll through the list of translators keep the window width
constant by setting a minimum width. A little too narrow at 8pt,
and the window is too wide at 24pt, but at 12pt it is just right.
(at least for 1024x768).

The window width and height were not chosen arbitrarily, 598px
is just about 600px and almost exactly fits the width of our
widest translator (PNG translator). The height is 369px which comes
from the golden ratio of 1.62:1. The width of the translators are
set to exactly match this at 12pt font size. This way you don't get
any unexpected window resizing. At other font sizes the window does
resize, but, the contents still fit (mostly) nicely.

See screenshot for details:
http://insightfactory.tumblr.com/image/141980518317
2016-03-30 16:11:52 -07:00
John Scipione
571cffc10e DataTranslation: Style fixes 2016-03-30 14:41:51 -07:00
John Scipione
5f6a4730cb Appearance: Live update antialiasing text color
...when panel text color changes in addition to panel bg color.
2016-03-22 12:00:36 -07:00
Augustin Cavalier
80bc632afd BStatusBar: Restore the old blue-ish color from before the Set*Color changes. 2016-03-07 16:08:00 -05:00
Adrien Destugues
42d17c1c2f Remove TODO, fixed by the previous commit. 2016-02-14 21:12:33 +01:00
Adrien Destugues
975ec13e71 Locale prefs: skip script-specific entries
Avoids showing the same language multiple times in the list, for example
when there are cyrillic and latin variants. It is still possible to pick
one of the variants, as they are also added as country-specific entries.

Fixes #9144.
2016-02-14 16:19:43 +01:00
Axel Dörfler
9cbc5b82c2 E-mail: Stop the mail_daemon if there are no accounts left.
* This fixes part of #12347.
2016-02-10 13:55:57 +01:00
Rene Gollent
8028ede7db Build: Add architecture rule for libshared.a.
- As suggested by Ingo, add libshared.a to the architecture name map.
  This allows it to be linked by its short name like other frequently
  used libraries.
- Adjust all Jamfiles referencing the lib accordingly.
2016-01-15 21:12:24 -05:00
Axel Dörfler
ecd3b5d5f1 E-mail: Fixed view deletion order.
* The FiltersConfigView now ensures that its current filter is deleted
  before itself, as the filter's add-in would already be unloaded at
  that point.
* This fixes crashing when leaving the filter config view.
2016-01-14 20:51:43 +01:00
Axel Dörfler
94834e20a8 E-mail: Use BPathFinder to collect add-ons. 2016-01-14 20:50:18 +01:00
Augustin Cavalier
cf78be3fd1 TouchpadPrefView: Remove debugging message from destructor. 2016-01-13 16:02:59 -05:00
Axel Dörfler
59b0036e71 Printers: Workaround for broken print server connection.
* The actual problem is that the launch_daemon does not notice the
  manual launch of system services (because of the missing registrar
  that provides that service).
* So not checking if the print server is running actually solves the
  issue; otherwise the launch_daemon starts its own server, that will
  then get shut down, as there already is a print server (the one
  launched by the Printers preferences).
* Closes ticket #12531.
2016-01-08 21:40:19 +01:00
Augustin Cavalier
153b2eeace APRWindow: Delete another missed <stdio.h> include. 2016-01-04 13:56:51 -05:00
Augustin Cavalier
36cbd68b37 Various Jamfiles: Remove added "UsePrivateHeaders interface".
Added by looncraz in previous commits, and not needed.
2016-01-04 13:45:44 -05:00
Augustin Cavalier
e8a15cb354 Mail preferences: Delete added code to resize the window.
Breaks the build, and shouldn't be needed anyway.
2016-01-04 13:32:22 -05:00
looncraz
f0650dc98f preferences: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.
2016-01-04 07:21:14 -05:00
Dariusz Knociński
c0349163fd Preferences/VirtualMemory: fixed crash when exiting from not fully initialized application.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-12-15 21:21:23 -05:00
Axel Dörfler
9b9e7ec808 E-mail: Converted auto config window to layout API.
* It still doesn't work correctly yet again, though; the servers cannot
  be configured there.
* I'm leaning towards removing the server configuration there, as they
  can easily changed in the add-on preferences from the same preferences
  application; the way it was done was pretty much a hack. Any hard
  feelings about this?
2015-11-23 21:50:42 +01:00
Axel Dörfler
7125795f6a E-mail: Fixed initial window size.
* It did not take the height-for-width view into account.
* However, the explicitly set preferred size seems to be ignored.
2015-11-16 20:44:56 +01:00
Adrien Destugues
7460727d4a IP address control: don't try to DNS resolve
* This is used when configuring the DNS client, so resolving will not
  work
* It is supposed to be a control for entering IPs, not domain names.

Fixes #12464.
2015-11-13 21:50:11 +01:00
Axel Dörfler
be741f6ec1 Minor cleanup of translator roster commit, updated copyright. 2015-11-13 11:37:15 +01:00
Markus Himmel
a1eccae96f Make sure images containing BTranslators are not unloaded early
When a translator is uninstalled, BTranslatorPrivate::_RemoveTranslators is
called. This method used to unload the image containing the translator after
calling Release() on it resulting in several problems:

- If the translator was still busy, e.g. translating something while being
  installed, it crashed since the image was unloaded even though its refcount
  was larger than 0.
- Applications using code from one of the translators (e.g. its config view)
  would crash when the translator is uninstalled (this is bug #12005).

This problem is now fixed. The roster keeps track of all translators whose
image it manages (even if the translator was already removed from the roster).
It also keeps a refcount to all images. When a translator's refcount drops to
zero and it belonged to a roster at some point, it does not delete itself, but
notifies the roster that it is ready to destruct, which then removes it from
the roster if the translator is still in it, destroys the translator, decrements
the refcount of the image and if the new refcount is zero, unloads the image.
All of this is done in a message handler, since if the translator called
TranslatorDeleted like before, the unloaded image would be referenced when
the stack is walked up.

Finally, the DataTranslations preflet is required to Acquire() the translator
whose config view it is showing, because otherwise its refcount could be reduced
to 0 and the image unloaded. BTranslatorRoster now enables users to acquire a
translator by ID. By the time the translator has to be released, it might not
be part of the roster anymore though. Since BTranslatorRoster tries not to give
out raw pointers to the translators it manages, users who acquire a translator
through a roster now are given a BTranslatorReleaseDelegate, which allows for
releasing the BTranslator exactly once and then self-destructs.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2015-11-13 11:26:53 +01:00