weld: Move weld::Spinner to own header

Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I98a090f31fc8b4111b7e13dfcdf843af8c3113c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205474
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-05-22 21:56:11 +02:00
parent ecab2e0226
commit fa9fc166ea
6 changed files with 30 additions and 7 deletions
@@ -28,6 +28,7 @@
#include <rtl/ustring.hxx>
#include <tools/link.hxx>
#include <vcl/weld/DialogController.hxx>
#include <vcl/weld/Spinner.hxx>
#include <vcl/weld/TextView.hxx>
#include <vcl/weld/TreeView.hxx>
#include <vcl/weld/Window.hxx>
+25
View File
@@ -0,0 +1,25 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <vcl/dllapi.h>
#include <vcl/weld/Widget.hxx>
namespace weld
{
class VCL_DLLPUBLIC Spinner : virtual public Widget
{
public:
virtual void start() = 0;
virtual void stop() = 0;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
-7
View File
@@ -324,13 +324,6 @@ public:
void connect_value_changed(const Link<Scale&, void>& rLink) { m_aValueChangedHdl = rLink; }
};
class VCL_DLLPUBLIC Spinner : virtual public Widget
{
public:
virtual void start() = 0;
virtual void stop() = 0;
};
enum class LabelType
{
Normal,
+2
View File
@@ -13,6 +13,8 @@
#include "QtInstanceWidget.hxx"
#include <vcl/weld/Spinner.hxx>
#include <QtWidgets/QProgressBar>
class QtInstanceSpinner : public QtInstanceWidget, public virtual weld::Spinner
+1
View File
@@ -34,6 +34,7 @@
#include <vcl/weld/Scrollbar.hxx>
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/SpinButton.hxx>
#include <vcl/weld/Spinner.hxx>
#include <vcl/weld/TextView.hxx>
#include <vcl/weld/Toolbar.hxx>
#include <vcl/weld/TreeView.hxx>
+1
View File
@@ -59,6 +59,7 @@
#include <vcl/weld/ScrolledWindow.hxx>
#include <vcl/weld/SizeGroup.hxx>
#include <vcl/weld/SpinButton.hxx>
#include <vcl/weld/Spinner.hxx>
#include <vcl/weld/TextView.hxx>
#include <vcl/weld/Toolbar.hxx>
#include <unx/genpspgraphics.h>