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