2021-07-28 10:13:31 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "AccountMenuItem.h"
|
|
|
|
|
|
|
|
#include "AccountsMenu.h"
|
|
|
|
|
|
|
|
|
2021-08-03 10:29:19 -05:00
|
|
|
AccountMenuItem::AccountMenuItem(const char* label, BMessage* msg,
|
|
|
|
BBitmap* icon)
|
2021-07-28 10:13:31 -05:00
|
|
|
:
|
2021-08-03 10:29:19 -05:00
|
|
|
BitmapMenuItem(label, msg, icon, 0, 0, false)
|
2021-07-28 10:13:31 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
AccountMenuItem::SetMarked(bool mark)
|
|
|
|
{
|
|
|
|
BMenuItem::SetMarked(mark);
|
|
|
|
if (mark == true)
|
|
|
|
((AccountsMenu*)Menu())->SetDefaultSelection(this);
|
|
|
|
}
|