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);
55 void move_dir_up (
const QModelIndexList& indices);
57 void move_dir_down (
const QModelIndexList& indices);
59 void move_dir_top (
const QModelIndexList& indices);
61 void move_dir_bottom (
const QModelIndexList& indices);
63 std::string to_string (
void);
67 void model_to_path (
void);
69 int rowCount (
const QModelIndex& p = QModelIndex ())
const;
71 QVariant data (
const QModelIndex& idx,
int role)
const;
82 void path_to_model (
void);
88 void revert_last (
void);
92 void update_data (
const QStringList& dirs);
void update_data_signal(const QStringList &dirs)
void interpreter_event(const fcn_callback &fcn)
~set_path_model(void)=default
void interpreter_event(const meth_callback &meth)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::function< void(void)> fcn_callback
std::function< void(interpreter &)> meth_callback