#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.
set_path_model::set_path_model | ( | QObject * | p = nullptr | ) |
Definition at line 48 of file set-path-model.cc.
References update_data(), and update_data_signal().
|
default |
void set_path_model::add_dir | ( | const QString & | p | ) |
Definition at line 135 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
void set_path_model::clear | ( | void | ) |
Definition at line 91 of file set-path-model.cc.
References m_dirs.
Referenced by revert(), and revert_last().
QVariant set_path_model::data | ( | const QModelIndex & | idx, |
int | role | ||
) | const |
Definition at line 260 of file set-path-model.cc.
References m_dirs.
|
signal |
Referenced by set_path_dialog::set_path_dialog(), model_to_path(), path_to_model(), and save().
|
signal |
void set_path_model::model_to_path | ( | void | ) |
Definition at line 76 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 set_path_model::move_dir_bottom | ( | const QModelIndexList & | indices | ) |
Definition at line 232 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
void set_path_model::move_dir_down | ( | const QModelIndexList & | indices | ) |
Definition at line 188 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
void set_path_model::move_dir_top | ( | const QModelIndexList & | indices | ) |
Definition at line 211 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
void set_path_model::move_dir_up | ( | const QModelIndexList & | indices | ) |
Definition at line 166 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
|
slot |
Definition at line 284 of file set-path-model.cc.
References load_path::dir_list(), for(), Utils::fromStdString(), interpreter::get_load_path(), interpreter_event(), m_revertible, and update_data_signal().
Referenced by set_path_dialog::set_path_dialog().
|
slot |
Definition at line 113 of file set-path-model.cc.
References clear(), m_dirs, m_orig_dirs, and model_to_path().
Referenced by set_path_dialog::set_path_dialog().
|
slot |
Definition at line 124 of file set-path-model.cc.
References clear(), m_dirs, m_last_dirs, and model_to_path().
Referenced by set_path_dialog::set_path_dialog().
void set_path_model::rm_dir | ( | const QModelIndexList & | indices | ) |
Definition at line 150 of file set-path-model.cc.
References m_dirs, m_last_dirs, and model_to_path().
int set_path_model::rowCount | ( | const QModelIndex & | p = QModelIndex () | ) | const |
Definition at line 255 of file set-path-model.cc.
References m_dirs.
|
slot |
Definition at line 100 of file set-path-model.cc.
References interpreter::feval(), interpreter_event(), and model_to_path().
Referenced by set_path_dialog::set_path_dialog().
std::string set_path_model::to_string | ( | void | ) |
Definition at line 57 of file set-path-model.cc.
References m_dirs, and directory_path::path_sep_str().
Referenced by model_to_path().
|
privateslot |
Definition at line 318 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 path_to_model(), and update_data().