Rename KDE_MAKE_VERSION and update TDE version string

pull/1/head
Timothy Pearson 13 years ago
parent b59a8a75a5
commit 24dd177d07

@ -323,7 +323,7 @@ void KSystemLog::setupActions() {
//TODO Find a solution to display at the right place this action (see Akregator interface)
filterBarAction=new KToggleAction(i18n("Show &Filter Bar"), TQString(), 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleFilterBar()), actionCollection(), "toggle_filter_bar");
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
filterBarAction->setEnabled(true);
#else
filterBarAction->setEnabled(false);
@ -393,7 +393,7 @@ void KSystemLog::setupActions() {
void KSystemLog::setupLogActions() {
//Define a macro allowing the connection of the signal from log action to the slotLogAction object
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
#define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated(KAction::ActivationReason, TQt::ButtonState)), slotLogAction, TQT_SLOT(slotLogAction(KAction::ActivationReason, TQt::ButtonState)));
#else
#define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated()), slotLogAction, TQT_SLOT(slotLogAction()));
@ -678,7 +678,7 @@ LogManager* KSystemLog::newTab() {
tabs->insertTab(manager->getView(), SmallIcon(NO_MODE_ICON), i18n("No Log"));
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
if (tabs->count()>1) {
tabs->setTabBarHidden(false);
}
@ -776,7 +776,7 @@ void KSystemLog::closeTab() {
}
*/
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
if (tabs->count()==1) {
tabs->setTabBarHidden(true);
}
@ -937,7 +937,7 @@ KToggleAction* KSystemLog::getLogAction(const char* name) {
return( static_cast<KToggleAction*> (actionCollection()->action(name)) );
}
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
void KSystemLog::logActionClicked(const TQObject* sender, KAction::ActivationReason reason, TQt::ButtonState state) {
#else
void KSystemLog::logActionClicked(const TQObject* sender) {
@ -954,7 +954,7 @@ void KSystemLog::logActionClicked(const TQObject* sender) {
//TODO Be sure that the + is the right symbol to combine TQt Constants
//If the user uses the middle button OR left button + shift OR left button + control : = it opens the log in a new tab
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
if (state==Qt::MidButton || (state==TQt::ControlButton+Qt::LeftButton) || (state==TQt::ShiftButton+Qt::LeftButton))
newTab();
#endif

@ -53,7 +53,7 @@
#include "globals.h"
//Include the right header for the management of Log Action clicking, depending of the version of KDE
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,4,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
#include "slotLogAction.h"
#else
#include "slotLogActionCompatibility.h"
@ -108,7 +108,7 @@ class KSystemLog : public KMainWindow {
void setCurrentLogManager(LogManager* view);
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
//Actual KDE method
void logActionClicked(const TQObject* sender, KAction::ActivationReason reason, TQt::ButtonState state);
#else

@ -22,7 +22,7 @@
#include <tdeversion.h>
//The filter is activated only if KDE version >= 3.3
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
#include <tqpainter.h>

@ -25,7 +25,7 @@
#include <tdeversion.h>
//The filter is activated only if KDE version >= 3.3
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
#include <klistviewsearchline.h>

@ -163,7 +163,7 @@ void LogListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, in
//Use or not an alternate background
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
if (line->isParentLogLine()==true && column==0)
pBuf.fillRect( buffer.rect(), isSelected() ? cg.highlight() : cg.highlight() );
else

@ -25,7 +25,7 @@
#include "ksystemlog.h"
//Include the right header, depending of the version of KDE
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,4,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
#include "slotLogAction.h"
#else
#include "slotLogActionCompatibility.h"
@ -36,7 +36,7 @@ SlotLogAction::SlotLogAction(KSystemLog* p) :
}
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,4,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
void SlotLogAction::slotLogAction(KAction::ActivationReason reason, TQt::ButtonState state) {
const TQObject* sender=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQObject::sender()));
@ -53,7 +53,7 @@ void SlotLogAction::slotLogAction() {
#endif
//Include the right TQMOC file, depending of the version of KDE
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,4,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
#include "slotLogAction.moc"
#else
#include "slotLogActionCompatibility.moc"

@ -69,7 +69,7 @@ View::View(TQWidget *parent) :
topLayout->setAutoAdd(true);
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
filterBar=new TQHBox(this);
filterBar->setSpacing(5);
filterBar->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
@ -103,7 +103,7 @@ View::View(TQWidget *parent) :
this->initLogList();
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
//We initialize the table after, after the initialization of the table
search->setListView(table);
@ -115,7 +115,7 @@ View::View(TQWidget *parent) :
View::~View() {
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,3,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,3,0))
delete clearSearch;
delete search;
@ -154,7 +154,7 @@ bool View::isTooltipEnabled() {
}
void View::toggleFilterBar() {
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
//The newly created bar is only displayed if the config file allow it
if (KSystemLogConfig::toggleFilterBar()==true)
filterBar->show();
@ -244,7 +244,7 @@ void View::setLastItemSelected() {
}
void View::updateSearchFilter() {
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
//We first delete all items
int count=searchFilter->count() - 1;
while (count>=0) {
@ -361,7 +361,7 @@ void View::setSortEnabled(bool enabled) {
}
void View::initSearchFilter(TQWidget* filterBox) {
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
searchFilter=new TQComboBox(filterBox);
TQWhatsThis::add(searchFilter, i18n("<qt>Allows you to apply the item filter only on the specified column here. \"<i>All</i>\" column means no specific filter.</qt>"));
@ -403,7 +403,7 @@ KListView* View::getLogList() {
void View::changeColumnFilter(int column) {
#if defined(KDE_MAKE_VERSION) && TDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
TQValueList<int> filterColumns;
//The user select all columns

@ -35,7 +35,7 @@
#include <tdeversion.h>
//The filter is activated only if KDE version >= 3.3
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,3,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,3,0))
#include "logLineFilter.h"
#endif
@ -167,7 +167,7 @@ class View : public TQWidget, public KSystemLogInterface {
*/
KListView* table;
#if defined(KDE_MAKE_VERSION) && (TDE_VERSION >= KDE_MAKE_VERSION(3,3,0))
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,3,0))
TQHBox* filterBar;
KToolBarButton* clearSearch;

Loading…
Cancel
Save