Deleted Added
full compact
BMPView.cpp (2d00a953) BMPView.cpp (f0650dc9)
1/*
2 * Copyright 2002-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
4 *
5 * Authors:
6 * Michael Wilber
7 * Axel D��rfler, axeld@pinc-software.de
8 */

--- 14 unchanged lines hidden (view full) ---

23#define B_TRANSLATION_CONTEXT "BMPView"
24
25
26BMPView::BMPView(const BRect &frame, const char *name, uint32 resizeMode,
27 uint32 flags, TranslatorSettings *settings)
28 : BView(frame, name, resizeMode, flags)
29{
30 fSettings = settings;
1/*
2 * Copyright 2002-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
4 *
5 * Authors:
6 * Michael Wilber
7 * Axel D��rfler, axeld@pinc-software.de
8 */

--- 14 unchanged lines hidden (view full) ---

23#define B_TRANSLATION_CONTEXT "BMPView"
24
25
26BMPView::BMPView(const BRect &frame, const char *name, uint32 resizeMode,
27 uint32 flags, TranslatorSettings *settings)
28 : BView(frame, name, resizeMode, flags)
29{
30 fSettings = settings;
31 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
31 SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
32
33 BStringView *titleView = new BStringView("title",
34 B_TRANSLATE("BMP image translator"));
35 titleView->SetFont(be_bold_font);
36
37 char version[256];
38 snprintf(version, sizeof(version), B_TRANSLATE("Version %d.%d.%d, %s"),
39 int(B_TRANSLATION_MAJOR_VERSION(BMP_TRANSLATOR_VERSION)),

--- 25 unchanged lines hidden ---
32
33 BStringView *titleView = new BStringView("title",
34 B_TRANSLATE("BMP image translator"));
35 titleView->SetFont(be_bold_font);
36
37 char version[256];
38 snprintf(version, sizeof(version), B_TRANSLATE("Version %d.%d.%d, %s"),
39 int(B_TRANSLATION_MAJOR_VERSION(BMP_TRANSLATOR_VERSION)),

--- 25 unchanged lines hidden ---