diff --git a/DumBer b/DumBer index aecf04a..8caff78 100755 Binary files a/DumBer and b/DumBer differ diff --git a/MainWindow.cpp b/MainWindow.cpp index 0029971..4ef4615 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -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"); diff --git a/MainWindow.h b/MainWindow.h index e997826..e5de61b 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -58,7 +58,8 @@ private: BMenuBar *_BuildMenu(); BTextView * _answerView; BTextView * _infoView; - BTextControl* _inputField; + BTextView* _inputField; + //BTextControl* _inputField; BStatusBar* _progress; BMenuItem *fSaveMenuItem;