~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to clientgui/ViewResources.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// To view the GNU Lesser General Public License visit
16
16
// http://www.gnu.org/copyleft/lesser.html
17
17
// or write to the Free Software Foundation, Inc.,
18
 
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 
20
20
#if defined(__GNUG__) && !defined(__APPLE__)
21
21
#pragma implementation "ViewResources.h"
47
47
CViewResources::CViewResources(wxNotebook* pNotebook) :  
48
48
        CBOINCBaseView(pNotebook)
49
49
{
50
 
        // generate using:
51
 
    // http://wellstyled.com/tools/colorscheme2/index-en.html
52
 
    // (tetrad, light pastel, 60 deg base)
53
 
 
54
 
        m_aProjectColours.Add(COLOR(0xFFE6BF));
55
 
        m_aProjectColours.Add(COLOR(0xBFCFFF));
56
 
        m_aProjectColours.Add(COLOR(0xFFBFEF));
57
 
        m_aProjectColours.Add(COLOR(0xE6FFBF));
58
 
        m_aProjectColours.Add(COLOR(0xBF9960));
59
 
        m_aProjectColours.Add(COLOR(0x6078BF));
60
 
        m_aProjectColours.Add(COLOR(0xBF60A7));
61
 
        m_aProjectColours.Add(COLOR(0x99BF60));
62
 
        m_aProjectColours.Add(COLOR(0xFFF5E6));
63
 
        m_aProjectColours.Add(COLOR(0xE6ECFF));
64
 
        m_aProjectColours.Add(COLOR(0xFFE6F9));
65
 
        m_aProjectColours.Add(COLOR(0xF5FFE6));
66
 
        m_aProjectColours.Add(COLOR(0xFFCC80));
67
 
        m_aProjectColours.Add(COLOR(0x809FFF));
68
 
        m_aProjectColours.Add(COLOR(0xFF80DF));
69
 
        m_aProjectColours.Add(COLOR(0xCCFF80));
70
 
 
71
50
        m_BOINCwasEmpty=false;
72
51
 
73
52
        wxGridSizer* itemGridSizer = new wxGridSizer(2, 0, 3);
227
206
                                wxPiePart part;
228
207
                                part.SetLabel(projectname + wxT(" - ") + diskspace);
229
208
                                part.SetValue(usage);
230
 
                                part.SetColour(m_aProjectColours[i % m_aProjectColours.size()]);
 
209
                unsigned char r=128+(rand()&127);
 
210
                unsigned char g=128+(rand()&127);
 
211
                unsigned char b=128+(rand()&127);
 
212
                part.SetColour(wxColour(r, g, b));
231
213
                                m_pieCtrlBOINC->m_Series.Add(part);
232
214
                        }
233
215
                        m_pieCtrlBOINC->Refresh();
313
295
    return 0;
314
296
}
315
297
 
316
 
const char *BOINC_RCSID_5a37b46a6e = "$Id: ViewResources.cpp 13186 2007-07-19 01:26:39Z charlief $";
 
298
const char *BOINC_RCSID_5a37b46a6e = "$Id: ViewResources.cpp 14137 2007-11-11 20:18:27Z davea $";