Commit Graph

599 Commits

Author SHA1 Message Date
Stephan Aßmus
5f700c9b7c Patch in large part by Philippe Saint-Pierre:
* Update Font preflet to use the layout-management. This already fixes a lot
  of issues.
* The were more issues with switching to default fonts and reverting fonts.
  Some fixed by Philippe and some fixed by myself.
* The preflet currently contains a work-arround for the problem that the window
  does not yet have it's final size until after BWindow::Show() has been
  completed. To be able to center itself anyways, it will open outside screen
  bounds and center itself then.

Note to Philippe: I had to fix some stuff in the Interface Kit to make this
more smoothly, so I was able to remove some calls to Invalidate() and such.
Also, the preview boxen and the menu fields align correctly now. Sorry if this
gave your gripes... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-16 10:11:06 +00:00
Stephan Aßmus
32ac8d0823 Patch by Maxime Simon: In the default font handling, make menu and plain font
synonymous, since they are the same font by default. This fixes the Default
button enabled/disabled state and ticket #3759. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 19:40:03 +00:00
Clemens Zeidler
d88bc21991 Catch a potential crash.
Small coding style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 09:15:46 +00:00
Ingo Weinhold
1e855c376c * Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:57:26 +00:00
Ingo Weinhold
4fba3522e0 * Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
  headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:24:32 +00:00
Clemens Zeidler
d4236f6ee8 On default for pop3 accounts the mails are leaved on the server now. This was a bad trap especially for new MDR users.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-10 15:15:53 +00:00
Stephan Aßmus
54dceb1316 axeld+stippi, inspired on a patch by Maxime Simon:
* Renamed add_extensions() to merge_extensions(), since that is what it does.
* Improved some other variable names in that function for clarity.
* Fixed the duplicate extension detection code, also extended it to the list
  of extensions which are supposed to be added, just in case it already
  contains duplicates.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 18:23:16 +00:00
Ingo Weinhold
ff81d306d4 * Moved the optional package dependency definitions into the new
build/jam/OptionalPackageDependencies and include it earlier (before the
  Jamfiles).
* Introduced build/jam/OptionalBuildFeatures which is supposed to do the setup
  for optional build features that need it.
* Renamed USE_SSL to HAIKU_BUILD_FEATURE_SSL and made it more intelligent.
  The OpenSSL optional package is downloaded and unzipped automatically when
  enabled. Switching between enabled/disabled HAIKU_BUILD_FEATURE_SSL is
  handled gracefully -- the concerned components are built in separate
  subdirectories. Adding the OpenSSL optional package to the image also enables
  HAIKU_BUILD_FEATURE_SSL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 10:07:17 +00:00
François Revol
945f9337ea Add descriptions for my email providers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 19:52:23 +00:00
Clemens Zeidler
8ce14887cb Description of the provider database / attribute format.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 18:14:36 +00:00
Clemens Zeidler
ed6b5cc571 Simplify the mail configuration.
- Introduce a database of known providers.
- Guess the mx server if the provider is not known.
- Guess default setting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 18:07:31 +00:00
Rene Gollent
0f617d4476 Fix several cases of forgetting to include libstdc++ in the libs. This allows a successful build of Haiku on gcc4 Haiku, though it's presently unclear to me why this didn't prevent linking on any other platform (gcc2 haiku, and gcc2/4 cross compilers from FBSD had no issues here).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:33:53 +00:00
Axel Dörfler
433deca87e * Made the 105 key international keyboard the default, since this is probably
more helpful to most people than the 104 key one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:30:27 +00:00
Axel Dörfler
afa564ec96 * Made the modifiers sticky when used with the mouse. This greatly improves
changing keymaps this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:02:36 +00:00
Axel Dörfler
6db2be327d * Changed the way the shortcuts are switched: we no longer do the same thing
as BeOS on the right side (that is, switching control and option key), but
  switch control and command there as well.
* As a consequence, the Alt-Gr key will stay where it is when switching the
  shortcuts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:00:51 +00:00
