Class sh::ui::qt::QtFileView

class sh::ui::qt::QtFileView : public std::enable_shared_from_this<QtFileView>

Abstract base class for views for the contents of one directory.

Subclassed by sh::ui::qt::QtFileIconview, sh::ui::qt::QtFileList

Public Functions

QtFileView()

Constructed only by the infrastructure and made available otherwise.

~QtFileView()
void setBackgroundColor(QString c)
QString backgroundColor()
QList<std::shared_ptr<sh::filesystem::FilesystemNode>> selectedNodes()
void setSelection(const QList<std::shared_ptr<sh::filesystem::FilesystemNode>> nodes)
std::shared_ptr<sh::filesystem::FilesystemNode> node()
QList<std::shared_ptr<sh::filesystem::FilesystemNode>> getAllVisibleNodes()
void setSizeFormatting(sh::filesystem::SizeFormatting v)
void gotoDir(std::shared_ptr<sh::filesystem::FilesystemNode> n)
void setHiddenFilesVisible(bool value)
QThread *thread()
void configure(sh::ui::qt::QtFileViewControl *viewctrl)
void focus()
void setSort(int column, Qt::SortOrder order)
QObject *as_qobject()
QWidget *as_qwidget()
QAbstractItemView *as_qabstractitemview()
sh::ui::qt::QtFileViewControl *control()

Private Members

sh::ui::qt::QtFileViewControl *_viewctrl = nullptr
QString _tmp_bgColor
QPoint _dragStartPosition
int _async_gotodir_index = 0
bool _dragIsValid = false
int _sort_column = 0
Qt::SortOrder _sort_order = Qt::AscendingOrder

Friends

friend class sh::actions::common::ActionHistoryNavigateForward
friend class sh::actions::common::ActionHistoryNavigateBackward
friend class sh::actions::common::ActionNavigateInHistory
friend class sh::ui::qt::QtFileViewControl
class EventFilter : public QObject

Public Functions

EventFilter(QObject *parent, QtFileView *fileview, sh::ui::qt::QtFileViewControl *fileviewctrl)
bool eventFilter(QObject *object, QEvent *event)

Private Members

QtFileView *fileview
sh::ui::qt::QtFileViewControl *fileviewctrl