summaryrefslogtreecommitdiff
path: root/src/components/channellist/channellisttree.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:01:01 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:01:01 -0500
commit43b05527e7729bb8089d0079d122216f26a7eed3 (patch)
tree5747bf2c3abfa7973bea0e3405efb386ca8449e9 /src/components/channellist/channellisttree.hpp
parent9cd904638c687695fb88b209e3fbc6f0be8891ac (diff)
downloadabaddon-portaudio-43b05527e7729bb8089d0079d122216f26a7eed3.tar.gz
abaddon-portaudio-43b05527e7729bb8089d0079d122216f26a7eed3.zip
add sort model in front of filter in channel tree
Diffstat (limited to 'src/components/channellist/channellisttree.hpp')
-rw-r--r--src/components/channellist/channellisttree.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/channellist/channellisttree.hpp b/src/components/channellist/channellisttree.hpp
index b49187a..9d065ec 100644
--- a/src/components/channellist/channellisttree.hpp
+++ b/src/components/channellist/channellisttree.hpp
@@ -90,7 +90,13 @@ protected:
ModelColumns m_columns;
Glib::RefPtr<Gtk::TreeStore> m_model;
Glib::RefPtr<Gtk::TreeModelFilter> m_filter_model;
+ Glib::RefPtr<Gtk::TreeModelSort> m_sort_model;
+ Gtk::TreePath ConvertModelPathToView(const Gtk::TreePath &path);
+ Gtk::TreeIter ConvertModelIterToView(const Gtk::TreeIter &iter);
+ Gtk::TreePath ConvertViewPathToModel(const Gtk::TreePath &path);
+ Gtk::TreeIter ConvertViewIterToModel(const Gtk::TreeIter &iter);
+ Gtk::TreePath GetViewPathFromViewIter(const Gtk::TreeIter &iter);
Gtk::TreeModel::iterator AddFolder(const UserSettingsGuildFoldersEntry &folder);
Gtk::TreeModel::iterator AddGuild(const GuildData &guild, const Gtk::TreeNodeChildren &root);
Gtk::TreeModel::iterator UpdateCreateChannelCategory(const ChannelData &channel);