- Removes shortcut ctrl-a for align tool -- to avoid ctrl-a for select all text in UI controls messing up prim selection - Adds llselectmgr select all function -- to replace ctrl-a select all prims functionality that was a side effect of qtoolalign having this shortcut - Adds toggle button (up/down arrow) to build floater for toggling display of the lower tab container area -- This is to satisfy users who relied on ctrl-a to use align while the build floater was minimized and out of the way - Syncs qtoolalign from Alchemy
45 lines
952 B
C++
45 lines
952 B
C++
/**
|
|
* @file qtoolalign.h
|
|
* @brief A tool to align objects
|
|
*/
|
|
|
|
#ifndef Q_QTOOLALIGN_H
|
|
#define Q_QTOOLALIGN_H
|
|
|
|
#include "lltool.h"
|
|
#include "llbbox.h"
|
|
|
|
class LLViewerObject;
|
|
class LLPickInfo;
|
|
class LLToolSelectRect;
|
|
|
|
class QToolAlign
|
|
: public LLTool, public LLSingleton<QToolAlign>
|
|
{
|
|
public:
|
|
QToolAlign();
|
|
virtual ~QToolAlign();
|
|
|
|
virtual void handleSelect();
|
|
virtual void handleDeselect();
|
|
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
|
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
|
|
virtual void render();
|
|
|
|
static void pickCallback(const LLPickInfo& pick_info);
|
|
|
|
private:
|
|
void align();
|
|
void computeManipulatorSize();
|
|
void renderManipulators();
|
|
BOOL findSelectedManipulator(S32 x, S32 y);
|
|
|
|
LLBBox mBBox;
|
|
F32 mManipulatorSize;
|
|
S32 mHighlightedAxis;
|
|
F32 mHighlightedDirection;
|
|
BOOL mForce;
|
|
};
|
|
|
|
#endif // Q_QTOOLALIGN_H
|