some refinements
This commit is contained in:
parent
efbe679a6b
commit
2dd76e787e
3 changed files with 9 additions and 13 deletions
BIN
DumBer
BIN
DumBer
Binary file not shown.
|
@ -54,8 +54,12 @@ MainWindow::MainWindow()
|
|||
|
||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 0).Add(menuBar).AddGlue().End();
|
||||
|
||||
_inputField = new BTextControl("", "What is the matrix ?",
|
||||
new BMessage(kQuestionChanged));
|
||||
_inputField = new BTextView("input_view", B_WILL_DRAW | B_FOLLOW_ALL);
|
||||
_inputField->SetText("What is the matrix ?");
|
||||
_inputField->MakeEditable(true);
|
||||
_inputField->MakeSelectable(true);
|
||||
_inputField->SetWordWrap(true);
|
||||
|
||||
|
||||
_progress = new BStatusBar("prog");
|
||||
_progress->SetMaxValue(100);
|
||||
|
@ -80,9 +84,8 @@ MainWindow::MainWindow()
|
|||
_infoView->SetExplicitMinSize(BSize(B_SIZE_UNSET, lineHeight));
|
||||
_infoView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, lineHeight));
|
||||
|
||||
float askH = lineHeight * 2;
|
||||
float askH = lineHeight * 5;
|
||||
_inputField->SetExplicitMinSize(BSize(B_SIZE_UNSET, askH));
|
||||
_inputField->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, askH * 6));
|
||||
|
||||
_apiKey = ReadOpenAIKey();
|
||||
printf("key is: %s", _apiKey.String());
|
||||
|
@ -143,14 +146,6 @@ void MainWindow::MessageReceived(BMessage *message) {
|
|||
// printf("Save\n");
|
||||
// } break;
|
||||
|
||||
case kQuestionChanged: {
|
||||
printf("Question Changed\n");
|
||||
_progress->SetTo(2);
|
||||
|
||||
// sendQuery();
|
||||
|
||||
} break;
|
||||
|
||||
case kSendPrompt: {
|
||||
|
||||
printf("Button Pressed\n");
|
||||
|
|
|
@ -58,7 +58,8 @@ private:
|
|||
BMenuBar *_BuildMenu();
|
||||
BTextView * _answerView;
|
||||
BTextView * _infoView;
|
||||
BTextControl* _inputField;
|
||||
BTextView* _inputField;
|
||||
//BTextControl* _inputField;
|
||||
BStatusBar* _progress;
|
||||
|
||||
BMenuItem *fSaveMenuItem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue