addToolBar( toolbar, "Toolbar" );
QToolButton* button;
// --> back
- button = new QToolButton( QIconSet( (const char**)back ),
+ button = new QToolButton( QIconSet( (const char**)_img_back ),
tr( "Backward" ),
"",
browser,
button->setEnabled( FALSE );
connect( browser, SIGNAL( backwardAvailable( bool ) ), button, SLOT( setEnabled( bool ) ) );
// --> forward
- button = new QToolButton( QIconSet( (const char**)forward ),
+ button = new QToolButton( QIconSet( (const char**)_img_forward ),
tr( "Forward" ),
"",
browser,
button->setEnabled( FALSE );
connect( browser, SIGNAL( forwardAvailable( bool ) ), button, SLOT( setEnabled( bool ) ) );
// --> home
- button = new QToolButton( QIconSet( (const char**)home ),
+ button = new QToolButton( QIconSet( (const char**)_img_home ),
tr( "Home" ),
"",
browser,
SLOT( home() ),
toolbar );
toolbar->addSeparator();
+ button = new QToolButton( QIconSet( (const char**)_img_close ),
+ tr( "Close" ),
+ "",
+ this,
+ SLOT( close() ),
+ toolbar );
+ toolbar->addSeparator();
// --> logo
QLabel* logo = new QLabel( toolbar, "logo" );
logo->setPixmap( QPixmap( (const char**)image1_data ) );
{
}
// ================================================================
+/*!
+ * HelpWindow::keyPressEvent
+ * Key press event handler
+ */
+// ================================================================
+void HelpWindow::keyPressEvent( QKeyEvent* e )
+{
+ if ( e->key() == Key_Escape )
+ close();
+ QMainWindow::keyPressEvent( e );
+}
+// ================================================================
/*!
* HelpWindow::openHelp [ static ]
* Creates Help window ane return pointer to it if help file exists,
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"};
-static const char* const back[]={
+static const char* const _img_back[]={
"16 16 5 1",
"# c #000000",
"a c #ffffff",
"................",
"......................"};
-static const char* const forward[]={
+static const char* const _img_forward[]={
"16 16 5 1",
"# c #000000",
"a c #ffffff",
"................",
"................"};
-static const char* const home[]={
+static const char* const _img_home[]={
"16 16 4 1",
"# c #000000",
"a c #ffffff",
"..#####.######..",
"................"};
+static const char* const _img_close[]={
+"16 16 3 1",
+". c None",
+"# c #800000",
+"a c #ffffff",
+"................",
+"................",
+".##a........##a.",
+".####a.....##a..",
+"..####a...##a...",
+"....###a.#a.....",
+".....#####a.....",
+"......###a......",
+".....#####a.....",
+"....###a.##a....",
+"...###a...##a...",
+"..###a.....#a...",
+"..###a......#a..",
+"...#a........#a.",
+"................",
+"................"};
+
static const char* const image1_data[] = {
"54 20 415 2",
"bH c #004f87",