214 Commits

Author SHA1 Message Date
DarkWyrm
8a14aea116 Updated PreviewDriver to the new DisplayDriver API and made appropriate changes to DecView as a result
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 02:23:20 +00:00
shatty
1421ba0668 RestartMediaServices should return a value, I returned the value from PostMessage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-24 22:36:16 +00:00
Axel Dörfler
57263483db Somehow, -(uint32)10 didn't do what I wanted... if there were no valid
settings, the window is now set to the intended position.
Also enlarged the default window height a big, since it was a bit too
unglossed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 11:36:27 +00:00
Axel Dörfler
ed8da400c3 Fixed all warnings and did some minor style updates (only those next to
the fixed warnings :).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 17:54:57 +00:00
shatty
1e389a3a80 resizing behavior improvements, code cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 06:04:22 +00:00
Axel Dörfler
ff3a346fc5 Imported Matt Madia's changes to the Workspaces application (changed position
calculation, new command line arguments [use --help for info]).
Put a great effort into it cleaning and fixing it. Works around a bug in BeOS
that affected the positioning algorithm - it's explained in
WorkspacesWindow::FrameMoved() for those who want to know.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 23:12:12 +00:00
Jérôme Duval
a6321d55b7 Resources are in rdef format now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 08:30:36 +00:00
shatty
c2d66a0f49 correct menu color scheme title, thx Diver(ru), change from Draw to DrawContent simplifies BitmapMenuItem implementation, call to parent to draw string content enables shortcut on the menu item, fix always show triggers behavior (should be enabled when click to open is marked, disabled otherwise)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 01:01:13 +00:00
Axel Dörfler
b34d061c80 MouseSettings::Revert() reverted back to the original settings, but it
didn't changed the cached settings (and thus, neither the GUI was updated
correctly, nor the settings would have been written back correctly in
this case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 04:34:54 +00:00
Axel Dörfler
2c9f63f0b8 MouseSettings::RetrieveSettings() promised that the window will filter
invalid coordinates and center the window on screen.
Now, that really happens, and the MouseSettings class will also have
a default value for the position that triggers this behaviour as well.
Thanks to voidref for reporting this.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:24:08 +00:00
Axel Dörfler
2b2b029905 Removed unneeded member variable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 09:59:37 +00:00
Axel Dörfler
26f5b48ecf Small fixes/changes:
- added destructor that deletes the mouse bitmaps
- the invalidated region in Pulse() is now large enough
- it's now completely independent from the image in MouseBitmap.h - just
  put the correct images into the resources, and update the bitmap creation
  and it'll work
- it's now always working correctly (even visually) if one or both bitmaps
  are missing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 09:45:25 +00:00
Axel Dörfler
91dc6b25c0 Switched to the text rdef files instead of the binary resources.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:40:48 +00:00
Axel Dörfler
736efd6ec4 Renamed the constants in MessageConstants.h to be style guide compliant.
Removed the useless ERROR_DETECTED message and implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:34:24 +00:00
Axel Dörfler
19a5b61308 Renamed the last member variables to be style guide compliant.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:26:51 +00:00
Axel Dörfler
cb440c42c1 Have a look at the BSlider::SetValue() documentation; it already cuts
the value if necessary.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:23:07 +00:00
Axel Dörfler
8a6fd84c3e Some more style cleanups.
It's really not necessary to provide all default arguments in C++ - especially
not wrong ones...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:21:36 +00:00
Axel Dörfler
7ed41b2f46 Removed all SettingsView stuff, and almost completely rewrote the MouseView class.
The mouse view code is now much cleaner and more generic.
Fixed all known remaining bugs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:17:02 +00:00
Axel Dörfler
87e0ec1168 Removed the duplicated settings handling - now just uses MouseSettings instead.
Removed all code that now belongs to the MouseView class.
Moved some member variables into the private section.
Removed now unused variables.
Now overloads GetPreferredSize() with something useful instead of just
resizing to these values at constructions.
Added a destructor that frees the created bitmaps.
Renamed focusMenu to fFocusMenu, and mouseTypeMenu to fTypeMenu.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:14:46 +00:00
Axel Dörfler
7116278ebd No longer accesses any SettingsView members directly. It now takes all
information it needs out of the messages it gets.
Now used MessageSettings::Defaults() instead of having an own implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:10:48 +00:00
Axel Dörfler
3e92b3c74b Renamed MouseMessages.h to MouseConstants.h, added some user interface
constants.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:07:43 +00:00
Axel Dörfler
43d9314a5a Decremented kMouseHeight since its obviously not the correct height.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:05:34 +00:00
Axel Dörfler
b99173690e Some more {Set}Mapping() functions.
Now has a Default() method that activates the system default settings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:04:39 +00:00
Axel Dörfler
e300f612df Copied the complete contents of MouseView.{cpp|h} over to the new
SettingsView.{cpp|h} - the former will only contain the view that shows
the mouse and its buttons, the latter will contain the rest.
Corrected license text and listed myself as one of the authors.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 03:02:37 +00:00
Axel Dörfler
9a2e5e9478 No reason to quit the program, just because some icons are missing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:47:57 +00:00
Axel Dörfler
692da071d6 The MouseSettings class now actually does something useful.
Now maintains all mouse related settings, and also represents the current
settings (i.e. MouseSettings::SetMouseMode() will really change the mouse
mose).
Fixed bug in SaveSettings() that I missed earlier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:43:02 +00:00
Axel Dörfler
f9823032c7 The MouseView now get a pointer to the window's MouseSettings object.
Reverting to the original (on load time) settings is now done in the
MouseSettings class, not MouseWindow anymore (updating the MouseView
is temporarily disabled).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:39:01 +00:00
Axel Dörfler
915e16506a Removed now unused coords for the buttons (were already commented out).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 23:39:24 +00:00
Axel Dörfler
b217c2d59d Moved the "Defaults" and "Revert" button out of the MouseView and
into the MouseWindow class. The MouseView now only contains everything
that's in the BBox (it now inherits from BBox).
Joined the BoxView and the MouseView classes together - their separation
was highly questionable done. I plan to put the mouse button view
into its own class as well.
The "Defaults" and "Revert" button are now font sensitive.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 23:15:06 +00:00
Axel Dörfler
39382ad368 The MouseWindow now take care about its position itself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:57:56 +00:00
Axel Dörfler
eb8423f435 Now uses MouseView::SetRevertable() instead of accessing the member
variable directly.
Broken settings no longer quit the app.
Many style fixes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:03:30 +00:00
Axel Dörfler
e9cc36ba1a Fixed one of the reported bugs by using the default flags of the bounding
box instead of manually defining them (and forgetting about B_NAVIGABLE_JUMP).
Many style updates - more to come, though.
Moved the revert and default button variables into private. It now has an
extra SetRevertable() method to hide them.
Added newline to the end of file :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:01:44 +00:00
Axel Dörfler
7ad05b5060 Style updates for the application files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 21:56:56 +00:00
Axel Dörfler
dae6d05bbd Cleanup of the mouse settings class:
- style guide updates
- the settings are now retrieved from the current settings, rather
  than from the (possibly) corrupt settings file
