File indexing completed on 2024-05-12 15:55:49
0001 /* SPDX-FileCopyrightText: 2003-2011 Jesper K. Pedersen <blackie@kde.org> 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 #ifndef SELECTIONMAINTAINER_H 0006 #define SELECTIONMAINTAINER_H 0007 0008 #include "ThumbnailModel.h" 0009 #include "ThumbnailWidget.h" 0010 0011 #include <kpabase/FileNameList.h> 0012 0013 namespace ThumbnailView 0014 { 0015 0016 class SelectionMaintainer 0017 { 0018 public: 0019 SelectionMaintainer(ThumbnailWidget *widget, ThumbnailModel *model); 0020 ~SelectionMaintainer(); 0021 void disable(); 0022 0023 private: 0024 ThumbnailWidget *m_widget; 0025 ThumbnailModel *m_model; 0026 DB::FileName m_currentItem; 0027 int m_currentRow; 0028 DB::FileNameList m_selectedItems; 0029 int m_firstRow; 0030 bool m_enabled; 0031 }; 0032 0033 } 0034 0035 #endif // SELECTIONMAINTAINER_H 0036 // vi:expandtab:tabstop=4 shiftwidth=4: