COPASI API  4.16.103
Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
CQIconResource Class Reference

#include <CQIconResource.h>

Public Types

enum  IconID {
  bars = 0, captureImage, checkMark, copasi,
  edit, editAdd, editCopy, editDelete,
  fileAdd, fileExport, fileNew, fileOpen,
  filePrint, fileSave, fileSaveas, isToS,
  locked, miriam, moveDown, moveUp,
  parameterConflict, parameterMissing, parameterModified, parameterObsolete,
  playerKill, playerPause, playerStart, playerStop,
  preferences, reactionModifier, reactionProduct, reactionSubstrate,
  renderMarkup, renderMathML, separator, slider,
  sToIs, table, tool, unlocked,
  zoomOut, play, pause, stop,
  backward, forward, skipBackward, skipForward,
  roll, viewmagMinus, viewmagPlus, viewmag1,
  viewmagfit, unknown, _size
}
 

Static Public Member Functions

static const QIcon & icon (const IconID &id)
 

Static Private Member Functions

static void init ()
 

Static Private Attributes

static QVector< QIcon > Icons
 
static bool needInit
 

Detailed Description

Definition at line 12 of file CQIconResource.h.

Member Enumeration Documentation

Enumerator
bars 
captureImage 
checkMark 
copasi 
edit 
editAdd 
editCopy 
editDelete 
fileAdd 
fileExport 
fileNew 
fileOpen 
filePrint 
fileSave 
fileSaveas 
isToS 
locked 
miriam 
moveDown 
moveUp 
parameterConflict 
parameterMissing 
parameterModified 
parameterObsolete 
playerKill 
playerPause 
playerStart 
playerStop 
preferences 
reactionModifier 
reactionProduct 
reactionSubstrate 
renderMarkup 
renderMathML 
separator 
slider 
sToIs 
table 
tool 
unlocked 
zoomOut 
play 
pause 
stop 
backward 
forward 
skipBackward 
skipForward 
roll 
viewmagMinus 
viewmagPlus 
viewmag1 
viewmagfit 
unknown 
_size 

Definition at line 15 of file CQIconResource.h.

16  {
17  bars = 0,
19  checkMark,
20  copasi,
21  edit,
22  editAdd,
23  editCopy,
24  editDelete,
25  fileAdd,
26  fileExport,
27  fileNew,
28  fileOpen,
29  filePrint,
30  fileSave,
31  fileSaveas,
32  isToS,
33  locked,
34  miriam,
35  moveDown,
36  moveUp,
41  playerKill,
44  playerStop,
51  separator,
52  slider,
53  sToIs,
54  table,
55  tool,
56  unlocked,
57  zoomOut,
58  play,
59  pause,
60  stop,
61  backward,
62  forward,
65  roll,
68  viewmag1,
69  viewmagfit,
70  // This is the default icon which is empty
71  unknown,
72  // This must be the last entry to automatically determine the size!
73  _size
74  };

Member Function Documentation

const QIcon & CQIconResource::icon ( const IconID id)
static

Definition at line 90 of file CQIconResource.cpp.

References _size, Icons, init(), and unknown.

Referenced by BandedGraphWidget::BandedGraphWidget(), CopasiSlider::CopasiSlider(), CopasiUI3Window::CopasiUI3Window(), CQAnimationControls::CQAnimationControls(), CQCrossSectionTaskWidget::CQCrossSectionTaskWidget(), CQExpressionMmlStackedWidget::CQExpressionMmlStackedWidget(), CQFittingItemWidget::CQFittingItemWidget(), CQLayoutMainWindow::CQLayoutMainWindow(), CQLayoutsWidget::CQLayoutsWidget(), CQNewMainWindow::CQNewMainWindow(), CQNotes::CQNotes(), CQReportDefinitionSelect::CQReportDefinitionSelect(), CQLayoutView::createActions(), CQPlayerControlWidget::createActions(), CopasiUI3Window::createActions(), CQNewMainWindow::createActions(), CQArrayAnnotationsWidget::createBarChart(), createControl(), CScanWidgetRandom::CScanWidgetRandom(), CScanWidgetScan::CScanWidgetScan(), Curve2DWidget::Curve2DWidget(), CQParameterOverviewDM::diffData(), HistoWidget::HistoWidget(), CQMoietiesTaskResult::init(), CQAnimationWindow::init(), SensitivitiesWidget::init(), CQProgressDialog::init(), CUpDownSubwidget::init(), CQEventWidget1::init(), SliderSettingsDialog::init(), CQExperimentData::init(), PlotWindow::PlotWindow(), SliderDialog::SliderDialog(), CQPlayerControlWidget::slot_pause_clicked(), CQPlayerControlWidget::slot_play_clicked(), CQAnimationControls::slotStop(), CQAnimationWindow::slotStopLayout(), CQNotes::slotToggleMode(), CQAnimationControls::slotTogglePlayPause(), CQNotes::slotValidateXML(), CQArrayAnnotationsWidget::switchToBarChart(), CQArrayAnnotationsWidget::switchToTable(), CQAnimationWindow::toggleUI(), CQPlayerControlWidget::updateButtons(), and ParameterTable::updateTable().

