2010-05-19 13:05:30 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2010, Oliver Ruiz Dorantes. All rights reserved.
|
2012-03-24 09:56:00 -05:00
|
|
|
* Copyright 2012, Casalinuovo Dario. All rights reserved.
|
2021-07-28 19:10:09 -05:00
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
2010-05-19 13:05:30 -05:00
|
|
|
*/
|
2021-06-20 12:44:20 -05:00
|
|
|
#ifndef _APP_PREFERENCES_H
|
|
|
|
#define _APP_PREFERENCES_H
|
2010-05-19 13:05:30 -05:00
|
|
|
|
2021-07-28 19:25:55 -05:00
|
|
|
#include <Rect.h>
|
2021-07-28 19:10:09 -05:00
|
|
|
#include <SupportDefs.h>
|
2010-05-19 13:05:30 -05:00
|
|
|
|
2012-03-24 09:56:00 -05:00
|
|
|
|
2021-07-28 19:10:09 -05:00
|
|
|
class AppPreferences {
|
2012-03-24 09:56:00 -05:00
|
|
|
public:
|
2021-07-28 19:10:09 -05:00
|
|
|
static AppPreferences* Get();
|
|
|
|
|
|
|
|
void Load();
|
|
|
|
void Save();
|
|
|
|
|
|
|
|
bool MoveToCurrentWorkspace;
|
|
|
|
bool RaiseOnMessageReceived;
|
|
|
|
bool RaiseUserIsTyping;
|
|
|
|
bool MarkUnreadWindow;
|
|
|
|
bool NotifyProtocolStatus;
|
|
|
|
bool NotifyContactStatus;
|
|
|
|
bool NotifyNewMessage;
|
|
|
|
|
|
|
|
bool HideDeskbar;
|
|
|
|
bool DisableReplicant;
|
|
|
|
bool DisableQuitConfirm;
|
|
|
|
|
|
|
|
bool IgnoreEmoticons;
|
2013-04-06 14:47:04 -05:00
|
|
|
|
2021-07-28 19:10:09 -05:00
|
|
|
bool HideOffline;
|
|
|
|
|
2021-07-30 16:14:21 -05:00
|
|
|
float MainWindowListWeight;
|
|
|
|
float MainWindowChatWeight;
|
|
|
|
|
2021-07-31 11:15:51 -05:00
|
|
|
float ChatViewHorizChatWeight;
|
|
|
|
float ChatViewHorizListWeight;
|
|
|
|
float ChatViewVertChatWeight;
|
|
|
|
float ChatViewVertSendWeight;
|
|
|
|
|
2021-07-28 19:25:55 -05:00
|
|
|
BRect MainWindowRect;
|
|
|
|
|
2012-03-24 09:56:00 -05:00
|
|
|
private:
|
2021-07-28 19:10:09 -05:00
|
|
|
const char* _PreferencesPath();
|
2012-03-24 09:56:00 -05:00
|
|
|
|
2021-07-28 19:10:09 -05:00
|
|
|
static AppPreferences* fInstance;
|
2012-03-24 09:56:00 -05:00
|
|
|
};
|
2010-05-19 13:05:30 -05:00
|
|
|
|
2021-07-28 19:10:09 -05:00
|
|
|
#endif // _APP_PREFERENCES_H
|