|
|
|
@ -1211,7 +1211,7 @@ void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_cl
|
|
|
|
|
|
|
|
|
|
void CrystalClient::mouseDoubleClickEvent(TQMouseEvent *e)
|
|
|
|
|
{
|
|
|
|
|
if (/*(titlebar_->geometry().contains(e->pos()))&&*/(e->button()==Qt::LeftButton)) titlebarDblClickOperation();
|
|
|
|
|
if (/*(titlebar_->geometry().contains(e->pos()))&&*/(e->button()==TQt::LeftButton)) titlebarDblClickOperation();
|
|
|
|
|
else {
|
|
|
|
|
TQMouseEvent me(TQEvent::MouseButtonPress,e->pos(),e->button(),e->state());
|
|
|
|
|
processMousePressEvent(&me);
|
|
|
|
@ -1545,10 +1545,10 @@ void CrystalClient::maxButtonPressed()
|
|
|
|
|
{
|
|
|
|
|
switch (button[ButtonMax]->lastMousePress())
|
|
|
|
|
{
|
|
|
|
|
case Qt::MidButton:
|
|
|
|
|
case TQt::MidButton:
|
|
|
|
|
maximize(maximizeMode() ^ MaximizeVertical);
|
|
|
|
|
break;
|
|
|
|
|
case Qt::RightButton:
|
|
|
|
|
case TQt::RightButton:
|
|
|
|
|
maximize(maximizeMode() ^ MaximizeHorizontal);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
@ -1561,11 +1561,11 @@ void CrystalClient::minButtonPressed()
|
|
|
|
|
{
|
|
|
|
|
if (button[ButtonMin]) {
|
|
|
|
|
switch (button[ButtonMin]->lastMousePress()) {
|
|
|
|
|
case Qt::MidButton:{
|
|
|
|
|
case TQt::MidButton:{
|
|
|
|
|
performWindowOperation(LowerOp);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case Qt::RightButton:
|
|
|
|
|
case TQt::RightButton:
|
|
|
|
|
if (isShadeable()) setShade(!isShade());
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
@ -1604,7 +1604,7 @@ void CrystalClient::closeButtonPressed()
|
|
|
|
|
{
|
|
|
|
|
if (button[ButtonClose])
|
|
|
|
|
switch (button[ButtonClose]->lastMousePress()) {
|
|
|
|
|
case Qt::RightButton:
|
|
|
|
|
case TQt::RightButton:
|
|
|
|
|
{
|
|
|
|
|
Window frame,wrapper,client;
|
|
|
|
|
char param[20];
|
|
|
|
@ -1629,8 +1629,8 @@ void CrystalClient::shadeButtonPressed()
|
|
|
|
|
{
|
|
|
|
|
if (button[ButtonShade]) {
|
|
|
|
|
switch (button[ButtonShade]->lastMousePress()) {
|
|
|
|
|
case Qt::MidButton:
|
|
|
|
|
case Qt::RightButton:
|
|
|
|
|
case TQt::MidButton:
|
|
|
|
|
case TQt::RightButton:
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
if (isShadeable()) setShade(!isShade());
|
|
|
|
|