2 * Copyright 2014, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef RATE_PACKAGE_WINDOW_H
6 #define RATE_PACKAGE_WINDOW_H
11 #include "PackageInfo.h"
12 #include "TextDocument.h"
13 #include "TextEditor.h"
20 class TextDocumentView
;
23 class RatePackageWindow
: public BWindow
{
25 RatePackageWindow(BWindow
* parent
, BRect frame
,
27 virtual ~RatePackageWindow();
29 virtual void MessageReceived(BMessage
* message
);
31 void SetPackage(const PackageInfoRef
& package
);
36 void _SetWorkerThread(thread_id thread
);
38 static int32
_QueryRatingThreadEntry(void* data
);
39 void _QueryRatingThread();
41 static int32
_SendRatingThreadEntry(void* data
);
42 void _SendRatingThread();
46 TextDocumentRef fRatingText
;
47 TextEditorRef fTextEditor
;
50 StabilityRatingList fStabilityCodes
;
51 BString fCommentLanguage
;
54 PackageInfoRef fPackage
;
56 SetRatingView
* fSetRatingView
;
57 BMenuField
* fStabilityField
;
58 BMenuField
* fCommentLanguageField
;
59 TextDocumentView
* fTextView
;
60 BCheckBox
* fRatingActiveCheckBox
;
61 BButton
* fCancelButton
;
64 thread_id fWorkerThread
;
68 #endif // RATE_PACKAGE_WINDOW_H