Beispiel #1
0
void RS_GraphicView::init()
{
    RS_SETTINGS->beginGroup("/Appearance");
    setBackground(       QColor( RS_SETTINGS->readGraphicColor( RS_Settings::BackgroundColor)));
    setGridColor(        QColor( RS_SETTINGS->readGraphicColor( RS_Settings::GridColor)));
    setMetaGridColor(    QColor( RS_SETTINGS->readGraphicColor( RS_Settings::MetaGridColor)));
    setSelectedColor(    QColor( RS_SETTINGS->readGraphicColor( RS_Settings::SelectedColor)));
    setHighlightedColor( QColor( RS_SETTINGS->readGraphicColor( RS_Settings::HighlightedColor)));
    setStartHandleColor( QColor( RS_SETTINGS->readGraphicColor( RS_Settings::StartHandleColor)));
    setHandleColor(      QColor( RS_SETTINGS->readGraphicColor( RS_Settings::HandleColor)));
    setEndHandleColor(   QColor( RS_SETTINGS->readGraphicColor( RS_Settings::EndHandleColor)));

    RS_SETTINGS->endGroup();
    QC_ApplicationWindow::getAppWindow()->setPreviousZoomEnable(false);
}
void RS_GraphicView::init()
{
    RS_SETTINGS->beginGroup("Colors");
    setBackground(QColor(RS_SETTINGS->readEntry("/background", Colors::background)));
    setGridColor(QColor(RS_SETTINGS->readEntry("/grid", Colors::grid)));
    setMetaGridColor(QColor(RS_SETTINGS->readEntry("/meta_grid", Colors::meta_grid)));
    setSelectedColor(QColor(RS_SETTINGS->readEntry("/select", Colors::select)));
    setHighlightedColor(QColor(RS_SETTINGS->readEntry("/highlight", Colors::highlight)));
    setStartHandleColor(QColor(RS_SETTINGS->readEntry("/start_handle", Colors::start_handle)));
    setHandleColor(QColor(RS_SETTINGS->readEntry("/handle", Colors::handle)));
    setEndHandleColor(QColor(RS_SETTINGS->readEntry("/end_handle", Colors::end_handle)));
    RS_SETTINGS->endGroup();

    QC_ApplicationWindow::getAppWindow()->setPreviousZoomEnable(false);
}
Beispiel #3
0
/**
 * Constructor.
 */
RS_GraphicView::RS_GraphicView()
    : background(), foreground(),
      savedViews(16), savedViewIndex(0),savedViewCount(0),previousViewTime(QDateTime::currentDateTime())
    ,m_bIsCleanUp(false)
{
    drawingMode = RS2::ModeFull;
    printing = false;
    deleteMode = false;
    factor = RS_Vector(1.0,1.0);
    offsetX = 0;
    offsetY = 0;
    container = NULL;
    eventHandler = new RS_EventHandler(this);
    gridColor = Qt::gray;
    metaGridColor = RS_Color(64,64,64);
    grid = new RS_Grid(this);
    zoomFrozen = false;
    //gridVisible = true;
    draftMode = false;

    borderLeft = 0;
    borderTop = 0;
    borderRight = 0;
    borderBottom = 0;

    relativeZero = RS_Vector(false);
    relativeZeroLocked=false;

    mx = my = 0;

    RS_SETTINGS->beginGroup("/Appearance");
    setBackground(QColor(RS_SETTINGS->readEntry("/BackgroundColor", "#000000")));
    setGridColor(QColor(RS_SETTINGS->readEntry("/GridColor", "#7F7F7F")));
    setMetaGridColor(QColor(RS_SETTINGS->readEntry("/MetaGridColor", "#3F3F3F")));
    setSelectedColor(QColor(RS_SETTINGS->readEntry("/SelectedColor", "#A54747")));
	setHighlightedColor(QColor(RS_SETTINGS->readEntry("/HighlightedColor", "#739373")));
	setStartHandleColor(QColor(RS_SETTINGS->readEntry("/StartHandleColor", "#00FFFF")));
	setHandleColor(QColor(RS_SETTINGS->readEntry("/HandleColor", "#0000FF")));
	setEndHandleColor(QColor(RS_SETTINGS->readEntry("/EndHandleColor", "#0000FF")));

    RS_SETTINGS->endGroup();

    printPreview = false;

    QC_ApplicationWindow::getAppWindow()->setPreviousZoomEnable(false);
    //currentInsert = NULL;
}
Beispiel #4
0
/**
 * Constructor.
 */
