haiku/3rdparty/mmu_man/themes/ThemeAddonItem.h
François Revol 48d5931610 Move Themes to vendor folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-11 20:42:27 +00:00

39 lines
823 B
C++

#ifndef _ADDON_ITEM_H_
#define _ADDON_ITEM_H_
#include <ListItem.h>
#include <String.h>
#include "ViewItem.h"
class ThemeInterfaceView;
class BCheckBox;
class BButton;
class ThemeAddonItem : public ViewItem
{
public:
ThemeAddonItem(BRect bounds, ThemeInterfaceView *iview, int32 id);
~ThemeAddonItem();
void DrawItem(BView *ownerview, BRect frame, bool complete = false);
void AttachedToWindow();
void MessageReceived(BMessage *message);
void Draw(BRect updateRect);
void RelocalizeStrings();
void RelayoutButtons();
int32 AddonId();
private:
int32 fId;
ThemeInterfaceView *fIView;
BString fAddonName;
BCheckBox *fApplyBox;
BCheckBox *fSaveBox;
BButton *fPrefsBtn;
};
#define CB_APPLY 'AiAp'
#define CB_SAVE 'AiSa'
#define BTN_PREFS 'AiPr'
#endif // _ADDON_ITEM_H_