13 #include <q3textstream.h> 14 #include <qstringlist.h> 17 #include <qpushbutton.h> 19 #include <qsizegrip.h> 20 #include <qkeysequence.h> 23 #include <Q3GridLayout> 25 #include <QCloseEvent> 40 #include "../ALabel.h" 41 #include "../../config.h" 47 Q3TextStream::Encoding fileEncoding;
48 QString savingCharSet;
49 QString loadingCharSet;
52 #if defined(Q_OS_MACX) 53 fileEncoding = Q3TextStream::Unicode;
54 savingCharSet =
"utf16";
55 loadingCharSet =
"UTF-16";
58 #elif !defined(Q_WS_WIN) || (defined(Q_WS_WIN) && defined(UNICODE)) 59 fileEncoding = Q3TextStream::UnicodeUTF8;
60 savingCharSet =
"utf8";
61 loadingCharSet =
"UTF-8";
65 fileEncoding = Q3TextStream::Latin1;
66 savingCharSet =
"latin-1";
67 loadingCharSet =
"latin-1";
82 setPaletteBackgroundColor( QColor(255,255,255) );
85 setCaption( tr(
"Album Shaper Help"));
92 connect(
billboard, SIGNAL(pixmapRemoved()),
97 loadingMimeSource->setExtensionType(
"html",QString(
"text/html;charset=%1").arg(loadingCharSet) );
106 content->setHScrollBarMode( Q3ScrollView::Auto );
107 content->setVScrollBarMode( Q3ScrollView::Auto );
108 content->setFrameStyle( Q3Frame::NoFrame );
116 #if defined(Q_OS_MACX) || defined(Q_OS_WIN) 117 content->setCornerWidget(
new QSizeGrip(
this) );
123 Q3GridLayout* grid =
new Q3GridLayout(
this, 4, 3, 0);
124 grid->addMultiCellWidget(
billboard, 0,2, 0,0, Qt::AlignHCenter | Qt::AlignTop );
125 grid->addWidget( contents, 1,1 );
126 grid->addMultiCellWidget(
content, 0,2, 2,2 );
128 grid->setRowSpacing( 0, QMAX(
billboard->sizeHint().height() -
131 grid->setRowStretch( 1, 1 );
132 grid->setColStretch( 2, 1 );
135 #if (!defined(Q_OS_WIN) && !defined(Q_OS_MACX)) 136 QPushButton* closeButton =
new QPushButton( tr(
"Close"),
this );
137 closeButton->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
138 closeButton->setDefault(
true);
139 connect( closeButton, SIGNAL(clicked()), SLOT(close()) );
140 grid->addMultiCellWidget( closeButton, 3,3, 0,2, Qt::AlignCenter );
153 QWidget::closeEvent( e );
void setPixmap(const QPixmap &p)
animates setting an image
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
void showFirstSelection()
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
void removePixmap(bool forceImmediate=false)
animates removing an image
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
HELP_PAGE
Contents window widget.
QSize minimumSizeHint() const
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
static QString filename()
returns the html filename
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the shortcuts html file
void closeEvent(QCloseEvent *e)
static QString filename()
returns the html filename
static void generateHTML(Q3TextStream::Encoding type, QString charSet)
generates the html file
static QString filename()
returns the html filename
Q3MimeSourceFactory * loadingMimeSource
static QString filename()
returns the html filename
static QString filename()
returns the html filename
HelpWindow(QWidget *parent=0, const char *name=0)
static QString filename()
returns the shortcuts html filename
static QString filename()
returns the html filename
void setPage(HELP_PAGE page)
static QString filename()
returns the html filename
#define APPEAR_IMMEDIATELY