-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debugger: More work on signal configuration.
- Introduce SignalDispositionEditWindow for add/editing disposition exceptions. SignalsConfigView: - Factor out helper class SignalDispositionMenu. Use accordingly in SignalsConfigView and SignalDispositionEditWindow. - Watch table selection changes to update button statuses appropriately. - On add/edit request, show disposition edit window. - Listen for disposition changes from team and react accordingly. UiUtils: - Add helper function to map signal defines to strings. Together with the previous set of commits, this implements #9720.
- Loading branch information
Showing
10 changed files
with
522 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/apps/debugger/user_interface/gui/util/SignalDispositionMenu.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2015, Rene Gollent, rene@gollent.com. | ||
* Distributed under the terms of the MIT License. | ||
*/ | ||
|
||
|
||
#include "SignalDispositionMenu.h" | ||
|
||
#include <new> | ||
|
||
#include <MenuItem.h> | ||
|
||
#include "SignalDispositionTypes.h" | ||
#include "UiUtils.h" | ||
|
||
|
||
SignalDispositionMenu::SignalDispositionMenu(const char* label, | ||
BMessage* baseMessage) | ||
: | ||
BMenu(label) | ||
{ | ||
for (int i = 0; i < SIGNAL_DISPOSITION_MAX; i++) { | ||
BMessage* message = NULL; | ||
if (baseMessage != NULL) { | ||
message = new BMessage(*baseMessage); | ||
message->AddInt32("disposition", i); | ||
} | ||
|
||
AddItem(new BMenuItem(UiUtils::SignalDispositionToString(i), message)); | ||
} | ||
} | ||
|
||
|
||
SignalDispositionMenu::~SignalDispositionMenu() | ||
{ | ||
} |
20 changes: 20 additions & 0 deletions
20
src/apps/debugger/user_interface/gui/util/SignalDispositionMenu.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2015, Rene Gollent, rene@gollent.com. | ||
* Distributed under the terms of the MIT License. | ||
*/ | ||
#ifndef SIGNAL_DISPOSITION_MENU_H | ||
#define SIGNAL_DISPOSITION_MENU_H | ||
|
||
|
||
#include <Menu.h> | ||
|
||
|
||
class SignalDispositionMenu : public BMenu { | ||
public: | ||
SignalDispositionMenu(const char* label, | ||
BMessage* baseMessage = NULL); | ||
virtual ~SignalDispositionMenu(); | ||
}; | ||
|
||
|
||
#endif // SIGNAL_DISPOSITION_MENU_H |
Oops, something went wrong.