91 {
92  init();
93 
94  if (id < _size)
95  return Icons[id];
96 
97  return Icons[unknown];
98 }
static void init()
static QVector< QIcon > Icons
void CQIconResource::init ( )
staticprivate

Definition at line 24 of file CQIconResource.cpp.

References _size, backward, bars, captureImage, checkMark, copasi, edit, editAdd, editCopy, editDelete, fileAdd, fileExport, fileNew, fileOpen, filePrint, fileSave, fileSaveas, forward, Icons, isToS, locked, miriam, moveDown, moveUp, needInit, parameterConflict, parameterMissing, parameterModified, parameterObsolete, pause, play, playerKill, playerPause, playerStart, playerStop, preferences, reactionModifier, reactionProduct, reactionSubstrate, renderMarkup, renderMathML, roll, separator, skipBackward, skipForward, slider, sToIs, stop, table, tool, unlocked, viewmag1, viewmagfit, viewmagMinus, viewmagPlus, and zoomOut.

Referenced by icon().

25 {
26  if (!needInit) return;
27 
28  Q_INIT_RESOURCE(copasi);
29 
30  Icons.resize(_size);
31 
32  Icons[bars].addFile(QString::fromUtf8(":/images/bars.png"), QSize(), QIcon::Normal, QIcon::Off);
33  Icons[captureImage].addFile(QString::fromUtf8(":/images/captureImage.png"), QSize(), QIcon::Normal, QIcon::On);
34  Icons[copasi].addFile(QString::fromUtf8(":/images/copasi.png"), QSize(), QIcon::Normal, QIcon::On);
35  Icons[checkMark].addFile(QString::fromUtf8(":/images/checkMark.png"), QSize(), QIcon::Normal, QIcon::On);
36  Icons[edit].addFile(QString::fromUtf8(":/images/edit.png"), QSize(), QIcon::Normal, QIcon::On);
37  Icons[editAdd].addFile(QString::fromUtf8(":/images/editAdd.png"), QSize(), QIcon::Normal, QIcon::On);
38  Icons[editCopy].addFile(QString::fromUtf8(":/images/editCopy.png"), QSize(), QIcon::Normal, QIcon::On);
39  Icons[editDelete].addFile(QString::fromUtf8(":/images/editDelete.png"), QSize(), QIcon::Normal, QIcon::On);
40  Icons[fileAdd].addFile(QString::fromUtf8(":/images/fileAdd.png"), QSize(), QIcon::Normal, QIcon::On);
41  Icons[fileExport].addFile(QString::fromUtf8(":/images/fileExport.png"), QSize(), QIcon::Normal, QIcon::On);
42  Icons[fileNew].addFile(QString::fromUtf8(":/images/fileNew.png"), QSize(), QIcon::Normal, QIcon::On);
43  Icons[fileOpen].addFile(QString::fromUtf8(":/images/fileOpen.png"), QSize(), QIcon::Normal, QIcon::On);
44  Icons[filePrint].addFile(QString::fromUtf8(":/images/filePrint.png"), QSize(), QIcon::Normal, QIcon::On);
45  Icons[fileSave].addFile(QString::fromUtf8(":/images/fileSave.png"), QSize(), QIcon::Normal, QIcon::On);
46  Icons[fileSaveas].addFile(QString::fromUtf8(":/images/fileSaveas.png"), QSize(), QIcon::Normal, QIcon::On);
47  Icons[isToS].addFile(QString::fromUtf8(":/images/isToS.png"), QSize(), QIcon::Normal, QIcon::On);
48  Icons[locked].addFile(QString::fromUtf8(":/images/locked.png"), QSize(), QIcon::Normal, QIcon::On);
49  Icons[miriam].addFile(QString::fromUtf8(":/images/miriam.png"), QSize(), QIcon::Normal, QIcon::On);
50  Icons[moveDown].addFile(QString::fromUtf8(":/images/moveDown.png"), QSize(), QIcon::Normal, QIcon::On);
51  Icons[moveUp].addFile(QString::fromUtf8(":/images/moveUp.png"), QSize(), QIcon::Normal, QIcon::On);
52  Icons[parameterConflict].addFile(QString::fromUtf8(":/images/parameterConflict.png"), QSize(), QIcon::Normal, QIcon::On);
53  Icons[parameterMissing].addFile(QString::fromUtf8(":/images/parameterMissing.png"), QSize(), QIcon::Normal, QIcon::On);
54  Icons[parameterModified].addFile(QString::fromUtf8(":/images/parameterModified.png"), QSize(), QIcon::Normal, QIcon::On);
55  Icons[parameterObsolete].addFile(QString::fromUtf8(":/images/parameterObsolete.png"), QSize(), QIcon::Normal, QIcon::On);
56  Icons[playerKill].addFile(QString::fromUtf8(":/images/playerKill.png"), QSize(), QIcon::Normal, QIcon::On);
57  Icons[playerPause].addFile(QString::fromUtf8(":/images/playerPause.png"), QSize(), QIcon::Normal, QIcon::On);
58  Icons[playerStart].addFile(QString::fromUtf8(":/images/playerStart.png"), QSize(), QIcon::Normal, QIcon::On);
59  Icons[playerStop].addFile(QString::fromUtf8(":/images/playerStop.png"), QSize(), QIcon::Normal, QIcon::On);
60  Icons[preferences].addFile(QString::fromUtf8(":/images/preferences.png"), QSize(), QIcon::Normal, QIcon::On);
61  Icons[reactionModifier].addFile(QString::fromUtf8(":/images/reactionModifier.png"), QSize(), QIcon::Normal, QIcon::On);
62  Icons[reactionProduct].addFile(QString::fromUtf8(":/images/reactionProduct.png"), QSize(), QIcon::Normal, QIcon::On);
63  Icons[reactionSubstrate].addFile(QString::fromUtf8(":/images/reactionSubstrate.png"), QSize(), QIcon::Normal, QIcon::On);
64  Icons[renderMarkup].addFile(QString::fromUtf8(":/images/renderMarkup.png"), QSize(), QIcon::Normal, QIcon::On);
65  Icons[renderMathML].addFile(QString::fromUtf8(":/images/renderMathML.png"), QSize(), QIcon::Normal, QIcon::On);
66  Icons[separator].addFile(QString::fromUtf8(":/images/separator.png"), QSize(), QIcon::Normal, QIcon::On);
67  Icons[slider].addFile(QString::fromUtf8(":/images/slider.png"), QSize(), QIcon::Normal, QIcon::On);
68  Icons[sToIs].addFile(QString::fromUtf8(":/images/sToIs.png"), QSize(), QIcon::Normal, QIcon::On);
69  Icons[table].addFile(QString::fromUtf8(":/images/table.png"), QSize(), QIcon::Normal, QIcon::On);
70  Icons[tool].addFile(QString::fromUtf8(":/images/tool.png"), QSize(), QIcon::Normal, QIcon::On);
71  Icons[unlocked].addFile(QString::fromUtf8(":/images/unlocked.png"), QSize(), QIcon::Normal, QIcon::On);
72  Icons[zoomOut].addFile(QString::fromUtf8(":/images/zoomOut.png"), QSize(), QIcon::Normal, QIcon::On);
73  Icons[play].addFile(QString::fromUtf8(":/images/media-playback-start.png"), QSize(), QIcon::Normal, QIcon::On);
74  Icons[pause].addFile(QString::fromUtf8(":/images/media-playback-pause.png"), QSize(), QIcon::Normal, QIcon::On);
75  Icons[stop].addFile(QString::fromUtf8(":/images/media-playback-stop.png"), QSize(), QIcon::Normal, QIcon::On);
76  Icons[backward].addFile(QString::fromUtf8(":/images/media-seek-backward.png"), QSize(), QIcon::Normal, QIcon::On);
77  Icons[forward].addFile(QString::fromUtf8(":/images/media-seek-forward.png"), QSize(), QIcon::Normal, QIcon::On);
78  Icons[skipBackward].addFile(QString::fromUtf8(":/images/media-skip-backward.png"), QSize(), QIcon::Normal, QIcon::On);
79  Icons[skipForward].addFile(QString::fromUtf8(":/images/media-skip-forward.png"), QSize(), QIcon::Normal, QIcon::On);
80  Icons[roll].addFile(QString::fromUtf8(":/images/roll.png"), QSize(), QIcon::Normal, QIcon::On);
81  Icons[viewmagMinus].addFile(QString::fromUtf8(":/images/viewmagMinus.png"), QSize(), QIcon::Normal, QIcon::On);
82  Icons[viewmagPlus].addFile(QString::fromUtf8(":/images/viewmagPlus.png"), QSize(), QIcon::Normal, QIcon::On);
83  Icons[viewmag1].addFile(QString::fromUtf8(":/images/viewmag1.png"), QSize(), QIcon::Normal, QIcon::On);
84  Icons[viewmagfit].addFile(QString::fromUtf8(":/images/viewmagfit.png"), QSize(), QIcon::Normal, QIcon::On);
85 
86  needInit = false;
87 }
static QVector< QIcon > Icons
static bool needInit

Member Data Documentation

QVector< QIcon > CQIconResource::Icons
staticprivate

Definition at line 81 of file CQIconResource.h.

Referenced by icon(), and init().

bool CQIconResource::needInit
staticprivate

Definition at line 82 of file CQIconResource.h.

Referenced by init().


The documentation for this class was generated from the following files: