summaryrefslogtreecommitdiffstats
path: root/src/sq_filethumbviewitem.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-02-10 15:10:13 +0900
committerMichele Calgaro <[email protected]>2025-02-10 15:10:13 +0900
commit203fcb8d90752b546c672c625927a136b959fcfb (patch)
treea899621e4cb63e2cdd9b94f889ee9d0ae8561bf0 /src/sq_filethumbviewitem.h
parent98c274834c63c7fa4a9a494fdf7cd483336714d5 (diff)
downloadksquirrel-203fcb8d90752b546c672c625927a136b959fcfb.tar.gz
ksquirrel-203fcb8d90752b546c672c625927a136b959fcfb.zip
Rename 'ksquirrel' folder to 'src'
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/sq_filethumbviewitem.h')
-rw-r--r--src/sq_filethumbviewitem.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/sq_filethumbviewitem.h b/src/sq_filethumbviewitem.h
new file mode 100644
index 0000000..adddb67
--- /dev/null
+++ b/src/sq_filethumbviewitem.h
@@ -0,0 +1,64 @@
+/***************************************************************************
+ sq_filethumbviewitem.h - description
+ -------------------
+ begin : ??? ??? 12 2004
+ copyright : (C) 2004 by Baryshev Dmitry
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SQ_FILETHUMBVIEWITEM_H
+#define SQ_FILETHUMBVIEWITEM_H
+
+#include <tqpixmap.h>
+
+#include <tdefileiconview.h>
+
+/*
+ * SQ_FileThumbViewItem represents a thumbnail item in SQ_FileThumbView.
+ * Additianally it stores some useful info.
+ */
+
+class SQ_FileThumbViewItem : public KFileIconViewItem
+{
+ public:
+ SQ_FileThumbViewItem(TQIconView *parent, const TQString &text, const TQPixmap &pixmap, KFileItem *fi);
+ ~SQ_FileThumbViewItem();
+
+ bool listed() const;
+
+ void setListed(bool l);
+
+ protected:
+ /*
+ * Painting routines.
+ */
+ virtual void paintItem(TQPainter *p, const TQColorGroup &cg);
+ virtual void paintFocus(TQPainter *p, const TQColorGroup &cg);
+ void paintText(TQPainter *p, const TQColorGroup &c);
+
+ private:
+ bool m_listed;
+};
+
+inline
+bool SQ_FileThumbViewItem::listed() const
+{
+ return m_listed;
+}
+
+inline
+void SQ_FileThumbViewItem::setListed(bool l)
+{
+ m_listed = l;
+}
+
+#endif