Axel Dörfler
c7fe8932fd * _FreeKeys() now also clears the indicator list (so they are no longer copied
each time you load a new layout).
* Fixed the IBM laptop keyboard layout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:55:18 +00:00
Axel Dörfler
c066660256 * Fixed drawing the L-shaped enter key; the clipping was constrained on the
wrong view since I added offscreen drawing.
* Added a description of the keyboard layout language; it's unlikely to
  undergo much changes anymore now.
* Added a few comments for stippi :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 08:34:32 +00:00
Stephan Aßmus
333d6460aa Patch by Jaagup Repaen: Fix crash when pressing "Defaults" because of
non-existing decor popup. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 11:07:44 +00:00
Stephan Aßmus
25bd6415a3 An unintentional line break was added in last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 19:42:50 +00:00
Stephan Aßmus
6cd6dd87db When setting a network device to DHCP and applying the settings, trigger
auto-configuration in the net_server. Code taken and adopted from ifconfig.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 19:39:15 +00:00
Axel Dörfler
0d7e201276 * The artwork directory has been relocated as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 09:35:40 +00:00
Axel Dörfler
317bd7dda3 * Changed directory structure as suggested on the mailing list.
* Made the TimeZoneView less error prone, and also actually use Haiku code (the
  previous check didn't work since it used #if, not #ifdef).
* Also took the liberty to rename our boot loader to haiku_loader, since I had
  to update the nasm binary anyway. Updated the assembly sources to nasm 2.0.
* I haven't found where the synth location in the MIDI code is specified,
  though.
* Also, NetBootArchive, and FloppyBootImage haven't been updated yet. Will do
  so next.
* Some optional packages still put their license to beos/etc/licenses. I didn't
  update them yet, as we'll probably do so anyway at some point. Also, I think
  we might want to introduce a common/data/licenses instead for those.
* If you encounter any problems, please tell!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 09:02:44 +00:00
Axel Dörfler
7e5ffaa223 * Now accepts only the first character that is dropped on a key.
* Also, escaped strings (like those from CharacterMap) are now converted
  automatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-01 15:47:30 +00:00
Axel Dörfler
4207450292 * Fixed broken operator=(). Thanks Stephan!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 21:17:44 +00:00
Axel Dörfler
751c91b7e1 * Added Keymap::operator=().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 14:39:15 +00:00
Axel Dörfler
321e8a6464 * Now use a special character for the backspace key.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 14:38:44 +00:00
Axel Dörfler
ed33219ac8 * Made the color chooser only take up as much space as needed, ie. the list
view will now grow with the window.
* fDecorMenu will no longer be set.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-30 13:47:52 +00:00
Axel Dörfler
ebe98045d7 * Added ability to change modifier keys (per drag and drop).
* Added button to switch shortcut modifier keys.
* Added option to make the KeyboardLayoutView non-editable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-30 13:19:11 +00:00
Oliver Ruiz Dorantes
12a1cc3b7e Patch by Joerg Meyer,
- Add some icons for some devices depending on major class
- Same code will be placed later in the BluetoothDeviceView
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 16:32:12 +00:00
Axel Dörfler
f6bfc822c6 * Don't allow dragging modifier keys around until we actually support
changing them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 11:06:44 +00:00
Axel Dörfler
5968be8e9e First steps to make the "Menu" preferences superfluous (just what will we do
with its fine icon?):
* Added the menu font setting to the Fonts preferences app.
* Made the window resizable at least in the horizontal direction.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 11:05:56 +00:00
Axel Dörfler
d6eac75eb2 * Imported Modifier() and KeyForModifier() from the Keymap class in the
keyboard input server add-on. We should really have a common source for this
  somewhere...
* Used that functionality to change the modifiers when using the mouse, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-28 16:13:43 +00:00
Axel Dörfler
a6ad872b60 * Works around a race condition/bug/design issue in our layout engine:
sometimes the size isn't set in AttachedToWindow() yet, and the first
  FrameResized() comes after the first Draw(). We now relayout in Draw()
  in case the size changed since last time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-27 19:35:32 +00:00
Axel Dörfler
16dc221d20 * Now uses an offscreen bitmap for flicker free drawing.
* Only trigger a redraw on B_MODIFIER_CHANGED if something actually changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-27 19:31:12 +00:00
Axel Dörfler
d1996fdfd6 * Fixed regression; the key labels could be drawn out of the button border.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 17:21:15 +00:00
Stephan Aßmus
23b0de5eb2 Cleanups, mostly to make diffing it against the original file from Tracker
more easy. It's not so nice that this code is replicated, there could be
refactoring to get a base-class which is used by both Tracker and Backgrounds
and the Tracker version extends it for the caching, while the Background
preflet extends it in other ways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 14:10:02 +00:00
Stephan Aßmus
681c2e4425 The button and menu field draw routines take a background color into account,
which makes the resessed frame blend better with the surroundings. This can
be seen best in Keymap, where a different color is set on some buttons, but
the resessed frame should still be the same across all those buttons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:34:19 +00:00
Axel Dörfler
0a39e39616 * Add capability to load other keyboard layouts from disk. It even works :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:11:18 +00:00
Axel Dörfler
a869d32e0c * The L-shaped "enter" key can now also be drawn almost right (uses
BControlLook plus some clipping to do its magic).
* Fixed scancode only mode of the keyboard layout view.
* Fixed filter thanks to Rene.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 22:25:07 +00:00
Axel Dörfler
c31467186f * Added IBM Laptop international keyboard layout.
* Added LEDs to the 105-key internal one.
* Always choose the variable with the longest matching name instead of the
  first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 22:22:59 +00:00
Axel Dörfler
3c394ad89e * Added support for LED status indicators.
* The look isn't perfect yet, but well; improvements welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 17:49:46 +00:00
Axel Dörfler
495c8b848b * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:44:54 +00:00
Axel Dörfler
84e80da081 * The default drag&drop action is now copy, if you drag with the second mouse
button, you switch the keys.
* Switching the same key with different modifiers held works now.
* The drop target is now reevaluated when a modifier key is pressed, as the
  key originating the drag cannot be its target (but only with the same
  modifiers pressed).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:05:00 +00:00
Axel Dörfler
477f84638b * SetKey() now supports changing the fChars array and the key_map offsets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 16:02:39 +00:00
Axel Dörfler
6aa7b63552 * The message filter now does not do anything anymore when the source keymap
matches his own (field now added to the KeyboardLayoutView fake B_KEY_DOWN
  messages).
* The default action for keyboard to keyboard drag&drop is to switch the keys
  now.
* When a key is overwritten by a drop, the old key is now sent to the text
  view, so that it's not lost (if that was a mistake you can now easily revert
  it without having to press the "Revert" button and lose all changes).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 15:14:23 +00:00
