From 05aa96d20ca726908a7d8b1943f86f0c4e11bf18 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 17 Jun 2026 01:46:09 -0500 Subject: Prepare Nexus-safe release cleanup --- .../installer/ui/FomodImageViewer.h | 92 ---------------------- 1 file changed, 92 deletions(-) delete mode 100644 libs/installer_fomod_plus/installer/ui/FomodImageViewer.h (limited to 'libs/installer_fomod_plus/installer/ui/FomodImageViewer.h') diff --git a/libs/installer_fomod_plus/installer/ui/FomodImageViewer.h b/libs/installer_fomod_plus/installer/ui/FomodImageViewer.h deleted file mode 100644 index 73a06f7..0000000 --- a/libs/installer_fomod_plus/installer/ui/FomodImageViewer.h +++ /dev/null @@ -1,92 +0,0 @@ -#pragma once - -#include "FomodViewModel.h" - -#include -#include -#include -#include - -class ScaleLabel; -using LabelImagePair = std::pair; - - -/* -+----------------------------------------------------------+ -|n/N X | -+---+--------------------------------------------------+---+ -| | | | -| | | | -| | | | -| | | | -| | | | -| | | | -| < | Image | > | -| | | | -| | | | -| | | | -| | | | -| | label | | -+------+------+------+---------------------------------+---+ -| | | | ...previews | -| | | | | -+------+------+------+-------------------------------------+ -*/ - -class FomodImageViewer final : public QDialog { - Q_OBJECT - -public: - explicit FomodImageViewer(QWidget* parent, - const QString& fomodPath, - const std::shared_ptr& activeStep, - const std::shared_ptr& activePlugin); - -private: - void collectImages(); - - QWidget* createCenterRow(QWidget* parent); - - QWidget* createSinglePhotoPane(QWidget* parent); - - QScrollArea* createPreviewImages(QWidget* parent); - - QPushButton* createBackButton(QWidget* parent) const; - - QPushButton* createForwardButton(QWidget* parent) const; - - QWidget* createTopBar(QWidget* parent); - - QPushButton* createCloseButton(QWidget* parent); - - void updateCounterText() const; - - void goBack(); - - void goForward(); - - void select(int index); - - void keyPressEvent(QKeyEvent* event) override; - - void showEvent(QShowEvent* event) override; - - std::vector mLabelsAndImages; - std::vector mImagePanes{}; - int mCurrentIndex{ 0 }; - - QString mFomodPath; - const std::shared_ptr& mActiveStep; - const std::shared_ptr& mActivePlugin; - - QWidget* mCenterRow{ nullptr }; - QWidget* mTopBar{ nullptr }; - QWidget* mCloseButton{ nullptr }; - QPushButton* mBackButton{ nullptr }; - QPushButton* mForwardButton{ nullptr }; - QLabel* mCounter{ nullptr }; - QWidget* mMainImageWrapper{ nullptr }; - ScaleLabel* mMainImage{ nullptr }; - QLabel* mLabel{ nullptr }; - QScrollArea* mPreviewImages{ nullptr }; -}; \ No newline at end of file -- cgit v1.3.1