Logo Search packages:      
Sourcecode: videocut version File versions  Download package

TFrameItem::TFrameItem ( QImage &  p,
int  h_s,
QAction &  delAct,
QAction &  saveAct 

This file is a part of VideoCut package. ---------------------------------------------------------------------- Copyright (C) 2007-2008 troorl

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ----------------------------------------------------------------------

troorl <troorl@gmail.com>

Definition at line 26 of file TFrameItem.cpp.

      this->p = &p;
      this->h_s = h_s;
      this->w_s = (int)(h_s * 1.5);
      widthBorder = 2;
      shadowSize = 5;
      boundRect = QRectF(0, 0, w_s, h_s);
      bigRect = QRectF(shadowSize, shadowSize, w_s - shadowSize*2, h_s - shadowSize*2);
      pixRect = QRectF(bigRect.x() + widthBorder, bigRect.y() + widthBorder, bigRect.width() - widthBorder*2, bigRect.height() - widthBorder*2);
      source = QRectF(0, 0, this->p->width(), this->p->height());
    isSelect = false;

    hovered = false;

    // colors fo pressed and hovered layer
      colPress = QColor(0, 0, 250, 100);
      colHover = QColor(250, 250, 250, 100);

    // create context menu
    menu = new QMenu();

Generated by  Doxygen 1.6.0   Back to index