RS_GraphicView::RS_GraphicView()
    : background(), foreground() {
    drawingMode = RS2::ModeFull;
    printing = false;
    deleteMode = false;
    factor = RS_Vector(1.0,1.0);
    offsetX = 0;
    offsetY = 0;
    previousFactor = RS_Vector(1.0,1.0);
    previousOffsetX = 0;
    previousOffsetY = 0;
    container = NULL;
    eventHandler = new RS_EventHandler(this);
    gridColor = Qt::gray;
    metaGridColor = RS_Color(64,64,64);
    grid = new RS_Grid(this);
    zoomFrozen = false;
    //gridVisible = true;
    draftMode = false;

    borderLeft = 0;
    borderTop = 0;
    borderRight = 0;
    borderBottom = 0;

    relativeZero = RS_Vector(false);
    relativeZeroLocked=false;

    mx = my = 0;

    RS_SETTINGS->beginGroup("/Appearance");
    setBackground(QColor(RS_SETTINGS->readEntry("/BackgroundColor", "#000000")));
    setGridColor(QColor(RS_SETTINGS->readEntry("/GridColor", "#7F7F7F")));
    setMetaGridColor(QColor(RS_SETTINGS->readEntry("/MetaGridColor", "#3F3F3F")));
    setSelectedColor(QColor(RS_SETTINGS->readEntry("/SelectedColor", "#A54747")));
    setHighlightedColor(QColor(RS_SETTINGS->readEntry("/HighlightedColor",
                                                      "#739373")));
    RS_SETTINGS->endGroup();

    printPreview = false;


    //currentInsert = NULL;
}
Beispiel #5
0
/**
 * Constructor.
 */
RS_GraphicView::RS_GraphicView(QWidget* parent, Qt::WindowFlags f)
    :QWidget(parent, f)
	,eventHandler{new RS_EventHandler{this}}
	,gridColor(Qt::gray)
	,metaGridColor{64, 64, 64}
	,grid{new RS_Grid{this}}
	,drawingMode(RS2::ModeFull)
	,savedViews(16)
	,previousViewTime(QDateTime::currentDateTime())
{
    RS_SETTINGS->beginGroup("Colors");
    setBackground(QColor(RS_SETTINGS->readEntry("/background", Colors::background)));
    setGridColor(QColor(RS_SETTINGS->readEntry("/grid", Colors::grid)));
    setMetaGridColor(QColor(RS_SETTINGS->readEntry("/meta_grid", Colors::meta_grid)));
    setSelectedColor(QColor(RS_SETTINGS->readEntry("/select", Colors::select)));
    setHighlightedColor(QColor(RS_SETTINGS->readEntry("/highlight", Colors::highlight)));
    setStartHandleColor(QColor(RS_SETTINGS->readEntry("/start_handle", Colors::start_handle)));
    setHandleColor(QColor(RS_SETTINGS->readEntry("/handle", Colors::handle)));
    setEndHandleColor(QColor(RS_SETTINGS->readEntry("/end_handle", Colors::end_handle)));
    RS_SETTINGS->endGroup();
}
Beispiel #6
0
void URLLabel::setHighlightedColor(const QString& highcolor)
{
    setHighlightedColor(QColor(highcolor));
}
Beispiel #7
0
void KUrlLabel::setHighlightedColor( const QString& color )
{
  setHighlightedColor( QColor( color ) );
}