⛏️ index : haiku.git

/*
 * Copyright 2002-2015, Haiku, Inc.
 * Distributed under the terms of the MIT license.
 *
 * Authors:
 *		Oliver Siebenmarck
 *		Andrew McCall, mccall@digitalparadise.co.uk
 *		Michael Wilber
 */
#ifndef DATA_TRANSLATIONS_WINDOW_H
#define DATA_TRANSLATIONS_WINDOW_H


#include <Box.h>
#include <Button.h>
#include <IconView.h>
#include <Path.h>
#include <View.h>
#include <Window.h>

#include "TranslatorListView.h"


class BTranslatorReleaseDelegate;
class BTextView;


class DataTranslationsWindow : public BWindow {
public:
							DataTranslationsWindow();
							~DataTranslationsWindow();

	virtual	bool			QuitRequested();
	virtual	void			MessageReceived(BMessage* message);

private:
			void			_ShowInfoView();
			status_t		_GetTranslatorInfo(int32 id, const char*& name,
								const char*& info, int32& version, BPath& path);
			void			_ShowInfoAlert(int32 id);
			status_t		_ShowConfigView(int32 id);
			status_t		_PopulateListView();
			void			_SetupViews();

			TranslatorListView*	fTranslatorListView;
			BTranslatorReleaseDelegate*		fRelease;

			BBox*			fRightBox;
			BView*			fConfigView;
			IconView*		fIconView;
			BButton*		fButton;
			BTextView*		fInfoText;
};


#endif	// DATA_TRANSLATIONS_WINDOW_H