- removed InitCheck() as it doesn't serve any useful purpose (if the
  settings file is corrupt, the application should not fail anyway;
  it could just issue a warning), as the settings are now retrieved
  from the current settings
- renamed WindowCorner() to WindowPosition()
- added the possibility to read/write a settings file that's incompatible
  to R5 to store all possible mouse mappings (not activated, though). We
  should probably better save all mappings at the end of the file for
  compatibility.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 21:56:21 +00:00
Jérôme Duval
b855ae3d39 - Exits if a bitmap is not available
- Fixes the text placement of Mouse Type and FFM
- The drawing of the Mouse and bitmaps are done only if needed
	(depend on the updateRect)
- Call DrawBitmapAsync instead of DrawBitmap


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 09:05:50 +00:00
shatty
7e6260c44d do not crash if we are in an unofficial state
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 08:53:49 +00:00
shatty
eb32778201 fix all workspaces bug [thx mmadia] and use ProposeMode mechanism for unfound modes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 07:12:00 +00:00
shatty
7c0a9f8327 dynamically compute refresh bounds and other fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 06:34:38 +00:00
shatty
24291d0ad6 increase usability by proposing alternative modes. other abstraction/behavioral improvements
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 05:17:50 +00:00
mahlzeit
61b05c397f Simplified rdef.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 17:45:19 +00:00
mahlzeit
0e6141ba3b Simplified app_flags.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 17:41:02 +00:00
Jérôme Duval
357ef4edac Beta version
Improvements are still possible


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-11 08:44:26 +00:00
shatty
cf302d2f04 fix Sounds application signature for interoperability with existing desklink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-09 08:02:40 +00:00
shatty
1c5fc79d8b fix Media application signature for interoperability with existing desklink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-09 08:00:53 +00:00
Jérôme Duval
5f238ea9e9 Fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-08 08:42:37 +00:00
Jérôme Duval
6d5c0c13b4 sounds added
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-26 13:34:13 +00:00
Jérôme Duval
e482b42659 Basic Sounds pref app. i forgot to include the Jamfile and the resource file.
Sorry but the app has only the features from R5. Extra features may come later.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 10:20:59 +00:00
DarkWyrm
05cc992d17 Added Menu preferences panel. Works pretty good, too. :)
Eventually, this panel will replace the need for the Menu prefs app


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 23:57:04 +00:00
DarkWyrm
ce09dfb8e6 Modified ColorWell class to visually fit in with other GUI controls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 22:57:20 +00:00
DarkWyrm
2a7b708cdd Serious retooling of the look of the app - much more Be-like and extensible
Better UI - not great, but getting there.
Haven't changed APRView's ColorWell look so Axel can shudder a little more. :P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-19 01:42:57 +00:00