-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add developer tab with ssh keys toggle
- Loading branch information
Showing
15 changed files
with
841 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "selfdrive/ui/qt/offroad/settings.h" | ||
|
||
#include <cassert> | ||
#include <cmath> | ||
#include <string> | ||
|
||
#include <QDebug> | ||
#include <QLabel> | ||
|
||
#include "common/params.h" | ||
#include "common/util.h" | ||
#include "selfdrive/ui/ui.h" | ||
#include "selfdrive/ui/qt/util.h" | ||
#include "selfdrive/ui/qt/widgets/controls.h" | ||
#include "selfdrive/ui/qt/widgets/ssh_keys.h" | ||
#include "selfdrive/ui/qt/widgets/input.h" | ||
#include "system/hardware/hw.h" | ||
|
||
DeveloperPanel::DeveloperPanel(QWidget* parent) : ListWidget(parent) { | ||
addItem(new SshToggle()); | ||
|
||
// if (!params.getBool("IsTestedBranch")) { | ||
// addItme(joystickModeToggle); | ||
// addItme(longitudinalReportButton); | ||
// } | ||
|
||
// fs_watch = new ParamWatcher(this); | ||
// QObject::connect(fs_watch, &ParamWatcher::paramChanged, [=](const QString ¶m_name, const QString ¶m_value) { | ||
// updateLabels(); | ||
// }); | ||
|
||
// connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { | ||
// is_onroad = !offroad; | ||
// updateLabels(); | ||
// }); | ||
|
||
// updateLabels(); | ||
} | ||
|
||
// Add this function implementation | ||
void DeveloperPanel::showEvent(QShowEvent* event) { | ||
ListWidget::showEvent(event); | ||
// Add any custom behavior for when the panel is shown | ||
} |
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
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
Oops, something went wrong.