ashukla
28th October 2007, 12:10
Hi All!
I am creating help for my application in this I am using QAssistantClient. I want to open a Dialog Box when index value have a more than one help for particular index value. What can I do for populating dialog box and linking its value to corresponding html files.
QAssistantClient *assistantClient;
QAction *assistantAct;
QAction *exitAct;
QAction *aboutQtAct;
void initializeAssistant()
{
assistantClient = new QAssistantClient(QLibraryInfo::location(QLibraryIn fo::BinariesPath), this);
QStringList arguments;
arguments << "-profile" << QString("Help") + QDir::separator() + QString("VistaHelp.adp");
assistantClient->setArguments(arguments);
}
void createActions()
{
assistantAct = new QAction(tr("Help Contents"), this);
assistantAct->setShortcut(tr("F1"));
connect(assistantAct, SIGNAL(triggered()), this, SLOT(assistant()));
exitAct = new QAction(tr("E&xit"), this);
exitAct->setShortcut(tr("Ctrl+Q"));
connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
aboutQtAct = new QAction(tr("About &Qt"), this);
connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
}
I am creating VistaHelp.adf file like this;
<!DOCTYPE DCF>
<assistantconfig version="3.2.0">
<profile>
<property name="name">vistaPenguinHelp</property>
<property name="title">VistaPenguin Help</property>
<property name="applicationicon">images/handbook.png</property>
<property name="startpage">/root/Desktop/Help/Images/index.html</property>
<property name="aboutmenutext">About Simple Text Viewer</property>
<property name="abouturl">about.txt</property>
<property name="assistantdocs">.</property>
</profile>
<DCF ref="index.html" icon="images/handbook.png" title="Getting Started">
<section ref="./findfile.html" title="Vista Home Page">
<keyword ref="../Help/help/createplaylist.html">Add</keyword>
<keyword ref="/root/Desktop/Help/help/usermanager.html">Administrator</keyword>
<keyword ref="/root/Desktop/Help/help/usermanager.html">Advance</keyword>
<keyword ref="./findfile.html">Antena</keyword>
<keyword ref="./filedialog.html">Browse</keyword>
<keyword ref="./filedialog.html">Change Password</keyword>
<keyword ref="./wildcardmatching.html">Composite</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/createplaylist.html">Create Playlist</keyword>
<keyword ref="./wildcardmatching.html">Delete</keyword>
<keyword ref="./browse.html">Duplicate</keyword>
<keyword ref="./browse.html">Editing</keyword>
<keyword ref="./openfile.html">Hardware</keyword>
<keyword ref="./openfile.html">HTML</keyword>
<keyword ref="./index.html">Install</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/layout.html">Layout Manager</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/helpmanual/tv.html">Live Audio Video</keyword>
<keyword ref="./index.html">Login Window</keyword>
<keyword ref="./index.html">Main Window</keyword>
<keyword ref="./index.html">Media</keyword>
<keyword ref="./index.html">New</keyword>
<keyword ref="./index.html">NTSE</keyword>
<keyword ref="./index.html">PAL</keyword>
<keyword ref="./index.html">Password</keyword>
<keyword ref="./index.html">Play</keyword>
<keyword ref="./index.html">Play time</keyword>
<keyword ref="./index.html">Preview</keyword>
<keyword ref="./index.html">Remove</keyword>
<keyword ref="./index.html">Schedule Playlist</keyword>
<keyword ref="./index.html">Scheduling</keyword>
<keyword ref="./index.html">Screen</keyword>
<keyword ref="./index.html">Search</keyword>
<keyword ref="./index.html">Select All</keyword>
<keyword ref="./index.html">Software</keyword>
<keyword ref="./index.html">Sort</keyword>
<keyword ref="./index.html">Standard</keyword>
<keyword ref="./index.html">Template</keyword>
<keyword ref="./index.html">TV-Tunner</keyword>
<keyword ref="./index.html">Uninstall</keyword>
<keyword ref="/root/Desktop/Help/help/upload.html">Upload Contents</keyword>
<keyword ref="./index.html">URL</keyword>
<keyword ref="./index.html">User Manager</keyword>
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Installing VistaPenguing">
<section ref="./findfile.html" title="Hardware and Software Requiremens">
</section>
<section ref="./findfile.html" title="Prepare and Installing Vista">
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Using VistaPenguin SE-DSS">
<section ref="./findfile.html" title="Starting VistaPenguin SE-DSS">
</section>
<section ref="./findfile.html" title="Step by Step guide">
<section ref="./filedialog.html" title="Step 1 - Upload Contents" />
<section ref="./wildcardmatching.html" title="Step 2 - Create Playlist" />
<section ref="./browse.html" title="Step 3 - Schedule Playlist" />
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Administration">
<section ref="./findfile.html" title="UserManagement">
<section ref="./wildcardmatching.html" title="Managing Users" />
<section ref="./browse.html" title="Changing Password" />
</section>
<section ref="./findfile.html" title="Screen Layout Management">
<section ref="./wildcardmatching.html" title="Managing Screen Templates" />
</section>
</DCF>
</assistantconfig>
Thanks in advance!
I am creating help for my application in this I am using QAssistantClient. I want to open a Dialog Box when index value have a more than one help for particular index value. What can I do for populating dialog box and linking its value to corresponding html files.
QAssistantClient *assistantClient;
QAction *assistantAct;
QAction *exitAct;
QAction *aboutQtAct;
void initializeAssistant()
{
assistantClient = new QAssistantClient(QLibraryInfo::location(QLibraryIn fo::BinariesPath), this);
QStringList arguments;
arguments << "-profile" << QString("Help") + QDir::separator() + QString("VistaHelp.adp");
assistantClient->setArguments(arguments);
}
void createActions()
{
assistantAct = new QAction(tr("Help Contents"), this);
assistantAct->setShortcut(tr("F1"));
connect(assistantAct, SIGNAL(triggered()), this, SLOT(assistant()));
exitAct = new QAction(tr("E&xit"), this);
exitAct->setShortcut(tr("Ctrl+Q"));
connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
aboutQtAct = new QAction(tr("About &Qt"), this);
connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
}
I am creating VistaHelp.adf file like this;
<!DOCTYPE DCF>
<assistantconfig version="3.2.0">
<profile>
<property name="name">vistaPenguinHelp</property>
<property name="title">VistaPenguin Help</property>
<property name="applicationicon">images/handbook.png</property>
<property name="startpage">/root/Desktop/Help/Images/index.html</property>
<property name="aboutmenutext">About Simple Text Viewer</property>
<property name="abouturl">about.txt</property>
<property name="assistantdocs">.</property>
</profile>
<DCF ref="index.html" icon="images/handbook.png" title="Getting Started">
<section ref="./findfile.html" title="Vista Home Page">
<keyword ref="../Help/help/createplaylist.html">Add</keyword>
<keyword ref="/root/Desktop/Help/help/usermanager.html">Administrator</keyword>
<keyword ref="/root/Desktop/Help/help/usermanager.html">Advance</keyword>
<keyword ref="./findfile.html">Antena</keyword>
<keyword ref="./filedialog.html">Browse</keyword>
<keyword ref="./filedialog.html">Change Password</keyword>
<keyword ref="./wildcardmatching.html">Composite</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/createplaylist.html">Create Playlist</keyword>
<keyword ref="./wildcardmatching.html">Delete</keyword>
<keyword ref="./browse.html">Duplicate</keyword>
<keyword ref="./browse.html">Editing</keyword>
<keyword ref="./openfile.html">Hardware</keyword>
<keyword ref="./openfile.html">HTML</keyword>
<keyword ref="./index.html">Install</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/layout.html">Layout Manager</keyword>
<keyword ref="/root/Desktop/Schedule/Help/help/helpmanual/tv.html">Live Audio Video</keyword>
<keyword ref="./index.html">Login Window</keyword>
<keyword ref="./index.html">Main Window</keyword>
<keyword ref="./index.html">Media</keyword>
<keyword ref="./index.html">New</keyword>
<keyword ref="./index.html">NTSE</keyword>
<keyword ref="./index.html">PAL</keyword>
<keyword ref="./index.html">Password</keyword>
<keyword ref="./index.html">Play</keyword>
<keyword ref="./index.html">Play time</keyword>
<keyword ref="./index.html">Preview</keyword>
<keyword ref="./index.html">Remove</keyword>
<keyword ref="./index.html">Schedule Playlist</keyword>
<keyword ref="./index.html">Scheduling</keyword>
<keyword ref="./index.html">Screen</keyword>
<keyword ref="./index.html">Search</keyword>
<keyword ref="./index.html">Select All</keyword>
<keyword ref="./index.html">Software</keyword>
<keyword ref="./index.html">Sort</keyword>
<keyword ref="./index.html">Standard</keyword>
<keyword ref="./index.html">Template</keyword>
<keyword ref="./index.html">TV-Tunner</keyword>
<keyword ref="./index.html">Uninstall</keyword>
<keyword ref="/root/Desktop/Help/help/upload.html">Upload Contents</keyword>
<keyword ref="./index.html">URL</keyword>
<keyword ref="./index.html">User Manager</keyword>
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Installing VistaPenguing">
<section ref="./findfile.html" title="Hardware and Software Requiremens">
</section>
<section ref="./findfile.html" title="Prepare and Installing Vista">
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Using VistaPenguin SE-DSS">
<section ref="./findfile.html" title="Starting VistaPenguin SE-DSS">
</section>
<section ref="./findfile.html" title="Step by Step guide">
<section ref="./filedialog.html" title="Step 1 - Upload Contents" />
<section ref="./wildcardmatching.html" title="Step 2 - Create Playlist" />
<section ref="./browse.html" title="Step 3 - Schedule Playlist" />
</section>
</DCF>
<DCF ref="index.html" icon="images/handbook.png" title="Administration">
<section ref="./findfile.html" title="UserManagement">
<section ref="./wildcardmatching.html" title="Managing Users" />
<section ref="./browse.html" title="Changing Password" />
</section>
<section ref="./findfile.html" title="Screen Layout Management">
<section ref="./wildcardmatching.html" title="Managing Screen Templates" />
</section>
</DCF>
</assistantconfig>
Thanks in advance!