#include "set-path-model.h"


Public Slots | |
| void | path_to_model (void) |
| void | revert (void) |
| void | revert_last (void) |
| void | save (void) |
Signals | |
| void | interpreter_event (const fcn_callback &fcn) |
| void | interpreter_event (const meth_callback &meth) |
| void | update_data_signal (const QStringList &dirs) |
Public Member Functions | |
| set_path_model (QObject *p=nullptr) | |
| ~set_path_model (void)=default | |
| void | add_dir (const QString &p) |
| void | clear (void) |
| QVariant | data (const QModelIndex &idx, int role) const |
| void | model_to_path (void) |
| void | move_dir_bottom (const QModelIndexList &indices) |
| void | move_dir_down (const QModelIndexList &indices) |
| void | move_dir_top (const QModelIndexList &indices) |
| void | move_dir_up (const QModelIndexList &indices) |
| void | rm_dir (const QModelIndexList &indices) |
| int | rowCount (const QModelIndex &p=QModelIndex()) const |
| std::string | to_string (void) |
Private Slots | |
| void | update_data (const QStringList &dirs) |
Private Attributes | |
| QStringList | m_dirs |
| QStringList | m_last_dirs |
| QStringList | m_orig_dirs |
| bool | m_revertible |
Definition at line 39 of file set-path-model.h.
| octave::set_path_model::set_path_model | ( | QObject * | p = nullptr | ) |
Definition at line 47 of file set-path-model.cc.
References m_revertible, update_data(), and update_data_signal().
|
default |
| void octave::set_path_model::add_dir | ( | const QString & | p | ) |
Definition at line 134 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::add_dir_common().
| void octave::set_path_model::clear | ( | void | ) |
Definition at line 90 of file set-path-model.cc.
References m_dirs.
Referenced by revert(), and revert_last().
| QVariant octave::set_path_model::data | ( | const QModelIndex & | idx, |
| int | role | ||
| ) | const |
Definition at line 259 of file set-path-model.cc.
References m_dirs.
|
signal |
Referenced by octave::set_path_dialog::set_path_dialog(), model_to_path(), path_to_model(), and save().
|
signal |
| void octave::set_path_model::model_to_path | ( | void | ) |
Definition at line 75 of file set-path-model.cc.
References interpreter::get_load_path(), interpreter_event(), load_path::set(), and to_string().
Referenced by add_dir(), move_dir_bottom(), move_dir_down(), move_dir_top(), move_dir_up(), revert(), revert_last(), rm_dir(), and save().
| void octave::set_path_model::move_dir_bottom | ( | const QModelIndexList & | indices | ) |
Definition at line 231 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::move_dir_bottom().
| void octave::set_path_model::move_dir_down | ( | const QModelIndexList & | indices | ) |
Definition at line 187 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::move_dir_down().
| void octave::set_path_model::move_dir_top | ( | const QModelIndexList & | indices | ) |
Definition at line 210 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::move_dir_top().
| void octave::set_path_model::move_dir_up | ( | const QModelIndexList & | indices | ) |
Definition at line 165 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::move_dir_up().
|
slot |
Definition at line 283 of file set-path-model.cc.
References load_path::dir_list(), octave::Utils::fromStdString(), interpreter::get_load_path(), interpreter_event(), m_revertible, and update_data_signal().
Referenced by octave::set_path_dialog::set_path_dialog(), and octave::set_path_dialog::update_model().
|
slot |
Definition at line 112 of file set-path-model.cc.
References clear(), m_dirs, m_orig_dirs, and model_to_path().
Referenced by octave::set_path_dialog::set_path_dialog().
|
slot |
Definition at line 123 of file set-path-model.cc.
References clear(), m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::set_path_dialog().
| void octave::set_path_model::rm_dir | ( | const QModelIndexList & | indices | ) |
Definition at line 149 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
Referenced by octave::set_path_dialog::rm_dir().
| int octave::set_path_model::rowCount | ( | const QModelIndex & | p = QModelIndex () | ) | const |
Definition at line 254 of file set-path-model.cc.
References m_dirs.
Referenced by octave::set_path_dialog::move_dir_bottom(), octave::set_path_dialog::move_dir_down(), and octave::set_path_dialog::move_dir_up().
|
slot |
Definition at line 99 of file set-path-model.cc.
References interpreter::feval(), interpreter_event(), and model_to_path().
Referenced by octave::set_path_dialog::set_path_dialog().
| std::string octave::set_path_model::to_string | ( | void | ) |
Definition at line 56 of file set-path-model.cc.
References m_dirs, and octave::directory_path::path_sep_str().
Referenced by model_to_path().
|
privateslot |
Definition at line 305 of file set-path-model.cc.
References m_dirs, m_last_dirs, m_orig_dirs, m_revertible, and numel().
Referenced by set_path_model().
|
signal |
Referenced by set_path_model(), and path_to_model().
|
private |
Definition at line 96 of file set-path-model.h.
Referenced by add_dir(), clear(), data(), move_dir_bottom(), move_dir_down(), move_dir_top(), move_dir_up(), revert(), revert_last(), rm_dir(), rowCount(), to_string(), and update_data().
|
private |
Definition at line 100 of file set-path-model.h.
Referenced by add_dir(), move_dir_bottom(), move_dir_down(), move_dir_top(), move_dir_up(), revert_last(), rm_dir(), and update_data().
|
private |
Definition at line 98 of file set-path-model.h.
Referenced by revert(), and update_data().
|
private |
Definition at line 102 of file set-path-model.h.
Referenced by set_path_model(), path_to_model(), and update_data().