Should make the bluetooth preflet compile and run better.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33256 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2009-09-23 19:40:38 +00:00
parent 51e7cfd2bb
commit 4cbc2061fd
7 changed files with 65 additions and 50 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include "defs.h" #include "defs.h"
#define TR_CONTEXT "main"
BluetoothApplication::BluetoothApplication(void) BluetoothApplication::BluetoothApplication(void)
: BApplication(BLUETOOTH_APP_SIGNATURE) : BApplication(BLUETOOTH_APP_SIGNATURE)
@@ -58,7 +59,7 @@ BluetoothApplication::AboutRequested()
" - Petter H. Juliussen\n" " - Petter H. Juliussen\n"
" - Adrien Destugues\n\n" " - Adrien Destugues\n\n"
"Who gave me all the knowledge:\n" "Who gave me all the knowledge:\n"
" - the yellowTAB team", "OK")))->Go(); " - the yellowTAB team"), TR("Ok")))->Go();
} }
@@ -8,8 +8,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <Box.h> #include <Box.h>
#include <Catalog.h>
#include <GridLayoutBuilder.h> #include <GridLayoutBuilder.h>
#include <GroupLayoutBuilder.h> #include <GroupLayoutBuilder.h>
#include <Locale.h>
#include <MenuField.h> #include <MenuField.h>
#include <MenuItem.h> #include <MenuItem.h>
#include <PopUpMenu.h> #include <PopUpMenu.h>
@@ -23,6 +25,8 @@
#include "defs.h" #include "defs.h"
#include "BluetoothWindow.h" #include "BluetoothWindow.h"
#define TR_CONTEXT "Settings view"
static const int32 kMsgSetAntialiasing = 'anti'; static const int32 kMsgSetAntialiasing = 'anti';
static const int32 kMsgSetDeviceClassDesktop = 'sDCd'; static const int32 kMsgSetDeviceClassDesktop = 'sDCd';
@@ -20,6 +20,8 @@
#include "defs.h" #include "defs.h"
#define TR_CONTEXT "Window"
static const uint32 kMsgSetDefaults = 'dflt'; static const uint32 kMsgSetDefaults = 'dflt';
static const uint32 kMsgRevert = 'rvrt'; static const uint32 kMsgRevert = 'rvrt';
@@ -16,6 +16,7 @@
#include <SpaceLayoutItem.h> #include <SpaceLayoutItem.h>
#include <StringView.h> #include <StringView.h>
#define TR_CONTEXT "Extended local device view"
ExtendedLocalDeviceView::ExtendedLocalDeviceView(BRect frame, LocalDevice* bDevice, uint32 resizingMode, uint32 flags) ExtendedLocalDeviceView::ExtendedLocalDeviceView(BRect frame, LocalDevice* bDevice, uint32 resizingMode, uint32 flags)
: BView(frame,"ExtendedLocalDeviceView", resizingMode, flags | B_WILL_DRAW), : BView(frame,"ExtendedLocalDeviceView", resizingMode, flags | B_WILL_DRAW),
@@ -26,6 +26,8 @@
#include "DeviceListItem.h" #include "DeviceListItem.h"
#include "defs.h" #include "defs.h"
#define TR_CONTEXT "Inquiry panel"
using Bluetooth::DeviceListItem; using Bluetooth::DeviceListItem;
// private funcionaility provided by kit // private funcionaility provided by kit
@@ -22,6 +22,8 @@
#include "RemoteDevicesView.h" #include "RemoteDevicesView.h"
#define TR_CONTEXT "Remote devices"
static const uint32 kMsgAddDevices = 'ddDv'; static const uint32 kMsgAddDevices = 'ddDv';
static const uint32 kMsgRemoveDevice = 'rmDv'; static const uint32 kMsgRemoveDevice = 'rmDv';
static const uint32 kMsgTrustDevice = 'trDv'; static const uint32 kMsgTrustDevice = 'trDv';
+52 -49
View File
@@ -1,50 +1,53 @@
1 french x-vnd.Haiku-BluetoothPrefs 698965680 1 french x-vnd.Haiku-BluetoothPrefs 3058329015
Defaults Device View Défaut Handheld Settings view Appareil de poche
Refresh LocalDevicesxE2x80xA6 Device View Rafraîchir LocalDevicesxE2x80xA6 Only from Trusted devices Settings view Seulement les appareils de confiance
Scanning progress Device View Avancée du balayage Refresh LocalDevicesxE2x80xA6 Window Rafraîchir LocalDevicexE2x80xA6
Discoverable Device View Découvrable Add device to list Inquiry panel Ajouter l'appareil à la liste
Stop Bluetooth ServicesxE2x80xA6 Device View Arrêter les services bluetoothxE2x80xA6 Starting scan... Inquiry panel Démarrage de la recherche...
Remove Device View Enlever Smart Phone Settings view Téléphone
As Blocked Device View Bloqué seconds Inquiry panel secondes
Always ask Device View Toujours demander Remote Devices Window Appareils distants
Settings Device View Réglages Server Settings view Serveur
As Trusted Device View De confiance Default Inquiry time: Settings view Temps de requête par défaut:
Server Device View Serveur Identify host as: Settings view Identifier l'hôte comme :
Check that the bluetooth capabilities of your remote device are activated. Press Inquiry to start scanning. The needed time for the retrieval of the names is unknown, although should not take more than 3 seconds per device. Afterwards you will be able to add them to your main list, where you will be able to pair with them Device View Vérifiez que les fonctionalités bluetooth de votre appareil distant sont activées. Appuyez sur Recherche pour lancer un balayage. Le temps nécessaire pour récupérer les noms est inconnu, mais ne devrait pas dépasser 3 secondes par appareil. Ensuite vous pourrez les ajouter à la liste principale, puis vous associer avec eux. View Window Vue
Identify host as: Device View Identifier l'hôte comme : Show Bluetooth consolexE2x80xA6 Window Montrer le terminal bluetoothxE2x80xA6
Incoming connections policy: Device View Attitude pour les connexiosn entrantes : Incoming connections policy: Settings view Attitude envers les connexions entrantes :
There has not been found any bluetooth LocalDevice device registered on the system Device View Aucun LocalDevice bluetooth n'est enregistré sur ce système From all devices Settings view Tous les appareils
Local Devices found on system: Device View Appareils locaux trouvés sur le système : RefreshxE2x80xA6 Remote devices RafraîchirxE2x80xA6
Only from Trusted devices Device View Seulement les appareils de confiance Connections & Channels listxE2x80xA6 Window Liste des connexions et canauxxE2x80xA6
Add device to list Device View Ajouter l'appareil à la liste Server Window Serveur
Inquiry Device View Recherche Scanning completed. Inquiry panel Recherche complète.
Remote Devices Device View Appareils distants Start Bluetooth ServicesxE2x80xA6 Window Démarrer les services bluetoothxE2x80xA6
Retrieving name of Device View Récupère le nom de Remove Remote devices Enlever
Smart Phone Device View Smart Phone 15 secs Settings view 15 secs
Identify us as... Device View S'identifier comme... Policy... Settings view Attitude...
Scanning completed. Device View Balayage complet. 61 secs Settings view 61 secs
Show Bluetooth consolexE2x80xA6 Device View Afficher la console bluetoothxE2x80xA6 AddxE2x80xA6 Remote devices AjouterxE2x80xA6
Handheld Device View PDA Identify us as... Settings view S'identifier comme...
15 secs Device View 15 secs Remaining Inquiry panel Restant
Help Device View Aide Pick LocalDevice... Settings view Choisir LocalDevice...
Revert Device View Défaire Defaults Window Défauts
Start Bluetooth ServicesxE2x80xA6 Device View Démarrer les serrvices bluetoothxE2x80xA6 Inquiry Inquiry panel Requête
61 secs Device View 61 secs Desktop Settings view Bureau
Default Inquiry time: Device View Temps de recherche par défaut : Revert Window Défaire
Connections & Channels listxE2x80xA6 Device View Liste des canaux et connexionsxE2x80xA6 AboutxE2x80xA6 Window À proposxE2x80xA6
seconds Device View secondes Remote Devices ListxE2x80xA6 Window Liste d'appareils distantsxE2x80xA6
Policy... Device View Attitude... Laptop Settings view Portable
Show Name Device View Montrer le nom Retrieving name of Inquiry panel Récupérer le nom de
Laptop Device View Portable Local Devices found on system: Settings view Appareils locaux trouvés sur le système :
AboutxE2x80xA6 Device View À proposxE2x80xA6 As Trusted Remote devices Comme de confiance
Discoverable Extended local device view Découvrable
As Blocked Remote devices Comme bloqué
Service Classes: Device View Classes de services: Service Classes: Device View Classes de services:
Remaining Device View Restant Stop Bluetooth ServicesxE2x80xA6 Window Arrêter les services bluetoothxE2x80xA6
Pick LocalDevice... Device View Sélectionner LocalDevice... Settings Window Paramètres
Remote Devices ListxE2x80xA6 Device View Liste des appareils distantsxE2x80xA6 Check that the bluetooth capabilities of your remote device are activated. Press Inquiry to start scanning. The needed time for the retrieval of the names is unknown, although should not take more than 3 seconds per device. Afterwards you will be able to add them to your main list, where you will be able to pair with them Inquiry panel Vérifiez que les fonctionnalités bluetooth de votre appareil distant sont activées. Appuyez sur "Requête" pour lancer la recherche. Le temps nécessaire pour récupérer les noms n'est pas connu, mais ça ne devrait pas prendre plus de 3 secondes par appareil. Ensuite vous pourrez les ajouter à la liste principale, où vous pourrez vous associer avec eux.
RefreshxE2x80xA6 Device View RafraîchirxE2x80xA6 Scanning progress Inquiry panel Avancée de la recherche
AddxE2x80xA6 Device View AjouterxE2x80xA6 Always ask Settings view Toujours demander
View Device View Vue Haiku Bluetooth System, (ARCE)\n\nCreated by Oliver Ruiz Dorantes\n\nWith support of:\n\t- Mika Lindqvist\n\t- Maksym Yevmenkin\n\nThanks to the individuals who helped...\n\nShipping/donating hardware:\n\t- Henry Jair Abril Florez(el Colombian)\n\t\t & Stefanie Bartolich\n\t- Edwin Erik Amsler\n\t- Dennis d'Entremont\n\t- Luroh\n\t- Pieter Panman\n\nEconomically:\n\t- Karl vom Dorff, Andrea Bernardi (OSDrawer),\n\t- Matt M, Doug F, Hubert H,\n\t- Sebastian B, Andrew M, Jared E,\n\t- Frederik H, Tom S, Ferry B,\n\t- Greg G, David F, Richard S, Martin W:\n\nWith patches:\n\t- Michael Weirauch\n\t- Fredrik Ekdahl\n\t- Raynald Lesieur\n\t- Andreas Färber\n\t- Jörg Meyer\nTesting:\n\t- Petter H. Juliussen\n\t- Adrien Destugues\n\nWho gave me all the knowledge:\n\t- the yellowTAB team main Système bluetooth Haiku, (ARCE)\n\nCréé par Oliver Ruiz Dorantes\n\nAvec l'aide de :\n\t- Mika Lindqvist\n\t- Maksym Yevmenkin\n\nMerci à tous ceux qui ont aidé...\n\nEnvoi.don de matériel :\n\t- Henry Jair Abril Florez(el Colombian)\n\t\t & Stefanie Bartolich\n\t- Edwin Erik Amsler\n\t- Dennis d'Entremont\n\t- Luroh\n\t- Pieter Panman\n\nÉconomiquement:\n\t- Karl vom Dorff, Andrea Bernardi (OSDrawer),\n\t- Matt M, Doug F, Hubert H,\n\t- Sebastian B, Andrew M, Jared E,\n\t- Frederik H, Tom S, Ferry B,\n\t- Greg G, David F, Richard S, Martin W:\n\nAvec des patches:\n\t- Michael Weirauch\n\t- Fredrik Ekdahl\n\t- Raynald Lesieur\n\t- Andreas Färber\n\t- Jörg Meyer\nTesting:\n\t- Petter H. Juliussen\n\t- Adrien Destugues\n\nQui m'ont tout appris:\n\t- l'équipe yellowTAB
Desktop Device View Bureau Retrieving names... Inquiry panel Récupération des noms...
Retrieving names... Device View Récupération des noms... Help Window Aide
Starting scan... Device View Début du balayage... Ok main Ok
From all devices Device View Depuis tous les appareils There has not been found any bluetooth LocalDevice device registered on the system Inquiry panel Aucun matériel bluetooth trouvé sur le système
Show Name Extended local device view Montrer le nom