style cleanup; added missing public source headers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "NetworkSetupAddOn.h"
|
#include "NetworkSetupAddOn.h"
|
||||||
|
|||||||
@@ -92,7 +92,8 @@ InterfacesAddOn::CreateView(BRect *bounds)
|
|||||||
|
|
||||||
r.left += w + SMALL_MARGIN;
|
r.left += w + SMALL_MARGIN;
|
||||||
|
|
||||||
fOnOff = new BButton(r, "onoff", "Disable", new BMessage(ONOFF_INTERFACE_MSG),
|
fOnOff = new BButton(r, "onoff", "Disable",
|
||||||
|
new BMessage(ONOFF_INTERFACE_MSG),
|
||||||
B_FOLLOW_BOTTOM | B_FOLLOW_LEFT);
|
B_FOLLOW_BOTTOM | B_FOLLOW_LEFT);
|
||||||
fOnOff->GetPreferredSize(&w, &h);
|
fOnOff->GetPreferredSize(&w, &h);
|
||||||
fOnOff->ResizeToPreferred();
|
fOnOff->ResizeToPreferred();
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* Authors:
|
* Authors:
|
||||||
* Philippe Houdoin
|
* Philippe Houdoin
|
||||||
* Fredrik Modéen
|
* Fredrik Modéen
|
||||||
* Alexander von Gluck IV, <[email protected]>
|
* Alexander von Gluck IV, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -105,7 +105,8 @@ InterfaceListItem::DrawItem(BView* owner, BRect /*bounds*/, bool complete)
|
|||||||
|
|
||||||
if (IsSelected() || complete) {
|
if (IsSelected() || complete) {
|
||||||
if (IsSelected()) {
|
if (IsSelected()) {
|
||||||
owner->SetHighColor(tint_color(owner->ViewColor() , B_HIGHLIGHT_BACKGROUND_TINT));
|
owner->SetHighColor(tint_color(owner->ViewColor(),
|
||||||
|
B_HIGHLIGHT_BACKGROUND_TINT));
|
||||||
} else {
|
} else {
|
||||||
owner->SetHighColor(owner->LowColor());
|
owner->SetHighColor(owner->LowColor());
|
||||||
}
|
}
|
||||||
@@ -114,9 +115,9 @@ InterfaceListItem::DrawItem(BView* owner, BRect /*bounds*/, bool complete)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BPoint iconPt = bounds.LeftTop() + BPoint(4, 4);
|
BPoint iconPt = bounds.LeftTop() + BPoint(4, 4);
|
||||||
BPoint namePt = BPoint(32+12, fFirstlineOffset);
|
BPoint namePt(32 + 12, fFirstlineOffset);
|
||||||
BPoint v4addrPt = BPoint(32+12, fSecondlineOffset);
|
BPoint v4addrPt(32 + 12, fSecondlineOffset);
|
||||||
BPoint v6addrPt = BPoint(32+12, fThirdlineOffset);
|
BPoint v6addrPt(32 + 12, fThirdlineOffset);
|
||||||
|
|
||||||
if (fSettings->IsDisabled()) {
|
if (fSettings->IsDisabled()) {
|
||||||
owner->SetDrawingMode(B_OP_ALPHA);
|
owner->SetDrawingMode(B_OP_ALPHA);
|
||||||
@@ -200,13 +201,17 @@ InterfaceListItem::_Init()
|
|||||||
|
|
||||||
size_t size;
|
size_t size;
|
||||||
// Try specific interface icon?
|
// Try specific interface icon?
|
||||||
const uint8* rawIcon = (const uint8*)resources.LoadResource(B_VECTOR_ICON_TYPE, Name(), &size);
|
const uint8* rawIcon = (const uint8*)resources.LoadResource(
|
||||||
|
B_VECTOR_ICON_TYPE, Name(), &size);
|
||||||
|
|
||||||
if (rawIcon == NULL && mediaTypeName != NULL)
|
if (rawIcon == NULL && mediaTypeName != NULL)
|
||||||
// Not found, try interface media type?
|
// Not found, try interface media type?
|
||||||
rawIcon = (const uint8*)resources.LoadResource(B_VECTOR_ICON_TYPE, mediaTypeName, &size);
|
rawIcon = (const uint8*)resources.LoadResource(
|
||||||
|
B_VECTOR_ICON_TYPE, mediaTypeName, &size);
|
||||||
if (rawIcon == NULL)
|
if (rawIcon == NULL)
|
||||||
// Not found, try default interface icon?
|
// Not found, try default interface icon?
|
||||||
rawIcon = (const uint8*)resources.LoadResource(B_VECTOR_ICON_TYPE, "ether", &size);
|
rawIcon = (const uint8*)resources.LoadResource(
|
||||||
|
B_VECTOR_ICON_TYPE, "ether", &size);
|
||||||
|
|
||||||
if (rawIcon) {
|
if (rawIcon) {
|
||||||
// Now build the bitmap
|
// Now build the bitmap
|
||||||
@@ -218,6 +223,7 @@ InterfaceListItem::_Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
@@ -313,6 +319,7 @@ InterfacesListView::_UpdateList()
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InterfacesListView::_HandleNetworkMessage(BMessage* message)
|
InterfacesListView::_HandleNetworkMessage(BMessage* message)
|
||||||
{
|
{
|
||||||
@@ -354,3 +361,4 @@ InterfacesListView::_HandleNetworkMessage(BMessage* message)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "NetworkSetupAddOn.h"
|
#include "NetworkSetupAddOn.h"
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2007 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include "NetworkSetupAddOn.h"
|
#include "NetworkSetupAddOn.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef NETWORKSETUPADDON_H
|
#ifndef NETWORKSETUPADDON_H
|
||||||
#define NETWORKSETUPADDON_H
|
#define NETWORKSETUPADDON_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "NetworkSetupProfile.h"
|
#include "NetworkSetupProfile.h"
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef NETWORKSETUPPROFILE_H
|
#ifndef NETWORKSETUPPROFILE_H
|
||||||
#define NETWORKSETUPPROFILE_H
|
#define NETWORKSETUPPROFILE_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include "NetworkSetupAddOn.h"
|
#include "NetworkSetupAddOn.h"
|
||||||
#include "NetworkSetupWindow.h"
|
#include "NetworkSetupWindow.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef NETWORKSETUPWINDOW_H
|
#ifndef NETWORKSETUPWINDOW_H
|
||||||
#define NETWORKSETUPWINDOW_H
|
#define NETWORKSETUPWINDOW_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user