Adjustments to Locale preflet
* renamed Locale.{h,cpp} to LocalePreflet.{h,cpp} as having two headers named Locale.h confuses jam (as a result, the Locale preflet did not depend on headers/os/locale/Locale.h) * style adjustments (mostly order of headers) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38455 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9a00115643
commit
6bb481c714
@ -5,7 +5,9 @@
|
||||
|
||||
|
||||
#include "FormatSettingsView.h"
|
||||
#include "Locale.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <Alert.h>
|
||||
#include <Application.h>
|
||||
@ -32,8 +34,7 @@
|
||||
#include <TextControl.h>
|
||||
#include <Window.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "LocalePreflet.h"
|
||||
|
||||
|
||||
using BPrivate::gMutableLocaleRoster;
|
||||
|
@ -5,7 +5,7 @@ UsePrivateHeaders shared ;
|
||||
|
||||
local sources =
|
||||
LanguageListView.cpp
|
||||
Locale.cpp
|
||||
LocalePreflet.cpp
|
||||
LocaleSettings.cpp
|
||||
LocaleWindow.cpp
|
||||
FormatSettingsView.cpp
|
||||
@ -18,9 +18,7 @@ Preference Locale
|
||||
: Locale.rdef
|
||||
;
|
||||
|
||||
DoCatalogs Locale : x-vnd.Haiku-Locale :
|
||||
LanguageListView.cpp
|
||||
Locale.cpp
|
||||
LocaleWindow.cpp
|
||||
FormatSettingsView.cpp
|
||||
;
|
||||
ECHO $(SYSHDRS) ;
|
||||
ECHO $(SUBDIRSYSHDRS) ;
|
||||
|
||||
DoCatalogs Locale : x-vnd.Haiku-Locale : $(sources) ;
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include <Bitmap.h>
|
||||
#include <Catalog.h>
|
||||
#include <Country.h>
|
||||
#include <Locale.h>
|
||||
#include <Window.h>
|
||||
|
||||
|
||||
@ -104,7 +103,7 @@ LanguageListItem::DrawItem(BView* owner, BRect frame, bool complete)
|
||||
+ (frame.Height() - (finfo.ascent + finfo.descent + finfo.leading)) / 2
|
||||
+ (finfo.ascent + finfo.descent) - 1);
|
||||
owner->DrawString(text.String());
|
||||
|
||||
|
||||
// Draw the icon
|
||||
frame.left = frame.right - 17;
|
||||
BRect iconFrame(frame);
|
||||
|
@ -5,9 +5,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "Locale.h"
|
||||
#include "LocaleSettings.h"
|
||||
#include "LocaleWindow.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <AboutWindow.h>
|
||||
#include <Application.h>
|
||||
@ -16,8 +15,9 @@
|
||||
#include <TextView.h>
|
||||
#include <Locale.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "LocalePreflet.h"
|
||||
#include "LocaleSettings.h"
|
||||
#include "LocaleWindow.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
@ -2,8 +2,8 @@
|
||||
* Copyright 2005-2010, Axel Dörfler, axeld@pinc-software.de.
|
||||
* All rights reserved. Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef LOCALE_H
|
||||
#define LOCALE_H
|
||||
#ifndef LOCALE_PREFLET_H
|
||||
#define LOCALE_PREFLET_H
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
@ -14,5 +14,5 @@ extern const char* kSignature;
|
||||
static const uint32 kMsgSettingsChanged = 'SeCh';
|
||||
|
||||
|
||||
#endif /* LOCALE_H */
|
||||
#endif /* LOCALE_PREFLET_H */
|
||||
|
@ -5,9 +5,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "Locale.h"
|
||||
#include "LocaleWindow.h"
|
||||
#include "LanguageListView.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@ -27,6 +25,8 @@
|
||||
#include <UnicodeChar.h>
|
||||
|
||||
#include "FormatSettingsView.h"
|
||||
#include "LocalePreflet.h"
|
||||
#include "LanguageListView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
|
Loading…
x
Reference in New Issue
Block a user