Icon-O-Matic uses Locale.h now. Change-Id: I9722ee76fda47821bf27e6195f8f6ec3d3e1b43e Reviewed-on: https://review.haiku-os.org/c/haiku/+/6700 Reviewed-by: waddlesplash <[email protected]>
63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
/*
|
|
* Copyright 2006-2007, Haiku. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Stephan Aßmus <[email protected]>
|
|
*/
|
|
#ifndef TRANSFORM_OBJECTS_COMMAND_H
|
|
#define TRANSFORM_OBJECTS_COMMAND_H
|
|
|
|
|
|
#include "IconBuild.h"
|
|
#include "TransformBox.h"
|
|
#include "TransformCommand.h"
|
|
|
|
|
|
_BEGIN_ICON_NAMESPACE
|
|
class Transformable;
|
|
_END_ICON_NAMESPACE
|
|
|
|
_USING_ICON_NAMESPACE
|
|
|
|
|
|
class TransformObjectsCommand : public TransformCommand,
|
|
public TransformBoxListener {
|
|
public:
|
|
TransformObjectsCommand(
|
|
TransformBox* box,
|
|
Transformable** const objects,
|
|
const double* originals,
|
|
int32 count,
|
|
|
|
BPoint pivot,
|
|
BPoint translation,
|
|
double rotation,
|
|
double xScale,
|
|
double yScale,
|
|
|
|
const char* name);
|
|
virtual ~TransformObjectsCommand();
|
|
|
|
// Command interface
|
|
virtual status_t InitCheck();
|
|
|
|
// TransformBoxListener interface
|
|
virtual void TransformBoxDeleted(
|
|
const TransformBox* box);
|
|
protected:
|
|
// TransformCommand interface
|
|
virtual status_t _SetTransformation(BPoint pivotDiff,
|
|
BPoint translationDiff,
|
|
double rotationDiff,
|
|
double xScaleDiff,
|
|
double yScaleDiff) const;
|
|
|
|
TransformBox* fTransformBox;
|
|
Transformable** fObjects;
|
|
double* fOriginals;
|
|
int32 fCount;
|
|
};
|
|
|
|
#endif // TRANSFORM_OBJECTS_COMMAND_H
|