1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

LibGUI+PDFViewer: Move NumericInput into LibGUI

A text box that is restricted to numbers within a range, is generally
useful. Let's make it available for use!
This commit is contained in:
Sam Atkins 2024-01-08 17:29:18 +00:00 committed by Sam Atkins
parent 4fd5d450be
commit ea31c11aff
7 changed files with 31 additions and 4 deletions

View file

@ -6,7 +6,6 @@
#pragma once
#include "NumericInput.h"
#include "PDFViewer.h"
#include "SidebarWidget.h"
#include <AK/NonnullRefPtr.h>
@ -14,6 +13,7 @@
#include <LibGUI/Action.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/NumericInput.h>
#include <LibGUI/Widget.h>
class PDFViewer;
@ -40,7 +40,7 @@ private:
RefPtr<SidebarWidget> m_sidebar;
NonnullRefPtr<PagedErrorsModel> m_paged_errors_model;
RefPtr<GUI::TreeView> m_errors_tree_view;
RefPtr<NumericInput> m_page_text_box;
RefPtr<GUI::NumericInput> m_page_text_box;
RefPtr<GUI::Label> m_total_page_label;
RefPtr<GUI::Action> m_go_to_prev_page_action;
RefPtr<GUI::Action> m_go_to_next_page_action;