# # # add_file "res/forms/workspace_floater.ui" # content [fcc18234e572f930fe1da8a69c86657da94c34e8] # # add_file "src/view/WorkspaceFloater.cpp" # content [dbb2bf13fded0166c04353ec395f94f1d3faa179] # # add_file "src/view/WorkspaceFloater.h" # content [5869b1d02385ee0b53a29af3acb665307d5854db] # ============================================================ --- res/forms/workspace_floater.ui fcc18234e572f930fe1da8a69c86657da94c34e8 +++ res/forms/workspace_floater.ui fcc18234e572f930fe1da8a69c86657da94c34e8 @@ -0,0 +1,261 @@ + + WorkspaceFloater + + + + 0 + 0 + 340 + 530 + + + + Form + + + + + + + 0 + 0 + + + + + + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is known and has no +committable changes + + + + + + + X + + + + + + + + 0 + 0 + + + + Item has changed contents + + + + + + + X + + + + + + + + 0 + 0 + + + + Item has changed attributes + + + + + + + X + + + + + + + + 0 + 0 + + + + Item has changed contents and attributes + + + + + + + X + + + + + + + + 0 + 0 + + + + Item has been added + + + + + + + X + + + + + + + + 0 + 0 + + + + Item has been dropped + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is part of a rename + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is ignored + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is unknown + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is missing + + + + + + + X + + + + + + + + 0 + 0 + + + + Item is invalid (file type on disk is different +from the recorded type) + + + + + + + + + + + + + ============================================================ --- src/view/WorkspaceFloater.cpp dbb2bf13fded0166c04353ec395f94f1d3faa179 +++ src/view/WorkspaceFloater.cpp dbb2bf13fded0166c04353ec395f94f1d3faa179 @@ -0,0 +1,51 @@ +/*************************************************************************** + * Copyright (C) 2007 by Thomas Keller * + * address@hidden * + * * + * 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. * + ***************************************************************************/ + +#include "WorkspaceFloater.h" +#include "IconProvider.h" + +WorkspaceFloater::WorkspaceFloater(QWidget * parent) : QDockWidget(parent) +{ + QWidget * parentWidget = new QWidget(this); + setupUi(parentWidget); + setWidget(parentWidget); + + IconProvider * icons = IconProvider::singleton(); + int width = 24, height = 24; + labelIconKnown->setPixmap(icons->getFileIcon("default").pixmap(width, height)); + labelIconContentsChanged->setPixmap(icons->getFileIcon("cont_changed").pixmap(width, height)); + labelIconAttributesChanged->setPixmap(icons->getFileIcon("attr_changed").pixmap(width, height)); + labelIconContentsAttributesChanged->setPixmap(icons->getFileIcon("cont_attr_changed").pixmap(width, height)); + labelIconAdded->setPixmap(icons->getFileIcon("added").pixmap(width, height)); + labelIconDropped->setPixmap(icons->getFileIcon("dropped").pixmap(width, height)); + labelIconRenamed->setPixmap(icons->getFileIcon("renamed").pixmap(width, height)); + labelIconIgnored->setPixmap(icons->getFileIcon("ignored").pixmap(width, height)); + labelIconUnknown->setPixmap(icons->getFileIcon("unknown").pixmap(width, height)); + labelIconMissing->setPixmap(icons->getFileIcon("missing").pixmap(width, height)); + labelIconInvalid->setPixmap(icons->getFileIcon("invalid").pixmap(width, height)); + + setWindowTitle(tr("Icon help")); + setFloating(true); + setVisible(false); + setAllowedAreas(Qt::NoDockWidgetArea); +} + +WorkspaceFloater::~WorkspaceFloater() {} + ============================================================ --- src/view/WorkspaceFloater.h 5869b1d02385ee0b53a29af3acb665307d5854db +++ src/view/WorkspaceFloater.h 5869b1d02385ee0b53a29af3acb665307d5854db @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (C) 2007 by Thomas Keller * + * address@hidden * + * * + * 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. * + ***************************************************************************/ + +#ifndef WORKSPACE_FLOATER_H +#define WORKSPACE_FLOATER_H + +#include + +#include "ui_workspace_floater.h" + +class WorkspaceFloater : public QDockWidget, private Ui::WorkspaceFloater +{ + Q_OBJECT +public: + WorkspaceFloater(QWidget *); + ~WorkspaceFloater(); +}; + +#endif