Class sh::ui::qt::QtFilesystemPanel

class sh::ui::qt::QtFilesystemPanel : public QWidget

A splitted horizontal panel of file views.

Public Functions

QtFilesystemPanel(QWidget *parent = 0)
~QtFilesystemPanel()
void addView(bool reinitialize = false)
void removeView(int i)
sh::ui::FileView *currentView()
int currentViewIndex()
int viewsCount()
sh::ui::FileView *view(int i)
void selectFolder(std::shared_ptr<sh::filesystem::FilesystemNode> folder, int index = -1)
QList<std::shared_ptr<sh::filesystem::FilesystemNode>> selectedNodes()
void _emit_viewmodeChanged(int i)
void buildView(std::shared_ptr<sh::ui::qt::QtFileView> *list, sh::ui::qt::QtFileViewControl *viewctrl, bool isNew)
void setCustomWidget(int i, std::shared_ptr<QWidget> w)
std::shared_ptr<sh::ui::qt::QtFileView> viewwidget(int i)

Signals

void panelFolderActivated(std::shared_ptr<sh::filesystem::FilesystemNode> folder, bool realSwitch)
void panelCurrentViewChanged()
void panelViewmodeChanged(int i)
void panelViewOptionChanged(int i)
void panelViewCountChanged()
void panelSelectionChanged()

Private Members

Ui::QtFilesystemPanel *ui
std::shared_ptr<sh::ui::qt::QtFileView> activeView
QString activeColor
QString inactiveColor
QList<std::shared_ptr<sh::ui::qt::QtFileView>> _views
QList<QWidget*> _mainviews
QHash<QWidget*, std::shared_ptr<QWidget>> _customwidgets
QList<sh::ui::qt::QtFileViewControl*> _viewcontrols
bool _skip_eventfilter = false

Friends

friend class ui::qt::QtMainWindow
friend class ui::FileView