Stylefixes, no functional change.
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
|
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
|
|
||||||
ColorMenuItem::ColorMenuItem(const char *label, rgb_color color, BMessage *message)
|
ColorMenuItem::ColorMenuItem(const char *label, rgb_color color,
|
||||||
|
BMessage *message)
|
||||||
: BMenuItem(label, message, 0, 0),
|
: BMenuItem(label, message, 0, 0),
|
||||||
fItemColor(color)
|
fItemColor(color)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,8 +20,9 @@ class BTextControl;
|
|||||||
|
|
||||||
class FindWindow : public BWindow {
|
class FindWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
FindWindow(BRect frame, BHandler* handler, BString *searchString,
|
FindWindow(BRect frame, BHandler* handler,
|
||||||
bool caseState, bool wrapState, bool backState);
|
BString* searchString, bool caseState,
|
||||||
|
bool wrapState, bool backState);
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ StyledEditApp::StyledEditApp()
|
|||||||
name.Append(mime);
|
name.Append(mime);
|
||||||
name.Append(")");
|
name.Append(")");
|
||||||
}
|
}
|
||||||
BMenuItem* item =
|
BMenuItem* item
|
||||||
new BMenuItem(name.String(), new BMessage(OPEN_AS_ENCODING));
|
= new BMenuItem(name.String(), new BMessage(OPEN_AS_ENCODING));
|
||||||
item->SetTarget(this);
|
item->SetTarget(this);
|
||||||
fOpenPanelEncodingMenu->AddItem(item);
|
fOpenPanelEncodingMenu->AddItem(item);
|
||||||
if (charset.GetFontID() == fOpenAsEncoding)
|
if (charset.GetFontID() == fOpenAsEncoding)
|
||||||
|
|||||||
@@ -30,7 +30,8 @@
|
|||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|
||||||
StyledEditView::StyledEditView(BRect viewFrame, BRect textBounds, BHandler *handler)
|
StyledEditView::StyledEditView(BRect viewFrame, BRect textBounds,
|
||||||
|
BHandler* handler)
|
||||||
: BTextView(viewFrame, "textview", textBounds,
|
: BTextView(viewFrame, "textview", textBounds,
|
||||||
B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW)
|
B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -862,7 +862,8 @@ StyledEditWindow::Print(const char* documentName)
|
|||||||
int32 currentLine = 0;
|
int32 currentLine = 0;
|
||||||
while (currentLine < linesInDocument) {
|
while (currentLine < linesInDocument) {
|
||||||
float currentHeight = 0;
|
float currentHeight = 0;
|
||||||
while (currentHeight < printableRect.Height() && currentLine < linesInDocument) {
|
while (currentHeight < printableRect.Height() && currentLine
|
||||||
|
< linesInDocument) {
|
||||||
currentHeight += fTextView->LineHeight(currentLine);
|
currentHeight += fTextView->LineHeight(currentLine);
|
||||||
if (currentHeight < printableRect.Height())
|
if (currentHeight < printableRect.Height())
|
||||||
currentLine++;
|
currentLine++;
|
||||||
@@ -1027,8 +1028,8 @@ StyledEditWindow::_InitWindow(uint32 encoding)
|
|||||||
new BMessage(MENU_NEW), 'N'));
|
new BMessage(MENU_NEW), 'N'));
|
||||||
menuItem->SetTarget(be_app);
|
menuItem->SetTarget(be_app);
|
||||||
|
|
||||||
menu->AddItem(menuItem = new BMenuItem(fRecentMenu =
|
menu->AddItem(menuItem = new BMenuItem(fRecentMenu
|
||||||
new BMenu(B_TRANSLATE("Open" B_UTF8_ELLIPSIS)),
|
= new BMenu(B_TRANSLATE("Open" B_UTF8_ELLIPSIS)),
|
||||||
new BMessage(MENU_OPEN)));
|
new BMessage(MENU_OPEN)));
|
||||||
menuItem->SetShortcut('O', 0);
|
menuItem->SetShortcut('O', 0);
|
||||||
menuItem->SetTarget(be_app);
|
menuItem->SetTarget(be_app);
|
||||||
@@ -1042,8 +1043,8 @@ StyledEditWindow::_InitWindow(uint32 encoding)
|
|||||||
menuItem->SetShortcut('S', B_SHIFT_KEY);
|
menuItem->SetShortcut('S', B_SHIFT_KEY);
|
||||||
menuItem->SetEnabled(true);
|
menuItem->SetEnabled(true);
|
||||||
|
|
||||||
menu->AddItem(fRevertItem =
|
menu->AddItem(fRevertItem
|
||||||
new BMenuItem(B_TRANSLATE("Revert to saved" B_UTF8_ELLIPSIS),
|
= new BMenuItem(B_TRANSLATE("Revert to saved" B_UTF8_ELLIPSIS),
|
||||||
new BMessage(MENU_REVERT)));
|
new BMessage(MENU_REVERT)));
|
||||||
fRevertItem->SetEnabled(false);
|
fRevertItem->SetEnabled(false);
|
||||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Close"),
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Close"),
|
||||||
|
|||||||
Reference in New Issue
Block a user