26 #if ! defined (octave_set_path_model_h)
27 #define octave_set_path_model_h 1
29 #include <QAbstractListModel>
33 #include <QStringList>
51 void add_dir (
const QString& p);
53 void rm_dir (
const QModelIndexList& indices);
69 int rowCount (
const QModelIndex& p = QModelIndex ())
const;
71 QVariant
data (
const QModelIndex& idx,
int role)
const;
std::string to_string(void)
void move_dir_down(const QModelIndexList &indices)
~set_path_model(void)=default
QVariant data(const QModelIndex &idx, int role) const
void interpreter_event(const fcn_callback &fcn)
void add_dir(const QString &p)
void move_dir_top(const QModelIndexList &indices)
void interpreter_event(const meth_callback &meth)
void move_dir_up(const QModelIndexList &indices)
int rowCount(const QModelIndex &p=QModelIndex()) const
void rm_dir(const QModelIndexList &indices)
void move_dir_bottom(const QModelIndexList &indices)
void update_data_signal(const QStringList &dirs)
void update_data(const QStringList &dirs)
set_path_model(QObject *p=nullptr)
std::function< void(octave::interpreter &)> meth_callback
std::function< void(void)> fcn_callback