History log of /haiku/src/apps/debugger/user_interface/gui/teams_window/TeamsWindow.cpp
Revision Date Author Comments
# 0a48878f 30-Aug-2022 Augustin Cavalier <waddlesplash@gmail.com>

Debugger: Set AUTO_UPDATE_SIZE_LIMITS and adjust default size of Teams window.


# 1f72988e 30-Aug-2022 Augustin Cavalier <waddlesplash@gmail.com>

Debugger: Improve appearance of TeamsWindow insets and spacing.

The buttons are now aligned to the scroll bar and window resize knob,
by using BControlLook::GetScrollBarWidth. (Hmm, perhaps it might make
more sense to just have scrollbar sizes be a kind of insets, which can
be gotten via B_USE_SCROLL_BAR_INSETS, and then drop this extra method
altogether? After all there are a lot of applications which align to
scroll bars...)


# e218ec02 05-Dec-2016 Rene Gollent <rene@gollent.com>

Debugger: Hide connection controls.

TeamsWindow:
- As the functionality isn't yet actually ready, hide the controls in the
teams window for now.


# 445f0037 01-Dec-2016 Rene Gollent <rene@gollent.com>

Debugger: Implement spawning connection window.

TeamsWindow:
- Create new connection button now sends a message to the main app,
which manages the connection window as a singleton.

Debugger:
- Handle creating/showing connection configuration window as requested.


# 10ba3348 30-Nov-2016 Rene Gollent <rene@gollent.com>

Debugger: Cleanup.

- Split MessageCodes.h into a second file that separates out the
application-specific message codes from those used by the core.
Adjust includes accordingly. No functional change.


# 365840af 30-Nov-2016 Rene Gollent <rene@gollent.com>

Debugger: Adjust TeamsWindow for connection selection.

TeamsWindow:
- Add Listener interface for selected target host interface changes.
- Add menu field to display/choose between active host connections.
- Add button to create a new connection (not yet functional).

TeamsListView:
- Implement TeamsWindow Listener interface to decide when to update
the displayed team list.
- Remove unused current team ID.


# 63a0065c 26-Apr-2016 Rene Gollent <rene@gollent.com>

Debugger: Implement part of #12729.

TeamsWindow:
- Add a button allowing one to specify loading a core file in addition
to attaching to/creating teams.
- Slight layout tweak.


# a1afac4d 20-Apr-2016 Rene Gollent <rene@gollent.com>

Debugger: Rework to fully use TargetHostInterface.

Application objects:
- Rework and simplify to take into account that they will no longer be
directly managing the team debugger list. Requests to start a new debugger
are still funnelled through here however, and as such, said requests must
now provide the appropriate target host to start with. Adjust StartTeamWindow
and TeamsWindow accordingly.
- On global init, always create an instance of the local interface.

TargetHostInterface:
- Convert to BLooper and implement TeamDebugger's Listener interface.
TargetHostInterfaces now directly manage their TeamDebugger instances,
and consequently take over the equivalent duties that the main application
previously had.
- Adjust signatures of Attach/CreateTeam to add const. Adjust
LocalTargetHostInterface accordingly.
- Add accessor to determine if a given interface is local or not. Will be
needed for the TeamDebugger's file manager eventually so it knows if it
needs to request remote files if no matching local file is found.
- Add accessor to start a TeamDebugger instance, and corresponding options
structure.

TargetHostInterfaceRoster:
- Minor adjustments to host interface initialization to take into account
needing to start the looper.
- Add accessor for number of running team debuggers, for the main app to
use when deciding to quit.

TeamDebugger:
- Add accessor for SettingsManager. Needed for the case of a restart request,
as the host interfaces do not have direct access to it.

TeamsWindow:
- For now, always grab the local host interface when initializing the window.
Once the remote interface is implemented, this will need to be adjusted, but
the appropriate UI for creating/selecting it is needed first anyways.

With these changes, the main application is fully host-agnostic, and all
management of actual debuggers is delegated to their parent host interfaces.
There still needs to be a listener interface for the host interface and/or
roster though, so that the application can be made aware of when debuggers
quit, as this drives whether it's time to terminate the app or not.


# d9e4b4ce 06-Apr-2016 Rene Gollent <rene@gollent.com>

Debugger: Add initial version of TargetHostInterfaceRoster.

TargetHostInterfaceRoster:
- Provides a singleton interface to enumerate both the available interface
types, and all currently running instances. This will provide clients like
the TeamsWindow with a way to present the user with all available types,
as well as the necessary information to configure/instantiate them.

TargetHostInterfaceInfo:
- Provides an information object for each available type of interface,
including an optional description of the settings needed to configure it.
Callers can then use this to provide a configuration UI as needed, and
once complete, request a corresponding interface instance for the desired
configuration.

{Local}TargetHostInterface:
- Add Settings parameter to Init(). Adjust LocalTargetHostInterface
accordingly.

LocalTargetHostInterfaceInfo:
- Implementation of TargetHostInterfaceInfo for the local system case.


# 8c7bdb72 04-Apr-2016 Rene Gollent <rene@gollent.com>

Debugger: Refactor TeamsWindow to use TargetHostInterface.

TeamsWindow:
- On startup, instantiate a LocalTargetHostInterface, and pass it
to the TeamsListView.

