Removal of non-Haiku ifdefs. Rephrasing 'BeOS attributes' as 'file attributes'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34974 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -56,11 +56,9 @@ AutoTextControlFilter::Filter(BMessage *msg, BHandler **target)
|
|||||||
if (!text || text != fBox)
|
if (!text || text != fBox)
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
|
|
||||||
// handle instances where numlock is off and the user tries to punch in numbers.
|
// handle instances where numlock is off and the user tries to punch in
|
||||||
// Instead of simply blocking the resulting keypresses, transform them into legit ones
|
// numbers. Instead of simply blocking the resulting keypresses,
|
||||||
// and turn NumLock on for the user. This doesn't work on R5, so only do it on other
|
// transform them into legit ones and turn NumLock on for the user.
|
||||||
// versions of BeOS
|
|
||||||
#ifndef HAIKU_TARGET_PLATFORM_R5
|
|
||||||
|
|
||||||
int32 scancode;
|
int32 scancode;
|
||||||
if (msg->FindInt32("key",&scancode) != B_OK)
|
if (msg->FindInt32("key",&scancode) != B_OK)
|
||||||
@@ -68,8 +66,6 @@ AutoTextControlFilter::Filter(BMessage *msg, BHandler **target)
|
|||||||
|
|
||||||
HandleNoNumLock(scancode,rawchar,msg);
|
HandleNoNumLock(scancode,rawchar,msg);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fCurrentMessage = msg;
|
fCurrentMessage = msg;
|
||||||
filter_result result = KeyFilter(rawchar,mod);
|
filter_result result = KeyFilter(rawchar,mod);
|
||||||
fCurrentMessage = NULL;
|
fCurrentMessage = NULL;
|
||||||
|
|||||||
@@ -362,10 +362,6 @@ THeaderView::THeaderView(BRect rect, BRect windowRect, bool incoming,
|
|||||||
AddChild(field, encodingField);
|
AddChild(field, encodingField);
|
||||||
field->SetDivider(x - 12 - SEPARATOR_MARGIN + kMenuFieldDividerOffset);
|
field->SetDivider(x - 12 - SEPARATOR_MARGIN + kMenuFieldDividerOffset);
|
||||||
field->SetAlignment(B_ALIGN_RIGHT);
|
field->SetAlignment(B_ALIGN_RIGHT);
|
||||||
#ifndef __HAIKU__
|
|
||||||
field->MenuBar()->SetResizingMode(B_FOLLOW_LEFT_RIGHT);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
y += controlHeight;
|
y += controlHeight;
|
||||||
} else {
|
} else {
|
||||||
// To: account
|
// To: account
|
||||||
|
|||||||
@@ -70,11 +70,6 @@ All rights reserved.
|
|||||||
|
|
||||||
using namespace BPrivate ;
|
using namespace BPrivate ;
|
||||||
|
|
||||||
#ifdef HAIKU_TARGET_PLATFORM_BEOS
|
|
||||||
#include <netdb.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "Words.h"
|
#include "Words.h"
|
||||||
|
|
||||||
// global variables
|
// global variables
|
||||||
|
|||||||
@@ -1547,11 +1547,10 @@ TMailWindow::MessageReceived(BMessage *msg)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef __HAIKU__
|
|
||||||
case B_PATH_MONITOR:
|
case B_PATH_MONITOR:
|
||||||
_RebuildQueryMenu();
|
_RebuildQueryMenu();
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
BWindow::MessageReceived(msg);
|
BWindow::MessageReceived(msg);
|
||||||
@@ -1668,9 +1667,7 @@ TMailWindow::QuitRequested()
|
|||||||
SetCurrentMessageRead();
|
SetCurrentMessageRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
|
||||||
BPrivate::BPathMonitor::StopWatching(BMessenger(this, this));
|
BPrivate::BPathMonitor::StopWatching(BMessenger(this, this));
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2951,10 +2948,8 @@ TMailWindow::_RebuildQueryMenu(bool firstTime)
|
|||||||
BDirectory queryDir(queryPath.Path());
|
BDirectory queryDir(queryPath.Path());
|
||||||
|
|
||||||
if (firstTime) {
|
if (firstTime) {
|
||||||
#ifdef __HAIKU__
|
|
||||||
BPrivate::BPathMonitor::StartWatching(queryPath.Path(),
|
BPrivate::BPathMonitor::StartWatching(queryPath.Path(),
|
||||||
B_WATCH_RECURSIVELY, BMessenger(this, this));
|
B_WATCH_RECURSIVELY, BMessenger(this, this));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we find the named query, add it to the menu.
|
// If we find the named query, add it to the menu.
|
||||||
|
|||||||
+4
-218
@@ -43,10 +43,8 @@ All rights reserved.
|
|||||||
#include <E-mail.h>
|
#include <E-mail.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
|
||||||
# include <GridView.h>
|
# include <GridView.h>
|
||||||
# include <GroupLayoutBuilder.h>
|
# include <GroupLayoutBuilder.h>
|
||||||
#endif // __HAIKU__
|
|
||||||
|
|
||||||
#include <MailSettings.h>
|
#include <MailSettings.h>
|
||||||
#include <mail_encoding.h>
|
#include <mail_encoding.h>
|
||||||
@@ -88,14 +86,6 @@ extern BPoint prefs_window;
|
|||||||
//#pragma mark -
|
//#pragma mark -
|
||||||
|
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
|
||||||
# define USE_LAYOUT_MANAGEMENT 1
|
|
||||||
#else
|
|
||||||
# define USE_LAYOUT_MANAGEMENT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if USE_LAYOUT_MANAGEMENT
|
|
||||||
static inline void
|
static inline void
|
||||||
add_menu_to_layout(BMenuField* menu, BGridLayout* layout, int32& row)
|
add_menu_to_layout(BMenuField* menu, BGridLayout* layout, int32& row)
|
||||||
{
|
{
|
||||||
@@ -104,7 +94,6 @@ add_menu_to_layout(BMenuField* menu, BGridLayout* layout, int32& row)
|
|||||||
layout->AddItem(menu->CreateMenuBarLayoutItem(), 1, row, 2);
|
layout->AddItem(menu->CreateMenuBarLayoutItem(), 1, row, 2);
|
||||||
row++;
|
row++;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
||||||
@@ -112,14 +101,9 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
|||||||
char** preamble, char** sig, uint32* encoding, bool* warnUnencodable,
|
char** preamble, char** sig, uint32* encoding, bool* warnUnencodable,
|
||||||
bool* spellCheckStartOn, bool* autoMarkRead, uint8* buttonBar)
|
bool* spellCheckStartOn, bool* autoMarkRead, uint8* buttonBar)
|
||||||
:
|
:
|
||||||
#if USE_LAYOUT_MANAGEMENT
|
|
||||||
BWindow(rect, TR("Mail preferences"),
|
BWindow(rect, TR("Mail preferences"),
|
||||||
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
|
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
|
||||||
| B_AUTO_UPDATE_SIZE_LIMITS),
|
| B_AUTO_UPDATE_SIZE_LIMITS),
|
||||||
#else
|
|
||||||
BWindow(rect, TR("Mail preferences"),
|
|
||||||
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE),
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fNewWrap(wrap),
|
fNewWrap(wrap),
|
||||||
fWrap(*fNewWrap),
|
fWrap(*fNewWrap),
|
||||||
@@ -163,7 +147,6 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
|||||||
|
|
||||||
BMenuField* menu;
|
BMenuField* menu;
|
||||||
|
|
||||||
#if USE_LAYOUT_MANAGEMENT
|
|
||||||
// group boxes
|
// group boxes
|
||||||
|
|
||||||
const float kSpacing = 8;
|
const float kSpacing = 8;
|
||||||
@@ -289,203 +272,6 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
|||||||
);
|
);
|
||||||
|
|
||||||
Show();
|
Show();
|
||||||
|
|
||||||
#else // #if !USE_LAYOUT_MANAGEMENT
|
|
||||||
|
|
||||||
BRect r = Bounds();
|
|
||||||
BView *view = new BView(r, NULL, B_FOLLOW_ALL, B_FRAME_EVENTS);
|
|
||||||
view->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
|
||||||
AddChild(view);
|
|
||||||
|
|
||||||
// determine font height
|
|
||||||
font_height fontHeight;
|
|
||||||
view->GetFontHeight(&fontHeight);
|
|
||||||
int32 height = (int32)(fontHeight.ascent + fontHeight.descent
|
|
||||||
+ fontHeight.leading) + 6;
|
|
||||||
int32 labelWidth = (int32)view->StringWidth(TR("Initial spell check mode:"))
|
|
||||||
+ SEPARATOR_MARGIN;
|
|
||||||
|
|
||||||
// group boxes
|
|
||||||
|
|
||||||
r.Set(8, 4, Bounds().right - 8, 4 + 6 * (height + ITEM_SPACE));
|
|
||||||
BBox* interfaceBox = new BBox(r , NULL,B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
|
|
||||||
interfaceBox->SetLabel(TR("User interface"));
|
|
||||||
view->AddChild(interfaceBox);
|
|
||||||
|
|
||||||
r.top = r.bottom + 8;
|
|
||||||
r.bottom = r.top + 9 * (height + ITEM_SPACE);
|
|
||||||
BBox* mailBox = new BBox(r,NULL,B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
|
|
||||||
mailBox->SetLabel(TR("Mailing"));
|
|
||||||
view->AddChild(mailBox);
|
|
||||||
|
|
||||||
// revert, ok & cancel
|
|
||||||
|
|
||||||
r.top = r.bottom + 10;
|
|
||||||
r.bottom = r.top + height;
|
|
||||||
r.left = OK_BUTTON_X1;
|
|
||||||
r.right = OK_BUTTON_X2;
|
|
||||||
BButton* button = new BButton(r, "ok", TR("OK"), new BMessage(P_OK));
|
|
||||||
button->MakeDefault(true);
|
|
||||||
view->AddChild(button);
|
|
||||||
|
|
||||||
r.OffsetBy(-(OK_BUTTON_X2 - OK_BUTTON_X1 + 10), 0);
|
|
||||||
button = new BButton(r, "cancel", TR("Cancel"),
|
|
||||||
new BMessage(P_CANCEL));
|
|
||||||
view->AddChild(button);
|
|
||||||
|
|
||||||
r.left = REVERT_BUTTON_X1; r.right = REVERT_BUTTON_X2;
|
|
||||||
fRevert = new BButton(r, "revert", TR("Revert"),
|
|
||||||
new BMessage(P_REVERT));
|
|
||||||
fRevert->SetEnabled(false);
|
|
||||||
view->AddChild(fRevert);
|
|
||||||
|
|
||||||
// User Interface
|
|
||||||
|
|
||||||
r = interfaceBox->Bounds();
|
|
||||||
r.left += 8;
|
|
||||||
r.right -= 8;
|
|
||||||
r.top = height;
|
|
||||||
r.bottom = r.top + height - 3;
|
|
||||||
fButtonBarMenu = _BuildButtonBarMenu(*buttonBar);
|
|
||||||
menu = new BMenuField(r, "bar", TR("Button bar:"), fButtonBarMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fFontMenu = _BuildFontMenu(font);
|
|
||||||
menu = new BMenuField(r, "font", TR("Font:"), fFontMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fSizeMenu = _BuildSizeMenu(font);
|
|
||||||
menu = new BMenuField(r, "size", TR("Size:"), fSizeMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fColoredQuotesMenu = _BuildColoredQuotesMenu(fColoredQuotes);
|
|
||||||
menu = new BMenuField(r, "cquotes", TR("Colored quotes:"),
|
|
||||||
fColoredQuotesMenu, B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fSpellCheckStartOnMenu = _BuildSpellCheckStartOnMenu(fSpellCheckStartOn);
|
|
||||||
menu = new BMenuField(r, "spellCheckStartOn",
|
|
||||||
TR("Initial spell check mode:"), fSpellCheckStartOnMenu, B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fAutoMarkReadMenu = _BuildAutoMarkReadMenu(fAutoMarkRead);
|
|
||||||
menu = new BMenuField("autoMarkRead",
|
|
||||||
TR("Automatically mark mail as read:"), fAutoMarkReadMenu, NULL);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
interfaceBox->AddChild(menu);
|
|
||||||
|
|
||||||
// Mail Accounts
|
|
||||||
|
|
||||||
r = mailBox->Bounds();
|
|
||||||
r.left += 8;
|
|
||||||
r.right -= 8;
|
|
||||||
r.top = height;
|
|
||||||
r.bottom = r.top + height - 3;
|
|
||||||
fAccountMenu = _BuildAccountMenu(fAccount);
|
|
||||||
menu = new BMenuField(r, "account", TR("Default account:"), fAccountMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fReplyToMenu = _BuildReplyToMenu(fReplyTo);
|
|
||||||
menu = new BMenuField(r, "replyTo", TR("Reply account:"), fReplyToMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
// Mail Contents
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
r.right -= 25;
|
|
||||||
fReplyPreamble = new BTextControl(r, "replytext", TR("Reply preamble:"),
|
|
||||||
*preamble, new BMessage(P_REPLY_PREAMBLE), B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE);
|
|
||||||
fReplyPreamble->SetDivider(labelWidth);
|
|
||||||
fReplyPreamble->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
|
||||||
mailBox->AddChild(fReplyPreamble);
|
|
||||||
|
|
||||||
BRect popRect = r;
|
|
||||||
popRect.left = r.right + 6;
|
|
||||||
r.right += 25;
|
|
||||||
popRect.right = r.right;
|
|
||||||
fReplyPreambleMenu = _BuildReplyPreambleMenu();
|
|
||||||
menu = new BMenuField(popRect, "replyPreamble", B_EMPTY_STRING,
|
|
||||||
fReplyPreambleMenu, B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(0);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fSignatureMenu = _BuildSignatureMenu(*sig);
|
|
||||||
menu = new BMenuField(r, "sig", TR("Auto signature:"), fSignatureMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fEncodingMenu = _BuildEncodingMenu(fEncoding);
|
|
||||||
menu = new BMenuField(r, "enc", TR("Encoding:"), fEncodingMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fWarnUnencodableMenu = _BuildWarnUnencodableMenu(fWarnUnencodable);
|
|
||||||
menu = new BMenuField(r, "warnUnencodable", TR("Warn unencodable:"),
|
|
||||||
fWarnUnencodableMenu, B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fWrapMenu = _BuildWrapMenu(*wrap);
|
|
||||||
menu = new BMenuField(r, "wrap", TR("Text wrapping:"), fWrapMenu,
|
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
r.OffsetBy(0, height + ITEM_SPACE);
|
|
||||||
fAttachAttributesMenu = _BuildAttachAttributesMenu(*attachAttributes);
|
|
||||||
menu = new BMenuField(r, "attachAttributes", TR("Attach attributes:"),
|
|
||||||
fAttachAttributesMenu, B_FOLLOW_ALL,
|
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_NAVIGABLE_JUMP);
|
|
||||||
menu->SetDivider(labelWidth);
|
|
||||||
menu->SetAlignment(B_ALIGN_RIGHT);
|
|
||||||
mailBox->AddChild(menu);
|
|
||||||
|
|
||||||
ResizeTo(Frame().Width(), fRevert->Frame().bottom + 8);
|
|
||||||
|
|
||||||
Show();
|
|
||||||
|
|
||||||
#endif // #if !USE_LAYOUT_MANAGEMENT
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -593,8 +379,8 @@ TPrefsWindow::MessageReceived(BMessage* msg)
|
|||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
|
|
||||||
strcpy(label, fAttachAttributes
|
strcpy(label, fAttachAttributes
|
||||||
? TR("Include BeOS attributes in attachments")
|
? TR("Include file attributes in attachments")
|
||||||
: TR("No BeOS attributes, just plain data"));
|
: TR("No file attributes, just plain data"));
|
||||||
if ((item = fAttachAttributesMenu->FindItem(label)) != NULL)
|
if ((item = fAttachAttributesMenu->FindItem(label)) != NULL)
|
||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
|
|
||||||
@@ -1022,14 +808,14 @@ TPrefsWindow::_BuildAttachAttributesMenu(bool attachAttributes)
|
|||||||
msg = new BMessage(P_ATTACH_ATTRIBUTES);
|
msg = new BMessage(P_ATTACH_ATTRIBUTES);
|
||||||
msg->AddBool("attachAttributes", true);
|
msg->AddBool("attachAttributes", true);
|
||||||
menu->AddItem(item = new BMenuItem(
|
menu->AddItem(item = new BMenuItem(
|
||||||
TR("Include BeOS attributes in attachments"), msg));
|
TR("Include file attributes in attachments"), msg));
|
||||||
if (attachAttributes)
|
if (attachAttributes)
|
||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
|
|
||||||
msg = new BMessage(P_ATTACH_ATTRIBUTES);
|
msg = new BMessage(P_ATTACH_ATTRIBUTES);
|
||||||
msg->AddInt32("attachAttributes", false);
|
msg->AddInt32("attachAttributes", false);
|
||||||
menu->AddItem(item = new BMenuItem(
|
menu->AddItem(item = new BMenuItem(
|
||||||
TR("No BeOS attributes, just plain data"), msg));
|
TR("No file attributes, just plain data"), msg));
|
||||||
if (!attachAttributes)
|
if (!attachAttributes)
|
||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user