This file is indexed.

/usr/include/gofigure2/QGoMainWindow.h is in libgofigure-dev 0.9.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
/*=========================================================================
 Authors: The GoFigure Dev. Team.
 at Megason Lab, Systems biology, Harvard Medical school, 2009-11

 Copyright (c) 2009-11, President and Fellows of Harvard College.
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice,
 this list of conditions and the following disclaimer.
 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.
 Neither the name of the  President and Fellows of Harvard College
 nor the names of its contributors may be used to endorse or promote
 products derived from this software without specific prior written
 permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

=========================================================================*/

#ifndef __QGoMainWindow_h
#define __QGoMainWindow_h

#include <QMainWindow>
#include <QDir>

// #include "itkImage.h"
// #include "itkImageToVTKImageFilter.h"

#include "itkQtProgressBar.h"
#include "itkQtAdaptor.h"

#include "GoFigureFileInfoMultiIndexContainerHelper.h"
#include "GoFigureGlobalDefinition.h"
#include "QGoAboutWidget.h"
#include "QGoDBInitializationWizard.h"
#include "QGoTabImageView3DwT.h"

class vtkImageData;

class vtkLSMReader;

class QGoWizardDB;
class QGoTabManager;
class QGoTabImageView3D;
class QGoTabImageView2D;
class QGoTabElementBase;
class QGoNetworkUtilities;

#include "ui_go.h"

/**
 * \class QGoMainWindow
 * \brief GoFigure2's main window
 * \image html QGoMainWindow.png
 * */
