~stolowski/nux/merge-trunk

« back to all changes in this revision

Viewing changes to Nux/HSplitter.cpp

  • Committer: Michi Henning
  • Date: 2012-09-26 06:44:12 UTC
  • mto: This revision was merged to the branch mainline in revision 678.
  • Revision ID: michi.henning@canonical.com-20120926064412-rrr02nmxn5pe2g4p
Added -Wextra to compiler flags. Fixed a large number of warnings about unused parameters. Fixes #1056633.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    m_SplitConfig.clear();
76
76
  }
77
77
 
78
 
  void HSplitter::Draw(GraphicsEngine &graphics_engine, bool force_draw)
 
78
  void HSplitter::Draw(GraphicsEngine &graphics_engine, bool /* force_draw */)
79
79
  {
80
80
    graphics_engine.PushClippingRectangle(GetGeometry());
81
81
    Geometry base = GetGeometry();
179
179
    graphics_engine.PopClippingRectangle();
180
180
  }
181
181
 
182
 
  void HSplitter::PostDraw(GraphicsEngine &graphics_engine, bool force_draw)
 
182
  void HSplitter::PostDraw(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
183
183
  {
184
184
 
185
185
  }
420
420
    m_initial_config = true;
421
421
  }
422
422
 
423
 
  void HSplitter::OnSplitterMouseDown(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
423
  void HSplitter::OnSplitterMouseDown(int x, int y, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
424
424
  {
425
425
    m_point = Point(x, y);
426
426
 
432
432
    GetWindowThread()->RequestRedraw();
433
433
  }
434
434
 
435
 
  void HSplitter::OnSplitterMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
435
  void HSplitter::OnSplitterMouseUp(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
436
436
  {
437
437
    if (mvt_dy)
438
438
    {
462
462
    GetWindowThread()->RequestRedraw();
463
463
  }
464
464
 
465
 
  void HSplitter::OnSplitterMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
465
  void HSplitter::OnSplitterMouseDrag(int /* x */, int y, int /* dx */, int /* dy */, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
466
466
  {
467
467
    Geometry geo = m_SplitterObject[header_pos]->GetGeometry();
468
468
    int num_element = (int) m_SplitterObject.size();