~ubuntu-branches/ubuntu/wily/kid3/wily

« back to all changes in this revision

Viewing changes to src/gui/forms/kid3form.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell, Patrick Matthäi, Mark Purcell
  • Date: 2013-11-30 15:44:59 UTC
  • mfrom: (1.1.16) (2.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20131130154459-s6lpalx8yy2zq7gx
Tags: 3.0.2-1
* New upstream release 

[ Patrick Matthäi ]
* New upstream release.
  - Add new libreadline-dev build dependency.
* Don't explicitly request xz compression - dpkg 1.17 does this by default.
* Bump Standards-Version to 3.9.5 (no changes needed).
* Fix Vcs-Browser control field.

[ Mark Purcell ]
* Switch to dh - reduce debian/rules bloat
* kid3 Replaces kid3-qt - low popcon, reduce archive bloat
* Fix vcs-field-not-canonical
* debian/compat -> 9
* Update Description:

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
class FileList;
49
49
class DirList;
50
50
class PictureLabel;
51
 
class Kid3MainWindow;
52
 
class ShortcutsModel;
 
51
class BaseMainWindowImpl;
53
52
 
54
53
/**
55
54
 * Main widget.
63
62
   * Constructs an Id3Form as a child of 'parent', with the
64
63
   * name 'name' and widget flags set to 'f'.
65
64
   * @param app application
 
65
   * @param mainWin main window
66
66
   * @param parent parent widget
67
67
   */
68
 
  explicit Kid3Form(Kid3Application* app, QWidget* parent = 0);
 
68
  Kid3Form(Kid3Application* app, BaseMainWindowImpl* mainWin,
 
69
           QWidget* parent = 0);
69
70
 
70
71
  /**
71
72
   * Destructor.
196
197
   */
197
198
  FrameTable* frameTableV2() { return m_framesV2Table; }
198
199
 
199
 
#ifndef CONFIG_USE_KDE
200
 
  /**
201
 
   * Init actions.
202
 
   */
203
 
  void initActions();
204
 
#endif
205
 
 
206
200
public slots:
207
201
  /**
208
202
   * Frame list button Edit.
283
277
  void selectAllInDirectory();
284
278
 
285
279
  /**
 
280
   * Set the next file as the current file.
 
281
   *
 
282
   * @param select true to select the file
 
283
   *
 
284
   * @return true if a next file exists.
 
285
   */
 
286
  bool nextFile(bool select = true);
 
287
 
 
288
  /**
 
289
   * Set the previous file as the current file.
 
290
   *
 
291
   * @param select true to select the file
 
292
   *
 
293
   * @return true if a previous file exists.
 
294
   */
 
295
  bool previousFile(bool select = true);
 
296
 
 
297
  /**
286
298
   * Set the root index of the directory and file lists.
287
299
   *
288
300
   * @param directoryIndex root index of directory in file system model
289
 
   * @param fileIndex index of file to select
 
301
   * @param fileIndexes indexes of files to select
290
302
   */
291
 
  void setDirectoryIndex(const QModelIndex& directoryIndex,
292
 
                         const QModelIndex& fileIndex);
 
303
  void setDirectoryIndex(const QPersistentModelIndex& directoryIndex,
 
304
                         const QList<QPersistentModelIndex>& fileIndexes);
293
305
 
294
306
private:
295
307
  /**
303
315
            const FormatConfig* fcfg);
304
316
 
305
317
  /**
306
 
   * Shortcut for pointer to parent main window.
307
 
   * @return main window.
 
318
   * Get frame table which is currently in editing state.
 
319
   * The returned frame table can be used to restore the editing state after
 
320
   * changing the current file.
 
321
   * @return frame table which is in editing state, 0 if none.
308
322
   */
309
 
  Kid3MainWindow* mainWin() const { return (Kid3MainWindow*)parentWidget(); }
310
 
 
311
 
#ifndef CONFIG_USE_KDE
312
 
  void initAction(const QString& text, const QString& name,
313
 
                  const QObject* receiver, const char* slot,
314
 
                  const QString& context, ShortcutsModel* shortcutsModel);
315
 
#endif
 
323
  FrameTable* getEditingFrameTable() const;
316
324
 
317
325
  FileList* m_fileListBox;
318
326
  QComboBox* m_formatComboBox;
338
346
  QWidget* m_rightHalfVBox;
339
347
  PictureLabel* m_pictureLabel;
340
348
  Kid3Application* m_app;
 
349
  BaseMainWindowImpl* m_mainWin;
341
350
 
342
351
  /** Collapse pixmap, will be allocated in constructor */
343
352
  static QPixmap* s_collapsePixmap;