handles history
This commit is contained in:
parent
dfb077be70
commit
85be8d6ef4
7 changed files with 452 additions and 212 deletions
12
MainWindow.h
12
MainWindow.h
|
@ -12,6 +12,8 @@
|
|||
#include <Window.h>
|
||||
#include <String.h>
|
||||
#include <MessageRunner.h>
|
||||
#include <PopUpMenu.h>
|
||||
#include <MenuField.h>
|
||||
|
||||
|
||||
#include "Conversation.h"
|
||||
|
@ -21,6 +23,7 @@ static const uint32 kCheckKey = 'chkk';
|
|||
static const uint32 kMsgNewFile = 'fnew';
|
||||
static const uint32 kMsgOpenFile = 'fopn';
|
||||
static const uint32 kMsgSaveFile = 'fsav';
|
||||
static const uint32 kModelSelected = 'msel';
|
||||
|
||||
static const uint32 kPulse = 'plse';
|
||||
|
||||
|
@ -42,18 +45,25 @@ public:
|
|||
|
||||
void checkValidKey();
|
||||
|
||||
void updateHistoryInfo();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
void ShowMissingKeyAlertAndQuit();
|
||||
void SelectModelByName(const char* targetLabel);
|
||||
|
||||
bool waitMode = false;
|
||||
BMenuBar *_BuildMenu();
|
||||
BTextView * _answerView;
|
||||
BTextView * _infoConversation;
|
||||
BTextView * _infoView;
|
||||
BTextView* _inputField;
|
||||
BStatusBar* _progress;
|
||||
|
||||
BMenuField* _modelField;
|
||||
BPopUpMenu* _modelMenu;
|
||||
BButton *_sendButton;
|
||||
|
||||
// BMenuItem *fSaveMenuItem;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue