AlbumShaper  1.0a3
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions
Shortcuts Class Reference

Shortcuts window widget. More...

#include <shortcuts.h>

Inheritance diagram for Shortcuts:
Inheritance graph
[legend]
Collaboration diagram for Shortcuts:
Collaboration graph
[legend]

List of all members.

Signals

void closed ()

Public Member Functions

 Shortcuts (QWidget *parent=0, const char *name=0)

Static Public Member Functions

static QString filename ()
 returns the shortcuts html filename
static void generateHTML (QTextStream::Encoding type, QString charSet)
 generates the shortcuts html file

Private Slots

void reject ()

Private Member Functions

void closeEvent (QCloseEvent *e)

Detailed Description

Shortcuts window widget.

Definition at line 22 of file dialogs/shortcuts.h.


Constructor & Destructor Documentation

Shortcuts::Shortcuts ( QWidget parent = 0,
const char *  name = 0 
)

Definition at line 27 of file dialogs/shortcuts.cpp.

References IMAGE_PATH, and TEMP_DIR.

                                                        : QDialog(parent,name)
{
  resize( 800, 550 );

  //--
  //Generate shortcuts HTML file
  
  //create/open xml file
  QFile* shortcutsFile = new QFile(TEMP_DIR + QString("/shortcuts.html") );;
  if(shortcutsFile->open(IO_WriteOnly))
  {
    //-----
    QTextStream stream( shortcutsFile );
    stream.setEncoding( QTextStream::Unicode );
    //-----
    stream << "<html><body>\n";   
    stream << "<table cellpadding='4'><tr>\n";
    stream << "  <td><img src='" << IMAGE_PATH << "miscImages/asHelpLogoSmall.png'></td>\n";
    stream << "  <td valign='middle'><font face='Arial, sans-serif' size='+3'>";
    stream << "<b>" << tr("Keyboard Shortcuts") << "</b></font></td>\n";
    stream << "</tr></table>\n";
    stream << "<p>\n";
    stream << "<font face='Arial, sans-serif'>\n";
    stream << "  <table width='100%' cellpadding='4' cellspacing='0'>\n";
    stream << "  <tr><td width='50%' bgcolor='lightgray'><b>" << tr("Action") << "</b></td>\n";
    stream << "  <td width='50%' bgcolor='lightgray'><b>" << tr("Shortcut") << "</b></td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  <tr><td colspan='2'><b><u>" << tr("Opening &amp; Saving") << "</u></b></td></tr>\n";
    stream << "  <tr><td>" << tr("New album") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_N)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Open album") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_O)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Open recent album") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL)) << "[" << 
                              ((QString)QKeySequence(Key_1)) << "-" <<
                              ((QString)QKeySequence(Key_9)) << "]" << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Save album") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_S)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Save album as") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(SHIFT+CTRL+Key_S)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Quit") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_Q)) << "</td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  <tr><td colspan='2'><hr></td></tr>\n";
    stream << "  <tr><td colspan='2'><b><u>" << tr("Organizing") << "</u></b></td></tr>\n";
    stream << "  <tr><td>" << tr("Move to the first photo in the collection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Home)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Move to the last photo in the collection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_End)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Select all photos") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_A)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Deselect all photos") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(SHIFT+CTRL+Key_A)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Rotate selected photos right") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_R)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Rotate selected photos left") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_L)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Delete selected photos") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Delete)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Modify selected photo description") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Enter)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Finish modifying selected photo description") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Escape)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Edit first of selected photos") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_E)) << "</td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  <tr><td colspan='2'><hr></td></tr>\n";
    stream << "  <tr><td colspan='2'><b><u>Editing</u></b></td></tr>\n";
    stream << "  <tr><td>" << tr("Go to previous photo") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_PageUp)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Go to next photo") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_PageDown)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Go to first photo in the collection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Home)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Go to last photo in the collection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_End)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Return to organizing") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Escape)) << "</td></tr>\n";
    stream << "  <!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "  <tr><td colspan='2'>&nbsp;</td></tr>\n";
    stream << "  <!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "  <tr><td>" << tr("Rotate photo left") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_L)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Rotate photo right") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_R)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Flip photo horizontally") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_F)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Flip photo vertically") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(ALT+CTRL+Key_F)) << "</td></tr>\n";
    stream << "  <!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "  <tr><td colspan='2'>&nbsp;</td></tr>\n";
    stream << "  <!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "  <tr><td>" << tr("Select all") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_A)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Deselect all") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(SHIFT+CTRL+Key_A)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Nudge selection left") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Left)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Nudge selection right") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Right)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Nudge selection up") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Up)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Nudge selection down") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Down)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Expand selection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Plus,Key_Equal)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Shrink selection") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Minus,Key_Underscore)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Resize selection") << "</td>\n";
    stream << "      <td>" << tr("Press and hold Shift, then Click and Drag Left / Right") << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Rotate selection") << "</td>\n";
    stream << "      <td>" << (QString(tr("Press and hold %1, then Click selection"))
                                     .arg( ((QString)QKeySequence(CTRL)) )) << "</td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  <tr><td colspan='2'><hr></td></tr>\n";
    stream << "  <tr><td colspan='2'><b><u>" << tr("Levels and Grain Editors") << "</u></b></td></tr>\n";
    stream << "  <tr><td>" << tr("Show alternative") << "</td>\n";
    stream << "      <td>" << QString(tr("Hold %1")).arg( ((QString)QKeySequence(CTRL)) ) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Apply") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Enter)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Cancel") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(Key_Escape)) << "</td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  <tr><td colspan='2'><hr></td></tr>\n";
    stream << "  <tr><td colspan='2'><b><u>" << tr("Miscellaneous") << "</u></b></td></tr>\n";
    stream << "  <tr><td>" << tr("View album statistics") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_I)) << "</td></tr>\n";
    stream << "  <tr><td>" << tr("Album Shaper help") << "</td>\n";
    stream << "      <td>" << ((QString)QKeySequence(CTRL+Key_Question)) << "</td></tr>\n";
    stream << "  <!-- -------------------------------------------------- -->\n";
    stream << "  </table>\n";
    stream << "</font>\n";
    stream << "</body></html>\n";
    shortcutsFile->close();
  }
  //--
  //set window title
  setCaption( tr("Album Shaper: Shortcuts"));
  //--
  //create shortcuts text browser
  QTextBrowser* content = new QTextBrowser( this );
  
  content->setHScrollBarMode( QScrollView::AlwaysOff );
  content->setVScrollBarMode( QScrollView::Auto );
  
//  content->setFrameStyle( QFrame::Panel | QFrame::Sunken );
  content->mimeSourceFactory()->setFilePath( QStringList(TEMP_DIR) );
  content->setSource( "shortcuts.html");
  //--
  //place handbook and close button in grid layout
  QGridLayout* grid = new QGridLayout( this, 2, 2, 0);
  grid->addMultiCellWidget( content, 0,0, 0,1 );
  grid->setColStretch( 0, 1 );
  grid->setRowStretch( 0, 1 );
  //--
  //PLATFORM_SPECIFIC_CODE - Close Button
#if (!defined(Q_OS_WIN) && !defined(Q_OS_MACX))
  QPushButton* closeButton = new QPushButton( tr("Close"), this );
  closeButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
  closeButton->setDefault(true);
  connect( closeButton, SIGNAL(clicked()), SLOT(close()) );
  grid->addWidget( closeButton, 1, 0, Qt::AlignCenter );
#endif  
  //--
}

Member Function Documentation

void Shortcuts::closed ( ) [signal]

Referenced by closeEvent(), and reject().

void Shortcuts::closeEvent ( QCloseEvent *  e) [private]

Definition at line 193 of file dialogs/shortcuts.cpp.

References closed().

{
  QWidget::closeEvent( e );
  emit closed();
}
QString Shortcuts::filename ( ) [static]

returns the shortcuts html filename

Definition at line 24 of file help/shortcuts.cpp.

References TEMP_DIR.

Referenced by generateHTML(), and HelpWindow::showCurrentPage().

{
  return QString("%1/shortcuts.html").arg(TEMP_DIR);
}
void Shortcuts::generateHTML ( QTextStream::Encoding  type,
QString  charSet 
) [static]

generates the shortcuts html file

Definition at line 29 of file help/shortcuts.cpp.

References filename(), and IMAGE_PATH.

Referenced by HelpWindow::HelpWindow().

{
  QString Control = "Ctrl";
  QString ControlPlus = "Ctrl+";
#if defined(Q_OS_MACX)
  Control = (QString(QChar(0x2318)));
  ControlPlus = Control;
#endif

  //create/open html file
  QFile file( filename() );
  if(file.open(IO_WriteOnly))
  {
    //-----
    QTextStream stream;
    stream.setEncoding( type );
    stream.setDevice( &file );
    //-----
    stream << "<html><head>\n";
    stream << "<meta http-equiv='Content-Type' content='text/html; charset=" << charSet << "'>\n";
    stream << "</head><body>\n";
    //-----
    stream << "<table cellpadding='4'><tr>\n";
    stream << "  <td><img src='" << IMAGE_PATH << "helpImages/asHelpLogoSmall.png'></td>\n";
    stream << "  <td valign='middle'><font face='Arial, sans-serif' size='+3'>";
    stream << HelpWindow::tr("Keyboard Shortcuts") << "</font></td>\n";
    stream << "</tr></table>\n";

    stream << "<font face='Arial, sans-serif'>\n";
    stream << "<table cellspacing='10' cellpadding='0'><tr><td>\n";
    
    stream << "<table width='100%' cellpadding='4' cellspacing='0'>\n";
    stream << "<tr><td width='50%' bgcolor='lightgray'><font size='+1'><b>" << HelpWindow::tr("Action") << "</font></b></td>\n";
    stream << "<td width='50%' bgcolor='lightgray'><font size='+1'><b>" << HelpWindow::tr("Shortcut") << "</font></b></td></tr>\n";
    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "<tr><td colspan='2'><font size='+1'><b><u>" << HelpWindow::tr("Opening &amp; Saving") << "</u></font></b></td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("New album") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_N)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Open album") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_O)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Open recent album") << "</td>\n";
    stream << "    <td>" << ControlPlus << "[1-9]" << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Save album") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_S)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Save album as") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_S)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Quit") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_Q)) << "</td></tr>\n";
    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "<tr><td colspan='2'><hr></td></tr>\n";
    stream << "<tr><td colspan='2'><font size='+1'><b><u>" << HelpWindow::tr("Organizing") << "</u></font></b></td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Move to the first photo in the collection") << "</td>\n";
    stream << "    <td> Home </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Move to the last photo in the collection") << "</td>\n";
    stream << "    <td> End </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Select all photos") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_A)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Deselect all photos") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_A)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Rotate selected photos right") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_R)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Rotate selected photos left") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_L)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Delete selected photos") << "</td>\n";
    stream << "    <td> Del </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Modify selected photo description") << "</td>\n";
    stream << "    <td> Enter </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Finish modifying selected photo description") << "</td>\n";
    stream << "    <td> Esc </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Edit first of selected photos") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_E)) << "</td></tr>\n";
    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "<tr><td colspan='2'><hr></td></tr>\n";
    stream << "<tr><td colspan='2'><font size='+1'><b><u>" << HelpWindow::tr("Editing") << "</u></font></b></td></tr>\n";

    stream << "<tr><td>" << HelpWindow::tr("Go to previous photo") << "</td>\n";
    stream << "    <td> PgUp </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Go to next photo") << "</td>\n";
    stream << "    <td> PgDown </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Go to first photo in the collection") << "</td>\n";
    stream << "    <td> Home </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Go to last photo in the collection") << "</td>\n";
    stream << "    <td> End </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Return to organizing") << "</td>\n";
    stream << "    <td> Esc </td></tr>\n";

    stream << "<!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "<tr><td colspan='2'>&nbsp;</td></tr>\n";
    stream << "<!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "<tr><td>" << HelpWindow::tr("Rotate photo right") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_R)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Rotate photo left") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_L)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Flip photo horizontally") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_F)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Flip photo vertically") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::ALT + Qt::CTRL + Qt::Key_F)) << "</td></tr>\n";
    stream << "<!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "<tr><td colspan='2'>&nbsp;</td></tr>\n";
    stream << "<!-- =-=-=-=-=-=-=-=-=-=-= -->\n";
    stream << "<tr><td>" << HelpWindow::tr("Select all") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_A)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Deselect all") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_A)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Nudge selection left") << "</td>\n";
    stream << "    <td>&larr;</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Nudge selection right") << "</td>\n";
    stream << "    <td>&rarr;</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Nudge selection up") << "</td>\n";
    stream << "    <td>&uarr;</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Nudge selection down") << "</td>\n";
    stream << "    <td>&darr;</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Expand selection") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::Key_Plus,Qt::Key_Equal)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Shrink selection") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::Key_Minus,Qt::Key_Underscore)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Resize selection") << "</td>\n";
    stream << "    <td>" << HelpWindow::tr("Press and hold Shift, then Click and Drag Left / Right") << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Rotate selection") << "</td>\n";
    stream << "    <td>" << (QString(HelpWindow::tr("Press and hold %1, then Click selection"))
                                     .arg( Control )) << "</td></tr>\n";
    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "<tr><td colspan='2'><hr></td></tr>\n";
    stream << "<tr><td colspan='2'><font size='+1'><b><u>" << HelpWindow::tr("Levels and Grain Editors") << "</u></font></b></td></tr>\n";

    stream << "<tr><td>" << HelpWindow::tr("Show alternative") << "</td>\n";
    stream << "    <td>" << QString(HelpWindow::tr("Hold %1")).arg( Control ) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Select entire luminosity/color range") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_A)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Apply") << "</td>\n";
    stream << "    <td> Enter </td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Cancel") << "</td>\n";
    stream << "    <td> Esc </td></tr>\n";

    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "<tr><td colspan='2'><hr></td></tr>\n";
    stream << "<tr><td colspan='2'><font size='+1'><b><u>" << HelpWindow::tr("Miscellaneous") << "</u></font></b></td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("View album statistics") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_I)) << "</td></tr>\n";
    stream << "<tr><td>" << HelpWindow::tr("Album Shaper help") << "</td>\n";
    stream << "    <td>" << ((QString)QKeySequence(Qt::CTRL + Qt::Key_Question)) << "</td></tr>\n";
    stream << "<!-- -------------------------------------------------- -->\n";
    stream << "</table>\n";
    
    stream << "</td></tr>\n";
    stream << "</table></font>\n";
    
    stream << "</body></html>\n";
    file.close();
  }
}
void Shortcuts::reject ( ) [private, slot]

Definition at line 199 of file dialogs/shortcuts.cpp.

References closed().

{
  QDialog::reject();
  emit closed();
}

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