Chat-O-Matic/application/preferences/PreferencesAccounts.h
Jaidyn Ann 33ad4d8acf More scalable ToolButton
Replaces libinterface's ToolButton, a custom button that can display
a pop-up menu on click (along with a custom image). It didn't scale well
with different themes and font-sizes compared to BButtons― which
ToolButton is supposed to look like to begin with.

A BButton-derived class is used instead, so these buttons look more
in-place among other buttons.
2021-07-23 23:43:42 -05:00

36 lines
714 B
C++

/*
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _PREFERENCES_ACCOUNTS_H
#define _PREFERENCES_ACCOUNTS_H
#include <View.h>
class BButton;
class BListView;
class BPopUpMenu;
class ProtocolSettings;
class PreferencesAccounts : public BView {
public:
PreferencesAccounts();
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* msg);
private:
BListView* fListView;
BPopUpMenu* fProtosMenu;
BButton* fDelButton;
BButton* fEditButton;
BButton* fToggleButton;
void _LoadListView(ProtocolSettings* settings);
bool _AccountEnabled(const char* account);
};
#endif // _PREFERENCES_ACCOUNTS_H