diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 4c4e0ae..4d0d232 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -719,44 +719,7 @@ public: uint32_t level; }; -#define MAX_LEVEL 20 - -class GThreadlist : public gwinpick { - -private: - - gwindow window; - GMsg msg; - ThreadEntry t; - - std::vector list; - std::vector tree; - - dword m_OldMsgno; - uint m_OldTags; - std::string m_OldEchoId; - - void BuildThreadIndex(dword msgno); - void recursive_build(uint32_t msgn, uint32_t rn, uint32_t level, uint32_t index); - void GenTree(int idx); - void update_title(); - bool NextThread(bool next); - -public: - - void open(); // Called after window is opened - void close(); // Called after window is closed - void print_line(uint idx, uint pos, bool isbar); - void do_delayed(); - bool handle_key(); // Handles keypress - - void Run(); - bool GoNextUnread(bool reader); - - GThreadlist() { memset(&msg, 0, sizeof(GMsg)); replylinkfloat = CFG->replylinkfloat; }; - ~GThreadlist() { ResetMsg(&msg); }; -}; - +//#define MAX_LEVEL 20 // ------------------------------------------------------------------ diff --git a/golded3/geprot.h b/golded3/geprot.h index 62eef32..b40c67e 100644 --- a/golded3/geprot.h +++ b/golded3/geprot.h @@ -214,6 +214,44 @@ int ChangeXlatImport(); void MsgThreadlist(); +// ------------------------------------------------------------------ + +class GThreadlist : public gwinpick { + +private: + + gwindow window; + GMsg msg; + ThreadEntry t; + + std::vector list; + std::vector tree; + + dword m_OldMsgno; + uint m_OldTags; + std::string m_OldEchoId; + + void BuildThreadIndex(dword msgno); + void recursive_build(uint32_t msgn, uint32_t rn, uint32_t level, uint32_t index); + void GenTree(int idx); + void update_title(); + bool NextThread(bool next); + +public: + + void open(); // Called after window is opened + void close(); // Called after window is closed + void print_line(uint idx, uint pos, bool isbar); + void do_delayed(); + bool handle_key(); // Handles keypress + + void Run(); + bool GoNextUnread(bool reader); + + GThreadlist() { memset(&msg, 0, sizeof(GMsg)); replylinkfloat = CFG->replylinkfloat; }; + ~GThreadlist() { ResetMsg(&msg); }; +}; + // ------------------------------------------------------------------ // GEMRKS prototypes