mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Initial support of drag and drop to move files and folders around from the file tree view (SpartanJ/ecode#71).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "pluginmanager.hpp"
|
||||
#include "../filesystemlistener.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "pluginmanager.hpp"
|
||||
#include <eepp/system/filesystem.hpp>
|
||||
#include <eepp/system/md5.hpp>
|
||||
#include <eepp/system/scopedop.hpp>
|
||||
@@ -402,9 +402,9 @@ class UIPluginManagerTable : public UITableView {
|
||||
setOnUpdateCellCb( [this]( UITableCell* cell, Model* model ) {
|
||||
if ( mUpdatingEnabled )
|
||||
return;
|
||||
if ( !cell->getTextBox()->isType( UI_TYPE_CHECKBOX ) )
|
||||
if ( !cell->getTextView()->isType( UI_TYPE_CHECKBOX ) )
|
||||
return;
|
||||
UICheckBox* chk = cell->getTextBox()->asType<UICheckBox>();
|
||||
UICheckBox* chk = cell->getTextView()->asType<UICheckBox>();
|
||||
PluginsModel* pModel = static_cast<PluginsModel*>( model );
|
||||
bool enabled = pModel
|
||||
->data( model->index( cell->getCurIndex().row(),
|
||||
@@ -449,7 +449,7 @@ class UIPluginManagerTable : public UITableView {
|
||||
if ( index.column() == PluginsModel::Title ) {
|
||||
UITableCell* widget = UITableCell::NewWithOpt(
|
||||
mTag + "::cell", getCheckBoxFn( index, (const PluginsModel*)getModel() ) );
|
||||
widget->getTextBox()->setEnabled( true );
|
||||
widget->getTextView()->setEnabled( true );
|
||||
return setupCell( widget, rowWidget, index );
|
||||
}
|
||||
return UITableView::createCell( rowWidget, index );
|
||||
|
||||
Reference in New Issue
Block a user