A Library to implements tidy in Qt4 Applications.

About QTidy

A Library and some Helper programs that make it easier and more intuitive for Developer to integrate Tidy in Qt Applications.

The current Project planning is:

  • Program for configure ~/.tidyrc qtidyrc
  • Syntax inspections libQTidy
  • source code cleaner libQTidy
  • dom tree model libQTidy

the following example binding the QTidy::Config Class and set a QAbstractTableModel to QTableView.

Example QTableView::setModel()
#include "example.h"

#include <QTidy>

Example::Example ()
{
  /* create default QMainWindow menu actions */
  QMenuBar *bar = menuBar ();
  QMenu *mMenu =  bar->addMenu ( "&File" );
  QAction *aQuit = mMenu->addAction ( "&Quit" );

  /* create QTableView Widget */
  QTableView *tWidget = new QTableView ( centralWidget () );
  setCentralWidget ( tWidget );

  /* Initial QTidy::Config */
  QTidy::QTidyConfig *cfg = new QTidy::QTidyConfig ();
  /* set QAbstractTableModel to QTableView */
  tWidget->setModel ( cfg->getTableModel ( tWidget ) );

  connect ( aQuit, SIGNAL ( triggered () ), this, SLOT ( close () ) );

  /* Status Bar */
  statusBar ();
  resize ( 300,500 );
}
Development API

Platform-specific notes

License
This work is released under the terms of the GNU General Public License, version 2.
The full text of the license can be found in the COPYING file.
Linux
GNU/Linux LFS is the development platform, so the library should work best on Linux. The most important requirement is having Qt 4.6.0 (or above).
Windows
The QTidy Library can also compile under Windows see SDK in Download Section.