Axel Dörfler
53f936a0a7 * The Keymap now has a listener mechanism for changes.
* If the current Keymap is changed, the selection and use/revert buttons now
  actually work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 14:43:21 +00:00
Axel Dörfler
be09c2a190 * Now handles dead keys via the mouse as well.
* Added _InvalidateKey() variant.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 14:42:10 +00:00
Axel Dörfler
6b9767aa8a * The text control is now back - instead of overwriting BTextView::KeyDown(),
we now use a plain BTextControl, and a custom message filter. For some reason,
  BHandler::AddFilter() does not work, though, this needs some investigation.
* Enabled the font menu again, the font in the text control is changed as well.
* Made the default window size a bit smaller on large screens.
* Scrolling to the selection does not seem to work before Show() - looks like
  a bug in the layout implementation.
* Moved some methods around to match their declaration order.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:52:54 +00:00
Axel Dörfler
53c926befb * Added the ability to set a target that will receive fake B_KEY_DOWN
messages generated when pressing the keys.
* The font size is now adapted to match the key size better, maximum size is
  the current plain font.
* The keys you drag around now generate a useful B_MIME_DATA message, that other
  views can accept as well.
* Implemented support for changing the keymap via drag&drop.
* Added SetFont() method to change the font used by the keys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:46:09 +00:00
Axel Dörfler
d66f475749 * Forgot to implement DefaultKeySize().
* Renamed default keymap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 13:41:33 +00:00