KDevelop API Documentation

vcscolorsconfigwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Mario Scalas                                    *
00003  *   mario.scalas@libero.it                                                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef VCSCOLORSCONFIGWIDGET_H
00013 #define VCSCOLORSCONFIGWIDGET_H
00014 
00015 #include <qcolor.h>
00016 #include "vcscolorsconfigwidgetbase.h"
00017 
00018 class FileViewPart;
00019 
00020 struct VCSColors
00021 {
00022     VCSColors();
00023     VCSColors( const VCSColors &others );
00024     VCSColors &operator=( const VCSColors &others );
00025 
00026     QColor modified;
00027     QColor added;
00028     QColor updated;
00029     QColor sticky;
00030     QColor conflict;
00031     QColor needsPatch;
00032     QColor needsCheckout;
00033     QColor unknown;
00034     QColor defaultColor;
00035 };
00036 
00037 class VCSColorsConfigWidget : public VCSColorsConfigWidgetBase
00038 {
00039   Q_OBJECT
00040 
00041 public:
00042   VCSColorsConfigWidget( FileViewPart *part, const VCSColors &vcsColors,
00043       QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00044   virtual ~VCSColorsConfigWidget();
00045   /*$PUBLIC_FUNCTIONS$*/
00046 
00047   void getColors( VCSColors &vcsColors ) const;
00048   void setColors( const VCSColors &colors );
00049 
00050 public slots:
00051   /*$PUBLIC_SLOTS$*/
00052   // Store settings if the user gives the ok
00053   void slotAccept();
00054 
00055 
00056 protected:
00057   /*$PROTECTED_FUNCTIONS$*/
00058 
00059 protected slots:
00060   /*$PROTECTED_SLOTS$*/
00061 
00062 
00063 private:
00064     FileViewPart *m_part;
00065 };
00066 
00067 #endif
00068 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003