TeamsListView:
- Refactor building and updating the teams list to work via TargetHost
and its respective listener interface rather than the previous combination
of be_roster and manual polling.
- Style fixes.


# edf74e6c 26-Dec-2014 Rene Gollent <rene@gollent.com>

Debugger: Cleanups.

General:
- Move all smaller prompt/edit windows to a dedicated subfolder.

Debugger/TeamsWindow/StartTeamWindow:
- Move management of StartTeamWindow to application, rather than
Teams window.

TeamWindow:
- Add top level menu item for commands that aren't specific to the
current team. This currently consists of requesting that the
Teams window be shown, and directly starting a new team.

Fixes part of #11659 (no way to start additional teams if Debugger was
initially started with a specific team).


# 2253368e 05-May-2013 Rene Gollent <anevilyak@gmail.com>

Implement #8671.

Smarter Zoom behavior for TeamsWindow - resize such that the
team list view's horizontal scrollbar isn't needed.


# 447f975c 05-May-2013 Rene Gollent <anevilyak@gmail.com>

Spacing adjustments as suggested by Axel.


# 966966a3 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Cleanups.


# 9b57eae7 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Wire up Start new team button.


# 72354d67 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Also disable Attach button for kernel.


# 12abf3b2 02-May-2013 Rene Gollent <anevilyak@gmail.com>

Various cleanups to Teams window.

- Convert to using layout APIs.
- Add buttons to attach to an existing team or create a new one (not
implemented yet).
- Various minor style cleanups.


# 7015777f 17-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch the list to a BColumnListView-based one.


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


# 30c47afa 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix memory leak + style cleanup. Thanks Axel!


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


# 190108e9 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add missing allocation checks where needed.


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


# db2c7eeb 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style cleanup, no functional changes.


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


# ccb01bef 21-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Finally integrates running_teams_window stuff to the Debugger app:
* Rework Debugger class a bit to ease integration
* Expand TeamDebugger::Listener interface to notify start event too.
* Former RunningTeamsWindow, now name TeamsWindow, is shown at start
if no team/program to launch is specified.
* Double-clicking a team item in this list starts a new Team debugger, or
reactivate the existing one if any

This window settings is not yet integrated with the SettingsManager.
Will comes next.
I plan to add some UI controls to this Teams window to allow user to setup
a program arguments and environment variables and then launch & debug it.



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


# edf74e6ca88fd7a0dd394378790ebb7e2da3bc19 26-Dec-2014 Rene Gollent <rene@gollent.com>

Debugger: Cleanups.

General:
- Move all smaller prompt/edit windows to a dedicated subfolder.

Debugger/TeamsWindow/StartTeamWindow:
- Move management of StartTeamWindow to application, rather than
Teams window.

TeamWindow:
- Add top level menu item for commands that aren't specific to the
current team. This currently consists of requesting that the
Teams window be shown, and directly starting a new team.

Fixes part of #11659 (no way to start additional teams if Debugger was
initially started with a specific team).


# 2253368e6aa54138e5cee18af291082da483da46 05-May-2013 Rene Gollent <anevilyak@gmail.com>

Implement #8671.

Smarter Zoom behavior for TeamsWindow - resize such that the
team list view's horizontal scrollbar isn't needed.


# 447f975c88aa542f41ca119f07af3e94bd87d3b4 05-May-2013 Rene Gollent <anevilyak@gmail.com>

Spacing adjustments as suggested by Axel.


# 966966a38d788b329ea854892d5cd3c6e001fcde 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Cleanups.


# 9b57eae7e69447edb44571418928da54014f7359 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Wire up Start new team button.


# 72354d67594e895d5435408a5b7918145e262009 03-May-2013 Rene Gollent <anevilyak@gmail.com>

Also disable Attach button for kernel.


# 12abf3b28011c9034fefeb9efec04cc4a7c224ed 02-May-2013 Rene Gollent <anevilyak@gmail.com>

Various cleanups to Teams window.

- Convert to using layout APIs.
- Add buttons to attach to an existing team or create a new one (not
implemented yet).
- Various minor style cleanups.


# 7015777f33adebf9b333ba90a2559ec2ffc4dbc6 17-Nov-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Switch the list to a BColumnListView-based one.


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


# 30c47afa79f617945e74394c463e2eb5cc021950 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix memory leak + style cleanup. Thanks Axel!


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


# 190108e9c901482dabfc9c88fb2f9e23cdb405e3 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Add missing allocation checks where needed.


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


# db2c7eeb49cf219569e7ff442187bab11805c82d 22-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style cleanup, no functional changes.


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


# ccb01bef441eb4f8a951633d646dd545fe5f800c 21-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Finally integrates running_teams_window stuff to the Debugger app:
* Rework Debugger class a bit to ease integration
* Expand TeamDebugger::Listener interface to notify start event too.
* Former RunningTeamsWindow, now name TeamsWindow, is shown at start
if no team/program to launch is specified.
* Double-clicking a team item in this list starts a new Team debugger, or
reactivate the existing one if any

This window settings is not yet integrated with the SettingsManager.
Will comes next.
I plan to add some UI controls to this Teams window to allow user to setup
a program arguments and environment variables and then launch & debug it.



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