Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
76a9ae80
Kaydet (Commit)
76a9ae80
authored
Eki 17, 2013
tarafından
Ptyl Dragon
Kaydeden (comit)
Jan Holesovsky
Eki 17, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added for infrastructure for ios tile testing app
Change-Id: Ie8ac64769c01c5e967a56844a69747ef4d4f20af
üst
ae549ad1
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
478 additions
and
0 deletions
+478
-0
MLOMainViewController_Friend.h
...jective_c/view_controllers/MLOMainViewController_Friend.h
+18
-0
MLOMainViewController_Private.h
...ective_c/view_controllers/MLOMainViewController_Private.h
+22
-0
MLOAppRoleBase.h
...aredlo/objective_c/view_controllers/role/MLOAppRoleBase.h
+16
-0
MLOAppRoleBase.m
...aredlo/objective_c/view_controllers/role/MLOAppRoleBase.m
+13
-0
MLOAppRoleFactory.h
...dlo/objective_c/view_controllers/role/MLOAppRoleFactory.h
+14
-0
MLOAppRoleFactory.m
...dlo/objective_c/view_controllers/role/MLOAppRoleFactory.m
+35
-0
MLOAppRoleLoApp.h
...redlo/objective_c/view_controllers/role/MLOAppRoleLoApp.h
+13
-0
MLOAppRoleLoApp.m
...redlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m
+107
-0
MLOAppRoleProtocol.h
...lo/objective_c/view_controllers/role/MLOAppRoleProtocol.h
+21
-0
MLOAppRoleTileTester.h
.../objective_c/view_controllers/role/MLOAppRoleTileTester.h
+13
-0
MLOAppRoleTileTester.m
.../objective_c/view_controllers/role/MLOAppRoleTileTester.m
+70
-0
MLOTestingTileParametersViewController.h
...rs/testing_tiles/MLOTestingTileParametersViewController.h
+14
-0
MLOTestingTileParametersViewController.m
...rs/testing_tiles/MLOTestingTileParametersViewController.m
+31
-0
MLOTestingTileRendererViewController.h
...lers/testing_tiles/MLOTestingTileRendererViewController.h
+14
-0
MLOTestingTileRendererViewController.m
...lers/testing_tiles/MLOTestingTileRendererViewController.m
+32
-0
MLOTestingTileSubviewControllerProtocol.h
...s/testing_tiles/MLOTestingTileSubviewControllerProtocol.h
+16
-0
MLOTestingTileSubviewViewController.h
...llers/testing_tiles/MLOTestingTileSubviewViewController.h
+15
-0
MLOTestingTileSubviewViewController.m
...llers/testing_tiles/MLOTestingTileSubviewViewController.m
+14
-0
No files found.
ios/shared/ios_sharedlo/objective_c/view_controllers/MLOMainViewController_Friend.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOMainViewController.h"
static
const
CGFloat
TOP_BAR_HEIGHT
=
40
.
0
f
;
@class
MLOGestureEngine
,
MLORenderManager
;
@
interface
MLOMainViewController
()
@property
MLOGestureEngine
*
gestureEngine
;
@property
MLORenderManager
*
renderManager
;
-
(
void
)
toggleExpand
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/MLOMainViewController_Private.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOMainViewController_Friend.h"
@class
MLOAppRoleBase
,
MLOToolbarButton
,
MLOTopbarViewController
,
MLOToolbarViewController
;
@
interface
MLOMainViewController
()
@
property
BOOL
focused
;
@property
CGFloat
topBarHeight
;
@property
UIView
*
flasher
;
@property
MLOTopbarViewController
*
topbar
;
@property
MLOToolbarViewController
*
toolbar
;
@property
MLOAppRoleBase
*
role
;
-
(
void
)
resize
;
-
(
void
)
resetSubviews
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOViewController.h"
#import "MLOAppRoleProtocol.h"
@class
MLOMainViewController
,
MLOAppRoleBase
;
@
interface
MLOAppRoleBase
:
MLOViewController
<
MLOAppRoleProtocol
>
@property
MLOMainViewController
*
mainViewController
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleBase.h"
@implementation
MLOAppRoleBase
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOObject.h"
@class
MLOAppRoleBase
,
MLOMainViewController
;
@
interface
MLOAppRoleFactory
:
MLOObject
+
(
MLOAppRoleBase
*
)
getInstanceWithMainViewController
:
(
MLOMainViewController
*
)
mainViewController
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleFactory.h"
#import "MLOAppRoleLoApp.h"
#import "MLOAppRoleTileTester.h"
#import "MLOMainViewController.h"
@implementation
MLOAppRoleFactory
+
(
MLOAppRoleBase
*
)
getInstanceWithMainViewController
:(
MLOMainViewController
*
)
mainViewController
{
MLOAppRoleBase
*
role
;
switch
(
APP_ROLE
)
{
case
LO_APP
:
{
role
=
[
MLOAppRoleLoApp
new
];
break
;
}
case
TILE_TESTER
:
{
role
=
[
MLOAppRoleTileTester
new
];
break
;
}
}
role
.
mainViewController
=
mainViewController
;
return
role
;
}
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleBase.h"
@interface
MLOAppRoleLoApp
:
MLOAppRoleBase
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleLoApp.h"
#import "MLOMainViewController_Private.h"
#import "MLORenderManager.h"
#import "MLOGestureEngine.h"
#import "MLOToolbarViewController.h"
#import "MLOSelectionViewController.h"
#import "MLOScrollerViewController.h"
#import "MLOTopbarViewController.h"
#import "MLOKeyboardManager.h"
static
const
NSTimeInterval
ROTATE_FLASH_DURATION
=
0
.
5
f
;
@implementation
MLOAppRoleLoApp
-
(
void
)
initSubviews
{
MLOMainViewController
*
main
=
[
self
mainViewController
];
main
.
scroller
=
[[
MLOScrollerViewController
alloc
]
initWithMainViewController
:
main
];
main
.
selection
=
[[
MLOSelectionViewController
alloc
]
initWithMainViewController
:
main
];
main
.
toolbar
=
[[
MLOToolbarViewController
alloc
]
initWithMainViewController
:
main
];
main
.
keyboard
=
[[
MLOKeyboardManager
alloc
]
initWithMainViewController
:
main
];
main
.
flasher
=
[[
UIView
alloc
]
initWithFrame
:
CGRECT_ZERO
];
main
.
flasher
.
alpha
=
0
.
0
f
;
main
.
flasher
.
backgroundColor
=
[
UIColor
whiteColor
];
main
.
gestureEngine
=
nil
;
}
-
(
void
)
setWidth
:
(
CGFloat
)
width
height
:
(
CGFloat
)
height
{
[[
self
mainViewController
].
renderManager
setWidth
:
width
height
:
height
];
}
-
(
void
)
addSubviews
{
MLOMainViewController
*
main
=
[
self
mainViewController
];
main
.
renderManager
=
[
MLORenderManager
getInstance
];
[
main
resize
];
[
main
.
canvas
addSubview
:
main
.
renderManager
.
view
];
main
.
gestureEngine
=
[[
MLOGestureEngine
alloc
]
initWithMainViewController
:
main
];
[
main
.
toolbar
addToMainViewController
];
[
main
.
scroller
addToMainViewController
];
[
main
.
selection
addToMainViewController
];
[
main
.
keyboard
addToMainViewController
];
}
-
(
void
)
rotate
{
MLOMainViewController
*
main
=
self
.
mainViewController
;
NSLog
(
@"MLO rotate"
);
main
.
renderManager
.
view
.
alpha
=
0
.
0
f
;
[
main
resize
];
[
main
.
gestureEngine
onRotate
];
[
main
.
topbar
onRotate
];
[
main
.
scroller
reset
];
[
main
.
scroller
showLibreOffice
];
[
main
.
selection
onRotate
];
[
main
.
toolbar
onRotate
];
[
UIView
animateWithDuration
:
ROTATE_FLASH_DURATION
animations
:
^
(
void
){
main
.
renderManager
.
view
.
alpha
=
1
.
0
f
;
}];
}
-
(
void
)
showLibreOffice
{
[
self
.
mainViewController
.
toolbar
showLibreOffice
];
}
-
(
void
)
hideLibreOffice
{
MLOMainViewController
*
main
=
self
.
mainViewController
;
[
main
.
toolbar
hideLibreOffice
];
[
main
resetSubviews
];
[
main
.
gestureEngine
hideLibreOffice
];
[
main
.
scroller
hideLibreOffice
];
[
main
.
selection
reset
];
[
main
.
keyboard
hide
];
}
-
(
void
)
initWindow
:
(
UIWindow
*
)
window
{
MLOMainViewController
*
main
=
self
.
mainViewController
;
[
main
.
renderManager
setWidth
:
main
.
view
.
frame
.
size
.
width
height
:
main
.
view
.
frame
.
size
.
height
];
[
main
.
gestureEngine
showLibreOffice
:
window
];
}
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleProtocol.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import <Foundation/Foundation.h>
@protocol
MLOAppRoleProtocol
<
NSObject
>
@optional
-
(
void
)
initSubviews
;
-
(
void
)
setWidth
:(
CGFloat
)
width
height
:
(
CGFloat
)
height
;
-
(
void
)
addSubviews
;
-
(
void
)
rotate
;
-
(
void
)
initWindow
:(
UIWindow
*
)
window
;
-
(
void
)
showLibreOffice
;
-
(
void
)
hideLibreOffice
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleBase.h"
@interface
MLOAppRoleTileTester
:
MLOAppRoleBase
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOAppRoleTileTester.h"
#import "MLOMainViewController_Private.h"
#import "MLOTopbarViewController.h"
#import "MLOTestingTileRendererViewController.h"
#import "MLOTestingTileParametersViewController.h"
@interface
MLOAppRoleTileTester
()
@property
MLOTestingTileRendererViewController
*
renderer
;
@property
MLOTestingTileParametersViewController
*
params
;
@end
@implementation
MLOAppRoleTileTester
-
(
void
)
initSubviews
{
self
.
renderer
=
[[
MLOTestingTileRendererViewController
alloc
]
initWithTester
:
self
];
self
.
params
=
[[
MLOTestingTileParametersViewController
alloc
]
initWithTester
:
self
];
}
-
(
void
)
setWidth
:
(
CGFloat
)
width
height
:
(
CGFloat
)
height
{
if
(
width
>
height
){
CGFloat
halfWidth
=
width
/
2
.
0
f
;
self
.
renderer
.
view
.
frame
=
CGRectMake
(
0
,
0
,
halfWidth
,
height
);
self
.
params
.
view
.
frame
=
CGRectMake
(
halfWidth
,
0
,
halfWidth
,
height
);
}
else
{
CGFloat
halfHeight
=
height
/
2
.
0
f
;
self
.
renderer
.
view
.
frame
=
CGRectMake
(
0
,
0
,
width
,
halfHeight
);
self
.
params
.
view
.
frame
=
CGRectMake
(
width
,
halfHeight
,
width
,
halfHeight
);
}
[
self
.
renderer
resize
];
[
self
.
params
resize
];
}
-
(
void
)
addSubviews
{
[
self
.
renderer
addToMainViewController
];
[
self
.
params
addToMainViewController
];
[
self
.
mainViewController
resize
];
}
-
(
void
)
rotate
{
MLOMainViewController
*
main
=
[
self
mainViewController
];
[
main
resize
];
[
main
.
topbar
onRotate
];
}
-
(
void
)
showLibreOffice
{
}
-
(
void
)
hideLibreOffice
{
}
-
(
void
)
initWindow
:
(
UIWindow
*
)
window
{
}
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOViewController.h"
#import "MLOTestingTileSubviewControllerProtocol.h"
@interface
MLOTestingTileParametersViewController
:
MLOViewController
<
MLOTestingTileSubviewControllerProtocol
>
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOTestingTileParametersViewController.h"
@interface
MLOTestingTileParametersViewController
()
@property
MLOAppRoleTileTester
*
tester
;
@end
@implementation
MLOTestingTileParametersViewController
-
(
id
)
initWithTester
:(
MLOAppRoleTileTester
*
)
tester
{
self
=
[
self
init
];
if
(
self
){
self
.
tester
=
tester
;
}
return
self
;
}
-
(
void
)
resize
{
}
-
(
void
)
addToMainViewController
{
}
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileRendererViewController.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOViewController.h"
#import "MLOTestingTileSubviewControllerProtocol.h"
@interface
MLOTestingTileRendererViewController
:
MLOViewController
<
MLOTestingTileSubviewControllerProtocol
>
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileRendererViewController.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import "MLOTestingTileRendererViewController.h"
#import "MLOAppRoleTileTester.h"
@interface
MLOTestingTileRendererViewController
()
@property
MLOAppRoleTileTester
*
tester
;
@end
@implementation
MLOTestingTileRendererViewController
-
(
id
)
initWithTester
:(
MLOAppRoleTileTester
*
)
tester
{
self
=
[
self
init
];
if
(
self
){
self
.
tester
=
tester
;
}
return
self
;
}
-
(
void
)
resize
{
}
-
(
void
)
addToMainViewController
{
}
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileSubviewControllerProtocol.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
// -*- Mode: Objective-C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
//
// This file is part of the LibreOffice project.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#import <Foundation/Foundation.h>
@class
MLOAppRoleTileTester
;
@protocol
MLOTestingTileSubviewControllerProtocol
<
NSObject
>
-
(
id
)
initWithTester
:
(
MLOAppRoleTileTester
*
)
tester
;
-
(
void
)
addToMainViewController
;
-
(
void
)
resize
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileSubviewViewController.h
0 → 100644
Dosyayı görüntüle @
76a9ae80
//
// MLOTestingTileSubviewViewController.h
// ios_sharedlo
//
// Created by ptyl on 10/17/13.
// Copyright (c) 2013 LibreOffice.org. All rights reserved.
//
#import "MLOViewController.h"
@class
MLOAppRoleTileTester
;
@interface
MLOTestingTileSubviewViewController
:
MLOViewController
@property
MLOAppRoleTileTester
*
tester
;
@end
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileSubviewViewController.m
0 → 100644
Dosyayı görüntüle @
76a9ae80
//
// MLOTestingTileSubviewViewController.m
// ios_sharedlo
//
// Created by ptyl on 10/17/13.
// Copyright (c) 2013 LibreOffice.org. All rights reserved.
//
#import "MLOTestingTileSubviewViewController.h"
@implementation
MLOTestingTileSubviewViewController
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment