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