class QGoMainWindow:public QMainWindow,
  private Ui::go_mainwindow
{
  Q_OBJECT
public:
  friend class QGoTabManager;

//   typedef itk::Image< unsigned char, 3 > ImageType;
//   typedef itk::ImageToVTKImageFilter< ImageType > VTKConvertImageType;
//   typedef VTKConvertImageType::Pointer            VTKConvertImagePointer;

//   typedef itk::MultiFileReader::FILETYPE FILETYPE;

  explicit QGoMainWindow(QWidget *iParent = 0, Qt::WindowFlags iFlags = 0);
  ~QGoMainWindow();

  void SetSingleFileName(const QString & iFileName);

  void SetMaxNumberOfTraces( unsigned int iN );

private slots:
  void on_actionOpen_Single_File_triggered();

  void openRecentSingleFile();

//   void on_actionOpen_Multiple_Files_triggered( );
  void on_actionOpen_MegaCapture_Files_triggered();

  void openRecentMultipleFile();

  void openRecentDatabaseFile();

  void openRecentFilesfromDB();

  void on_actionGoFigure2_Website_triggered();

  void on_actionReport_a_bug_triggered();

  void on_actionUser_mailing_list_triggered();

  void on_actionDeveloper_mailing_list_triggered();

  void on_actionUse_DataBase_triggered();

  void openFilesfromDB();

  /**
  * \brief Open dialog window to set the file output path and format
  */
  void on_actionExport_LSM_to_MegaFile_triggered();

  void on_actionClose_triggered();

  void on_actionClose_all_triggered();

  void on_actionQuit_triggered();

  void on_actionAbout_triggered();

  void on_actionAbout_Qt_triggered();

  void SetUpDatabase();

  void on_actionCheck_For_Updates_triggered();

  void DisplayUpdateResults(QString result, bool noerror);

  void ApplyImageFilter();

  void tobedone(std::vector< vtkImageData * > );

  /**
  \brief remove the action 'Set up Database' from the Database menu.
  */
  void RemoveSetUpDatabaseMenu();

  /**
  \brief add the action 'Set up Database' to the Database menu if it doesn't
  have been already added.
  */
  void AddSetUpDatabaseMenu();

private:

  std::map< GoFigure::TabDimensionType, std::list< QAction * > >
  m_TabDimPluginActionMap;

  /** \brief */
  void openRecentFile(const bool & IsSerie);

  void DisplayFilesfromDB(std::string iFirst_Filename);

  /** \brief */
  void SetCurrentSingleFile(const QString & fileName);

  void SetCurrentMultiFile(const QString & fileName);

  void SetCurrentDatabaseFile(const QString & fileName);

  /** \brief */
  enum { MaxRecentFiles = 5 };
  QAction *recentSingleFileActions[MaxRecentFiles];
  QAction *recentMultipleFileActions[MaxRecentFiles];
  QAction *recentDatabaseFileActions[MaxRecentFiles];

  void UpdateRecentFileActions(QStringList list, QMenu * menu,
                               QAction * recentFileActions[MaxRecentFiles]);

   /**
    * \brief Create a new tab in the TabWidget for a 3DwT image from one megacapture
    * (from the database, or from the filesystem directly).
    * \param[in] iFileList    Megacapture files Container
    * \param[in] iFileType    Type of images
    * \param[in] iHeader      Megacapture header (*.meg)
    * \param[in] iTimePoint   Time point to show
    * \param[in] iUseDatabase Use the database
  */
  QGoTabImageView3DwT * CreateNewTabFor3DwtImage(
    const GoFigureFileInfoHelperMultiIndexContainer & iFileList,
    const GoFigure::FileType & iFileType,
    const std::string & iHeader,
    const int & iTimePoint,
    const bool & iUseDatabase);

  /**
   * \brief Create a new tab in the TabWidget for a 3DwT LSM file.
   * \param[in] iReader the vtkLSMReader to be duplicated
   * \param[in] iFile filename
  */
  QGoTabImageView3DwT * CreateNewTabFor3DwtImage(
    vtkLSMReader *iReader, const QString & iFile);

  QGoTabImageView3D * CreateNewTabFor3DImage(vtkImageData *, const QString &);

  QGoTabImageView2D * CreateNewTabFor2DImage(vtkImageData *, const QString &);

  /* \brief Open Image with given iFileName
  \param[in] iFileName  */
//   void OpenImageWithITK( const QString& iFileName );

  /** \brief Open LSM image
 * \param[in] iFile filename
 * \param[in] iTimePoint time point
 * */
  void OpenLSMImage(const QString & iFile, const int & iTimePoint);

  void SetupPluginsAndDockWidgetFromTab(QGoTabElementBase *iT);

  void SetUpGeneralMenusToolBars(QGoTabElementBase *iT);

  void SetUpMenusToolBarsFor3dwtImage(QGoTabImageView3DwT* iT);

  /** \brief get the file container and the header filename for one file
 * part of a megacapture imaging session
 * \param[in,out] ioHeader_Filename detected *.meg file
 * \param[in] iFirstFileName one file part of a megacapture imaging session
 * \return multi index container with all file names
 * */
  GoFigureFileInfoHelperMultiIndexContainer
  GetFileContainerForMultiFiles(
    std::string & ioHeader_Filename,
    std::string iFirstFileName);

  /**
   *
   */
  void LoadAllTracesFromDatabaseManager(const int & iT);

  /**
   *
   */
  //void LoadAllTracesFromDatabase(const int & iT, const std::string & iTrace);

  void LoadContoursFromDatabase(const int & iT );
  void LoadMeshesFromDatabase(const int & iT);
  void LoadTracksFromDatabase(const int & iT);

  /**
   * \brief Compute GoFigure file type from a given filename
   * \param[in] iFileName filename
   * \param[out] oFileType file type
   * \return true if (png, jpeg or tiff)
   * \return false else
   */
  bool ComputeFileType(const QString & iFileName, GoFigure::FileType & oFileType);

  void LoadPlugins();

  void PopulateMenus(QObject *plugin);

  void AddToMenu(QObject *, const QStringList &, QMenu *,
                 const char *, QActionGroup *);

  QMenu *                     m_FilteringMenu;
  QDir                        m_PluginsDir;
  QStringList                 m_PluginFileNames;
  QGoTabManager *             m_TabManager;
  QToolBar *                  m_ViewToolBar;
  QToolBar *                  m_ModeToolBar;
  QToolBar *                  m_TracesToolBar;
  QToolBar *                  m_TraceSettingsToolBar;
  std::list< vtkLSMReader * > m_LSMReader;
  QGoWizardDB *               m_DBWizard;
  QGoAboutWidget *            m_AboutWidget;
  QGoDBInitializationWizard * m_DBInitializationWizard;

  QGoNetworkUtilities *m_NetworkUtilities;
  bool                 m_ManualUpdate;

  /** \brief */
  void ReadSettings();

  /** \brief */
  void WriteSettings();

  void CreateSignalSlotsConnection();

  /** \brief */
  itk::QtSignalAdaptor m_SignalAdaptor;
  itk::QtProgressBar   m_Bar;

  /** \brief list of recent files */
  QStringList m_RecentSingleFiles;
  QStringList m_RecentMultipleFiles;
  QStringList m_RecentDatabaseFiles;
  bool        m_DatabaseSetUp;
  QAction *   actionSet_Up_Database;

  /** \brief current file name */
  QString m_CurrentFile;

  /** \brief Remove path from a given FileName*/
  QString strippedName(const QString & fullFileName);

private:
  unsigned int m_MaxNumberOfTraces;
  Q_DISABLE_COPY(QGoMainWindow);
};
#endif