Renamed a few files to better match their class names.
This commit is contained in:
@@ -5,11 +5,11 @@ UsePublicHeaders [ FDirName add-ons mail_daemon ] ;
|
||||
|
||||
SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ;
|
||||
|
||||
AddResources NewMailNotification : NewMailNotification.rdef ;
|
||||
AddResources NewMailNotification : NotifierFilter.rdef ;
|
||||
|
||||
Addon NewMailNotification :
|
||||
filter.cpp
|
||||
ConfigView.cpp
|
||||
NotifierFilter.cpp
|
||||
NotifierConfigView.cpp
|
||||
:
|
||||
be libmail.so localestub [ TargetLibsupc++ ]
|
||||
;
|
||||
@@ -17,6 +17,6 @@ Addon NewMailNotification :
|
||||
DoCatalogs NewMailNotification :
|
||||
x-vnd.Haiku-NewMailNotification
|
||||
:
|
||||
ConfigView.cpp
|
||||
filter.cpp
|
||||
NotifierFilter.cpp
|
||||
NotifierConfigView.cpp
|
||||
;
|
||||
|
||||
+9
-9
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "ConfigView.h"
|
||||
#include "NotifierConfigView.h"
|
||||
|
||||
#include <Catalog.h>
|
||||
#include <CheckBox.h>
|
||||
@@ -22,13 +22,13 @@
|
||||
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
#define B_TRANSLATION_CONTEXT "NotifierConfigView"
|
||||
|
||||
|
||||
const uint32 kMsgNotifyMethod = 'nomt';
|
||||
|
||||
|
||||
ConfigView::ConfigView()
|
||||
NotifierConfigView::NotifierConfigView()
|
||||
:
|
||||
BView("notifier_config", 0)
|
||||
{
|
||||
@@ -55,7 +55,7 @@ ConfigView::ConfigView()
|
||||
|
||||
|
||||
void
|
||||
ConfigView::AttachedToWindow()
|
||||
NotifierConfigView::AttachedToWindow()
|
||||
{
|
||||
if (BMenuField *field = dynamic_cast<BMenuField *>(FindView("notify")))
|
||||
field->Menu()->SetTargetForItems(this);
|
||||
@@ -63,7 +63,7 @@ ConfigView::AttachedToWindow()
|
||||
|
||||
|
||||
void
|
||||
ConfigView::SetTo(const BMessage *archive)
|
||||
NotifierConfigView::SetTo(const BMessage *archive)
|
||||
{
|
||||
int32 method = archive->FindInt32("notification_method");
|
||||
if (method < 0)
|
||||
@@ -82,7 +82,7 @@ ConfigView::SetTo(const BMessage *archive)
|
||||
|
||||
|
||||
void
|
||||
ConfigView::UpdateNotifyText()
|
||||
NotifierConfigView::UpdateNotifyText()
|
||||
{
|
||||
BMenuField *field;
|
||||
if ((field = dynamic_cast<BMenuField *>(FindView("notify"))) == NULL)
|
||||
@@ -105,7 +105,7 @@ ConfigView::UpdateNotifyText()
|
||||
|
||||
|
||||
void
|
||||
ConfigView::MessageReceived(BMessage *msg)
|
||||
NotifierConfigView::MessageReceived(BMessage *msg)
|
||||
{
|
||||
switch (msg->what) {
|
||||
case kMsgNotifyMethod:
|
||||
@@ -125,7 +125,7 @@ ConfigView::MessageReceived(BMessage *msg)
|
||||
|
||||
|
||||
status_t
|
||||
ConfigView::Archive(BMessage *into, bool /*deep*/) const
|
||||
NotifierConfigView::Archive(BMessage *into, bool /*deep*/) const
|
||||
{
|
||||
int32 method = 0;
|
||||
|
||||
@@ -151,7 +151,7 @@ ConfigView::Archive(BMessage *into, bool /*deep*/) const
|
||||
BView*
|
||||
instantiate_filter_config_panel(BMailAddOnSettings& settings)
|
||||
{
|
||||
ConfigView *view = new ConfigView();
|
||||
NotifierConfigView *view = new NotifierConfigView();
|
||||
view->SetTo(&settings);
|
||||
return view;
|
||||
}
|
||||
+5
-5
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef CONFIG_VIEW_H
|
||||
#define CONFIG_VIEW_H
|
||||
#ifndef NOTIFIER_CONFIG_VIEW_H
|
||||
#define NOTIFIER_CONFIG_VIEW_H
|
||||
|
||||
|
||||
#include <View.h>
|
||||
@@ -21,9 +21,9 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
class ConfigView : public BView {
|
||||
class NotifierConfigView : public BView {
|
||||
public:
|
||||
ConfigView();
|
||||
NotifierConfigView();
|
||||
|
||||
void SetTo(const BMessage *archive);
|
||||
|
||||
@@ -36,4 +36,4 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#endif // CONFIG_VIEW_H
|
||||
#endif // NOTIFIER_CONFIG_VIEW_H
|
||||
+2
-2
@@ -21,11 +21,11 @@
|
||||
|
||||
#include <MailFilter.h>
|
||||
|
||||
#include "ConfigView.h"
|
||||
#include "NotifierConfigView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "filter"
|
||||
#define B_TRANSLATION_CONTEXT "NotifierFilter"
|
||||
|
||||
|
||||
class NotifyFilter : public BMailFilter {
|
||||
@@ -9,7 +9,7 @@ AddResources Fortune : Fortune.rdef ;
|
||||
|
||||
Addon Fortune :
|
||||
ConfigView.cpp
|
||||
filter.cpp
|
||||
FortuneFilter.cpp
|
||||
:
|
||||
be libmail.so localestub [ TargetLibsupc++ ]
|
||||
;
|
||||
@@ -18,5 +18,5 @@ DoCatalogs Fortune :
|
||||
x-vnd.Haiku-Fortune
|
||||
:
|
||||
ConfigView.cpp
|
||||
filter.cpp
|
||||
FortuneFilter.cpp
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user