~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/api/ihistorytool.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <wx/menu.h>
19
19
#include <wx/aui/auibar.h>
20
20
#include <main/gui/toolsystem/wxmenuitemtool.h>
 
21
#include <api/controllers/ihistorycontroller.h>
21
22
 
22
23
#include "ihistorytool.h"
23
24
namespace GNC {
102
103
{
103
104
        pMenu->Append(new HistoryToolMenuItem(pParent,wxString::FromUTF8(Description.c_str()),pMenu,this));
104
105
}
 
106
 
 
107
bool GNC::GCS::IHistoryTool::AreSeriesFullyDownloaded(const std::list<long>& seriesPk)
 
108
{
 
109
        for (std::list<long>::const_iterator it = seriesPk.begin(); it != seriesPk.end(); ++it)
 
110
        {
 
111
                if (GNC::GCS::IHistoryController::Instance()->GetSeriesModel((*it)).location == GNC::GCS::IHistoryController::TL_WadoLinked) {
 
112
                        return false;
 
113
                }
 
114
        }
 
115
        return true;
 
116
}
 
117
 
 
118
//ignore series by default...
 
119
void GNC::GCS::IHistoryTool::Execute(const std::list<long>& /*seriesPk*/)
 
120
{
 
121
        Execute();
 
122
}