dce82c2ba2
Instead of passing around pointers to the Server, Server::Get() returns the server's pointer (simplifying some things a good bit). As a result, headers have been cleaned up, and some redundant KeyMaps have been placed in Maps.h.
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
/*
|
|
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
|
|
* Copyright 2021, Jaidyn Levesque. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _TEMPLATE_WINDOW_H
|
|
#define _TEMPLATE_WINDOW_H
|
|
|
|
#include <String.h>
|
|
#include <Window.h>
|
|
|
|
#include "ProtocolTemplate.h"
|
|
|
|
class BAlert;
|
|
class BMenu;
|
|
class BMenuField;
|
|
class BTextControl;
|
|
class ProtocolSettings;
|
|
class TemplateView;
|
|
|
|
|
|
class TemplateWindow : public BWindow {
|
|
public:
|
|
/*! Get template from selected account's protocol
|
|
* via ChatProtocol::SettingsTemplate() */
|
|
TemplateWindow(const char* title,
|
|
const char* templateType, BMessage* msg,
|
|
bigtime_t instance = -1);
|
|
|
|
/*! Use only the given template. */
|
|
TemplateWindow(const char* title,
|
|
ProtocolTemplate* temp, BMessage* msg,
|
|
bigtime_t instance = -1);
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
void SetTarget(BHandler* target);
|
|
|
|
private:
|
|
void _InitInterface(bigtime_t instance);
|
|
void _LoadTemplate();
|
|
|
|
int64 fSelectedAcc;
|
|
BMenuField* fMenuField;
|
|
|
|
ProtocolTemplate* fTemplate;
|
|
BString fTemplateType;
|
|
TemplateView* fTemplateView;
|
|
|
|
BButton* fOkButton;
|
|
|
|
BMessage* fMessage;
|
|
BHandler* fTarget;
|
|
};
|
|
|
|
#endif // _TEMPLATE_WINDOW_H
|