70c6001189
ALT-↑ and ALT-↓ change the active conversation, based on its position in the main window's ConversationListView. If a conversation is registered by the main window, and no other conversation is selected, it is automatically selected.
29 lines
542 B
C++
29 lines
542 B
C++
/*
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef CONVERSATIONLIST_H
|
|
#define CONVERSATIONLIST_H
|
|
|
|
#include <OutlineListView.h>
|
|
|
|
class BPopUpMenu;
|
|
|
|
|
|
class ConversationListView : public BListView {
|
|
public:
|
|
ConversationListView(const char* name);
|
|
|
|
void MessageReceived(BMessage* msg);
|
|
void SelectionChanged();
|
|
void MouseDown(BPoint where);
|
|
|
|
private:
|
|
BPopUpMenu* _ConversationPopUp();
|
|
BPopUpMenu* _BlankPopUp();
|
|
};
|
|
|
|
|
|
#endif // CONVERSATIONLIST_H
|
|
|