/* * Copyright 2007-2009, Haiku, Inc. * Distributed under the terms of the MIT license. * * Author: * Ɓukasz 'Sil2100' Zemczak */ #ifndef PACKAGE_VIEW_H #define PACKAGE_VIEW_H #include "PackageInfo.h" #include "PackageStatus.h" #include #include #include #include #include class BPopUpMenu; class BTextView; enum { P_MSG_GROUP_CHANGED = 'gpch', P_MSG_PATH_CHANGED, P_MSG_OPEN_PANEL, P_MSG_INSTALL }; class PackageView : public BView { public: PackageView(BRect frame, const entry_ref *ref); ~PackageView(); void AttachedToWindow(); void MessageReceived(BMessage *msg); status_t Install(); private: void _InitView(); void _InitProfiles(); int32 _ItemExists(PackageItem &item, BPath &path); status_t _GroupChanged(int32 index); BPopUpMenu *fInstallTypes; BTextView *fInstallDesc; BPopUpMenu *fDestination; BMenuField *fDestField; BButton *fInstall; BFilePanel *fOpenPanel; BPath fCurrentPath; uint32 fCurrentType; int32 fItemExistsPolicy; PackageInfo fInfo; PackageStatus *fStatusWindow; }; #endif // PACKAGE_VIEW_H