History log of /haiku/src/apps/diskprobe/OpenWindow.cpp
Revision Date Author Comments
# d0ac6099 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use B_USE_WINDOW_SPACING

Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.


# bafcf016 08-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: improved layout scaling.

* Don't use a fixed size font for the header controls, but one that
depends on the default plain font size.
* Minor cleanup.


# 163a2afd 16-Mar-2013 John Scipione <jscipione@gmail.com>

Use the single parameter version of SetInsets()

While I'm at it, I can reduce the LayoutBuilder indent by 1.


# 4307b2e0 16-Mar-2013 John Scipione <jscipione@gmail.com>

Diskprobe open window layout fixes


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


# 10dfe897 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Really, there is absolutely no need to pass the default argument to an
optional parameter...


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


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# 066522e8 14-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.

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


# a021189b 17-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of DiskProbe and small style cleanups.
Closes ticket #5916, thanks a bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36849 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


# 2ff62714 22-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Finally implemented BWindow::CenterOnScreen, with associated CenterIn(BRect)
methods as well as Size(). To avoid the problem of centering the window before
it has been resized by the layout system, I force the resizing early. If there
is a better way to do this or some way to avoid doing it repeatedly, let me
know. But I figure the Center* methods should not be called that often.

Updated Screenshot and DiskProbe to use this new method as a test. It certainly
cleaned up DiskProbe. I will update other code over the next few days (if
anyone wants to help, please do :)


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


# 3a613432 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Center the OpenWindow. The problem is that we cannot get the real size of the window before it's actually shown on screen.. the trick I did was to show it offscreen, get the real size and move the window.

Fixes ticket #4236


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


# 7cc93cd0 15-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Ankur Sethi: Use layout-management in the OpenWindow of DiskProbe.
Works around the issue from ticket #1809.

Thanks a lot! Please note some changes I have made:
* When using layout management, use the contructors that don't take BRects
and "follow modes". (You forgot that for the BButtons.)
* You reversed the button order.
* I found it more convenient to use a BGridLayoutBuilder. And it seemed odd
to only add the menu bar layout item, not also the label item.
* Finally, to create a patch, cd into the Haiku root folder and use "svn diff",
like "svn diff src/apps/diskprobe/ > patch.diff". I had to apply your patch
manually line by line, I am not very firm with "patch", although I am sure
there would have been a way to do it... :-)

Nice work!


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


# fe2b2c82 27-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* The window is now maximized on startup if there is no settings file.
This fixes bug #407.
* The OpenWindow was not really font-sensitive (fixed window size).


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


# 9ff44370 08-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed centering of the window in case of multiple screens.


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


# 7f4d45d7 24-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

The OpenWindow is no longer resizable or zoomable, fixing bug #1 in our
bug tracker :-)


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


# 383a3578 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Removed debug output.


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


# 632ef267 11-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The OpenWindow now accepts file drops (i.e. from Tracker) and automatically
opens these files.


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


# 92ad5151 09-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented the document handling foundation for DiskProbe.
Does not yet maintain the window position on disk (nor any other settings).


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


# bafcf01610d4357686bf4fc4e778864e13bc26dc 08-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

DiskProbe: improved layout scaling.

* Don't use a fixed size font for the header controls, but one that
depends on the default plain font size.
* Minor cleanup.


# 163a2afd4f58d53fcb3fe4b5e78daf50688bf6ae 16-Mar-2013 John Scipione <jscipione@gmail.com>

Use the single parameter version of SetInsets()

While I'm at it, I can reduce the LayoutBuilder indent by 1.


# 4307b2e057e11f7988b79c5e0273f7a3959c81f7 16-Mar-2013 John Scipione <jscipione@gmail.com>

Diskprobe open window layout fixes


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


# 10dfe8970c81ccbcb818dcfcd484c4006aa42d12 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Really, there is absolutely no need to pass the default argument to an
optional parameter...


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


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# 066522e87b5aa9f25957e3f419ac3a0565edbb4f 14-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.

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


# a021189bbbbc8b7a32322aed13714bdc54696dd7 17-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of DiskProbe and small style cleanups.
Closes ticket #5916, thanks a bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36849 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


# 2ff62714d017b620b7d452a686f3667662b143f2 22-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Finally implemented BWindow::CenterOnScreen, with associated CenterIn(BRect)
methods as well as Size(). To avoid the problem of centering the window before
it has been resized by the layout system, I force the resizing early. If there
is a better way to do this or some way to avoid doing it repeatedly, let me
know. But I figure the Center* methods should not be called that often.

Updated Screenshot and DiskProbe to use this new method as a test. It certainly
cleaned up DiskProbe. I will update other code over the next few days (if
anyone wants to help, please do :)


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


# 3a613432c9f06b372e5f8d3a456b97e0ad071f4a 14-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Center the OpenWindow. The problem is that we cannot get the real size of the window before it's actually shown on screen.. the trick I did was to show it offscreen, get the real size and move the window.

Fixes ticket #4236


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


# 7cc93cd01c9187b8295a4e09e4f597f45e48bfa0 15-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Ankur Sethi: Use layout-management in the OpenWindow of DiskProbe.
Works around the issue from ticket #1809.

Thanks a lot! Please note some changes I have made:
* When using layout management, use the contructors that don't take BRects
and "follow modes". (You forgot that for the BButtons.)
* You reversed the button order.
* I found it more convenient to use a BGridLayoutBuilder. And it seemed odd
to only add the menu bar layout item, not also the label item.
* Finally, to create a patch, cd into the Haiku root folder and use "svn diff",
like "svn diff src/apps/diskprobe/ > patch.diff". I had to apply your patch
manually line by line, I am not very firm with "patch", although I am sure
there would have been a way to do it... :-)

Nice work!


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


# fe2b2c822f71160881957e9bc6f129e1f3702b09 27-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* The window is now maximized on startup if there is no settings file.
This fixes bug #407.
* The OpenWindow was not really font-sensitive (fixed window size).


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


# 9ff44370c840a0ee19a67232dcb25bcf5eb31340 08-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed centering of the window in case of multiple screens.


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


# 7f4d45d77364a5b7bd202334da315a2a19664980 24-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

The OpenWindow is no longer resizable or zoomable, fixing bug #1 in our
bug tracker :-)


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


# 383a3578d04161ca2af2d968a4031f1653963cc2 27-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Removed debug output.


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


# 632ef267084183e09774f642e787bf60f1cab511 11-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

The OpenWindow now accepts file drops (i.e. from Tracker) and automatically
opens these files.


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


# 92ad5151839383c0324ae46bf7538f22772307eb 09-Feb-2004 Axel Dörfler <axeld@pinc-software.de>

Implemented the document handling foundation for DiskProbe.
Does not yet maintain the window position on disk (nor any other settings).


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