mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
HackStudio: Add TODO entries widget
This commit is contained in:
parent
26a7356e90
commit
935c7b2f4b
Notes:
sideshowbarker
2024-07-18 11:36:56 +09:00
Author: https://github.com/guerinoni
Commit: 935c7b2f4b
Pull-request: https://github.com/SerenityOS/serenity/pull/6614
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/itamar8910 ✅
Reviewed-by: https://github.com/linusg
5 changed files with 134 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "Project.h"
|
||||
#include "ProjectDeclarations.h"
|
||||
#include "TerminalWrapper.h"
|
||||
#include "ToDoEntries.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <Kernel/API/InodeWatcherEvent.h>
|
||||
|
@ -867,6 +868,7 @@ void HackStudioWidget::create_action_tab(GUI::Widget& parent)
|
|||
};
|
||||
|
||||
m_find_in_files_widget = m_action_tab_widget->add_tab<FindInFilesWidget>("Find in files");
|
||||
m_todo_entries_widget = m_action_tab_widget->add_tab<ToDoEntriesWidget>("TODO");
|
||||
m_terminal_wrapper = m_action_tab_widget->add_tab<TerminalWrapper>("Build", false);
|
||||
m_debug_info_widget = m_action_tab_widget->add_tab<DebugInfoWidget>("Debug");
|
||||
m_disassembly_widget = m_action_tab_widget->add_tab<DisassemblyWidget>("Disassembly");
|
||||
|
@ -875,6 +877,10 @@ void HackStudioWidget::create_action_tab(GUI::Widget& parent)
|
|||
m_diff_viewer->set_content(original_content, diff);
|
||||
set_edit_mode(EditMode::Diff);
|
||||
});
|
||||
|
||||
ToDoEntries::the().on_update = [this]() {
|
||||
m_todo_entries_widget->refresh();
|
||||
};
|
||||
}
|
||||
|
||||
void HackStudioWidget::create_project_tab(GUI::Widget& parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue