- Rename BALMLayout.* file to ALMLayout.*.
- Fix some copyrights. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38771 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef BALM_LAYOUT_H
|
#ifndef ALM_LAYOUT_H
|
||||||
#define BALM_LAYOUT_H
|
#define ALM_LAYOUT_H
|
||||||
|
|
||||||
#include <AbstractLayout.h>
|
#include <AbstractLayout.h>
|
||||||
#include <File.h>
|
#include <File.h>
|
||||||
@@ -105,4 +104,4 @@ private:
|
|||||||
|
|
||||||
using BALM::BALMLayout;
|
using BALM::BALMLayout;
|
||||||
|
|
||||||
#endif // BALM_LAYOUT_H
|
#endif // ALM_LAYOUT_H
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef AREA_H
|
#ifndef AREA_H
|
||||||
#define AREA_H
|
#define AREA_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef COLUMN_H
|
#ifndef COLUMN_H
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ROW_H
|
#ifndef ROW_H
|
||||||
#define ROW_H
|
#define ROW_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef X_TAB_H
|
#ifndef X_TAB_H
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef Y_TAB_H
|
#ifndef Y_TAB_H
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
|
* Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
|
||||||
* Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
|
* Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
|
||||||
|
* Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BALMLayout.h"
|
#include "ALMLayout.h"
|
||||||
|
|
||||||
#include <math.h> // for floor
|
#include <math.h> // for floor
|
||||||
#include <new>
|
#include <new>
|
||||||
@@ -9,7 +9,7 @@ UsePrivateHeaders shared ;
|
|||||||
SharedLibrary libalm.so :
|
SharedLibrary libalm.so :
|
||||||
Area.cpp
|
Area.cpp
|
||||||
Column.cpp
|
Column.cpp
|
||||||
BALMLayout.cpp
|
ALMLayout.cpp
|
||||||
Row.cpp
|
Row.cpp
|
||||||
XTab.cpp
|
XTab.cpp
|
||||||
YTab.cpp
|
YTab.cpp
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
#include "BALMLayout.h"
|
#include "ALMLayout.h"
|
||||||
|
|
||||||
|
|
||||||
class AreasWindow : public BWindow {
|
class AreasWindow : public BWindow {
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
||||||
|
* Copyright 2007-2008, James Kim, [email protected]
|
||||||
|
* Copyright 2010, Clemens Zeidler <[email protected]>
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
// include this for ALM
|
// include this for ALM
|
||||||
#include "XTab.h"
|
#include "ALMLayout.h"
|
||||||
#include "YTab.h"
|
|
||||||
#include "Area.h"
|
|
||||||
#include "BALMLayout.h"
|
|
||||||
|
|
||||||
|
|
||||||
class HelloWorldWindow : public BWindow {
|
class HelloWorldWindow : public BWindow {
|
||||||
@@ -24,10 +28,8 @@ public:
|
|||||||
|
|
||||||
// add an area containing the button
|
// add an area containing the button
|
||||||
// use the borders of the layout as the borders for the area
|
// use the borders of the layout as the borders for the area
|
||||||
Area* a = fLayout->AddArea(
|
fLayout->AddArea(fLayout->Left(), fLayout->Top(), fLayout->Right(),
|
||||||
fLayout->Left(), fLayout->Top(),
|
fLayout->Bottom(), button1);
|
||||||
fLayout->Right(), fLayout->Bottom(),
|
|
||||||
button1);
|
|
||||||
button1->SetExplicitMinSize(BSize(0, 50));
|
button1->SetExplicitMinSize(BSize(0, 50));
|
||||||
button1->SetExplicitMaxSize(BSize(500, 500));
|
button1->SetExplicitMaxSize(BSize(500, 500));
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
||||||
|
* Copyright 2007-2008, James Kim, [email protected]
|
||||||
|
* Copyright 2010, Clemens Zeidler <[email protected]>
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <TextView.h>
|
#include <TextView.h>
|
||||||
@@ -5,10 +12,7 @@
|
|||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
// include this for ALM
|
// include this for ALM
|
||||||
#include "XTab.h"
|
#include "ALMLayout.h"
|
||||||
#include "YTab.h"
|
|
||||||
#include "Area.h"
|
|
||||||
#include "BALMLayout.h"
|
|
||||||
|
|
||||||
|
|
||||||
class PinwheelWindow : public BWindow {
|
class PinwheelWindow : public BWindow {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
||||||
* Copyright 2007-2008, James Kim, [email protected]
|
* Copyright 2007-2008, James Kim, [email protected]
|
||||||
|
* Copyright 2010, Clemens Zeidler <[email protected]>
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@
|
|||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
#include "BALMLayout.h"
|
#include "ALMLayout.h"
|
||||||
|
|
||||||
|
|
||||||
class TableDemoWindow : public BWindow {
|
class TableDemoWindow : public BWindow {
|
||||||
|
|||||||
@@ -1,10 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2007-2008, Christof Lutteroth, [email protected]
|
||||||
|
* Copyright 2007-2008, James Kim, [email protected]
|
||||||
|
* Copyright 2010, Clemens Zeidler <[email protected]>
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <TextView.h>
|
#include <TextView.h>
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
#include "BALMLayout.h"
|
#include "ALMLayout.h"
|
||||||
|
|
||||||
|
|
||||||
class TwoViewsWindow : public BWindow {
|
class TwoViewsWindow : public BWindow {
|
||||||
|
|||||||
Reference in New Issue
Block a user