mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +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:
@@ -65,7 +65,7 @@ UIWidget* UIBreakpointsTableView::createCell( UIWidget* rowWidget, const ModelIn
|
||||
if ( index.column() == BreakpointsModel::Enabled ) {
|
||||
UIBreakpointsTableCell* widget = UIBreakpointsTableCell::New(
|
||||
mTag + "::cell", (const BreakpointsModel*)getModel(), index );
|
||||
widget->getTextBox()->setEnabled( true );
|
||||
widget->getTextView()->setEnabled( true );
|
||||
widget->setDontAutoHideEmptyTextBox( true );
|
||||
return setupCell( widget, rowWidget, index );
|
||||
} else if ( index.column() == BreakpointsModel::Remove ) {
|
||||
|
||||
@@ -340,7 +340,7 @@ void GitPlugin::updateStatusBarSync() {
|
||||
mStatusButton->setClass( "status_but" );
|
||||
mStatusButton->setIcon( iconDrawable( "source-control", 10 ) );
|
||||
mStatusButton->reloadStyle( true, true );
|
||||
mStatusButton->getTextBox()->setUsingCustomStyling( true );
|
||||
mStatusButton->getTextView()->setUsingCustomStyling( true );
|
||||
|
||||
mStatusButton->on( Event::MouseClick, [this]( const Event* event ) {
|
||||
if ( nullptr == mTab )
|
||||
@@ -397,7 +397,7 @@ void GitPlugin::updateStatusBarSync() {
|
||||
}
|
||||
|
||||
SyntaxTokenizer::tokenizeText( mStatusCustomTokenizer->def, mStatusCustomTokenizer->scheme,
|
||||
mStatusButton->getTextBox()->getTextCache() );
|
||||
mStatusButton->getTextView()->getTextCache() );
|
||||
|
||||
mStatusButton->invalidateDraw();
|
||||
}
|
||||
@@ -871,8 +871,7 @@ void GitPlugin::commit( const std::string& repoPath ) {
|
||||
|
||||
txtEdit->getDocument().setCommand(
|
||||
"commit-amend", [chkAmend] { chkAmend->setChecked( !chkAmend->isChecked() ); } );
|
||||
txtEdit->getKeyBindings().addKeybind( { KEY_L, KeyMod::getDefaultModifier() },
|
||||
"commit-amend" );
|
||||
txtEdit->getKeyBindings().addKeybind( { KEY_L, KeyMod::getDefaultModifier() }, "commit-amend" );
|
||||
|
||||
txtEdit->getDocument().setCommand(
|
||||
"commit-push", [chkPush] { chkPush->setChecked( !chkPush->isChecked() ); } );
|
||||
|
||||
@@ -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