handles missing api key
This commit is contained in:
parent
2489e46d23
commit
708eb51755
7 changed files with 85 additions and 13 deletions
20
MainWindow.h
20
MainWindow.h
|
@ -11,8 +11,23 @@
|
|||
#include <StatusBar.h>
|
||||
#include <Window.h>
|
||||
#include <String.h>
|
||||
#include <MessageRunner.h>
|
||||
|
||||
|
||||
#include "Conversation.h"
|
||||
|
||||
|
||||
static const uint32 kCheckKey = 'chkk';
|
||||
static const uint32 kMsgNewFile = 'fnew';
|
||||
static const uint32 kMsgOpenFile = 'fopn';
|
||||
static const uint32 kMsgSaveFile = 'fsav';
|
||||
|
||||
static const uint32 kPulse = 'plse';
|
||||
|
||||
static const uint32 kSendPrompt = 'kspt';
|
||||
static const uint32 kQuestionChanged = 'kqch';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -25,8 +40,13 @@ public:
|
|||
|
||||
Conversation* _conversation = new Conversation(this);
|
||||
|
||||
void checkValidKey();
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
void ShowMissingKeyAlertAndQuit();
|
||||
|
||||
BMenuBar *_BuildMenu();
|
||||
BTextView * _answerView;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue