X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fforms%2Flibrarywidget.cpp;h=75b05279e5ae5a3e797cfd757f0cc0f9b71dee49;hb=48105dec9198cf5a81dd9286010d0d45e28f70c3;hp=7657a5d8e0d1d9ca1cd59c1281653de607b59379;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/forms/librarywidget.cpp b/src/forms/librarywidget.cpp index 7657a5d..75b0527 100644 --- a/src/forms/librarywidget.cpp +++ b/src/forms/librarywidget.cpp @@ -3,7 +3,9 @@ // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun // Extensively rewritten and refactored by James L. Hammons -// (C) 2010 Underground Software +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -34,7 +36,7 @@ LibraryWidget::~LibraryWidget() { } -void LibraryWidget::setActionHandler(QG_ActionHandler * ah) +void LibraryWidget::setActionHandler(ActionHandler * ah) { actionHandler = ah; } @@ -98,7 +100,7 @@ void LibraryWidget::insert() * Appends the given directory to the given list view item. Called recursively until all * library directories are appended. */ -void LibraryWidget::appendTree(QG_ListViewItem * item, QString directory) +void LibraryWidget::appendTree(ListViewItem * item, QString directory) { #if 0 QStringList::Iterator it; @@ -109,8 +111,8 @@ void LibraryWidget::appendTree(QG_ListViewItem * item, QString directory) { QStringList lDirectoryList = dir.entryList(QDir::Dirs, QDir::Name); - QG_ListViewItem* newItem; - QG_ListViewItem* searchItem; + ListViewItem* newItem; + ListViewItem* searchItem; for(it=lDirectoryList.begin(); it!=lDirectoryList.end(); ++it) { @@ -121,9 +123,9 @@ void LibraryWidget::appendTree(QG_ListViewItem * item, QString directory) // Look for an item already existing and take this // instead of making a new one: if (item != NULL) - searchItem = (QG_ListViewItem *)item->firstChild(); + searchItem = (ListViewItem *)item->firstChild(); else - searchItem = (QG_ListViewItem *)lvDirectory->firstChild(); + searchItem = (ListViewItem *)lvDirectory->firstChild(); while (searchItem != NULL) { @@ -133,16 +135,16 @@ void LibraryWidget::appendTree(QG_ListViewItem * item, QString directory) break; } - searchItem = (QG_ListViewItem *)searchItem->nextSibling(); + searchItem = (ListViewItem *)searchItem->nextSibling(); } // Create new item if no existing was found: if (newItem == NULL) { if (item) - newItem = new QG_ListViewItem(item, (*it)); + newItem = new ListViewItem(item, (*it)); else - newItem = new QG_ListViewItem(lvDirectory, (*it)); + newItem = new ListViewItem(lvDirectory, (*it)); } appendTree(newItem, directory + "/" + (*it));