summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui')
-rw-r--r--lib/kofficeui/CMakeLists.txt77
-rw-r--r--lib/kofficeui/KoInsertLink.cpp10
-rw-r--r--lib/kofficeui/KoSelectAction.cpp8
-rw-r--r--lib/kofficeui/KoTemplateChooseDia.cpp2
-rw-r--r--lib/kofficeui/koffice.widgets16
-rw-r--r--lib/kofficeui/pics/CMakeLists.txt23
6 files changed, 115 insertions, 21 deletions
diff --git a/lib/kofficeui/CMakeLists.txt b/lib/kofficeui/CMakeLists.txt
new file mode 100644
index 000000000..868ed2305
--- /dev/null
+++ b/lib/kofficeui/CMakeLists.txt
@@ -0,0 +1,77 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/store
+ ${CMAKE_SOURCE_DIR}/lib/kofficecore
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_library(kofficeui SHARED AUTOMOC
+ SOURCES
+ KoPageLayoutDia.cpp KoZoomAction.cpp KoTabBar.cpp
+ KoPartSelectDia.cpp KoPartSelectAction.cpp
+ KoRuler.cpp KoTemplateChooseDia.cpp KoTabChooser.cpp
+ KoKoolBar.cpp KoTemplateCreateDia.cpp KoContextCelp.cpp
+ kcoloractions.cpp KoPictureFilePreview.cpp KoUnitWidgets.cpp
+ ttdeaction.cpp tkcoloractions.cpp tkcombobox.cpp ttdetoolbarbutton.cpp
+ KoCharSelectDia.cpp KoInsertLink.cpp KoEditPath.cpp KoCommandHistory.cpp
+ KoSelectAction.cpp Kolinewidthaction.cpp Kolinestyleaction.cpp
+ KoTooluButton.cpp KoBrush.cpp KoImageResource.cpp KoToolBox.cpp
+ KoZoomHandler.cpp KoGuideLineDia.cpp KoGuides.cpp KoZoomMode.cpp
+ KoGeneralPropertyUi.ui KoPageLayoutColumns.cpp KoPageLayoutColumnsBase.ui
+ KoPageLayoutSize.cpp KoPageLayoutHeaderBase.ui KoPageLayoutHeader.cpp
+ KoPen.cpp
+ LINK kofficecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+### Headers ###################################################################
+install(
+ FILES
+ KoPageLayoutDia.h KoZoomAction.h KoTabBar.h
+ KoPartSelectDia.h KoPartSelectAction.h
+ KoRuler.h KoTemplateChooseDia.h KoTabChooser.h
+ KoKoolBar.h KoTemplateCreateDia.h KoContextCelp.h
+ kcoloractions.h KoPictureFilePreview.h KoUnitWidgets.h
+ ttdeaction.h tkcoloractions.h ttdetoolbarbutton.h tkcombobox.h
+ KoCharSelectDia.h KoInsertLink.h KoTooluButton.h KoEditPath.h
+ KoCommandHistory.h KoImageResource.h
+ KoSelectAction.h Kolinewidthaction.h Kolinestyleaction.h
+ KoZoomHandler.h KoGuideLineDia.h KoGuides.h
+ KoPageLayoutHeader.h KoPageLayoutSize.h
+ KoPageLayoutColumns.h KoBrush.h KoPen.h KoZoomMode.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
+)
+
+### Widgets ###################################################################
+if (HAVE_MAKETDEWIDGETS)
+ add_custom_command(OUTPUT kofficewidgets.cpp
+ COMMAND maketdewidgets -o kofficewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/koffice.widgets
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/koffice.widgets
+ )
+
+ tde_add_kpart(kofficewidgets AUTOMOC
+ SOURCES kofficewidgets.cpp
+ LINK tdeio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer
+ )
+endif()
+
+### Data ######################################################################
+add_subdirectory(pics)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/lib/kofficeui/KoInsertLink.cpp b/lib/kofficeui/KoInsertLink.cpp
index 94a2ffb75..a836b8de2 100644
--- a/lib/kofficeui/KoInsertLink.cpp
+++ b/lib/kofficeui/KoInsertLink.cpp
@@ -242,7 +242,7 @@ internetLinkPage::internetLinkPage( TQWidget *parent , char *name )
lay2->addWidget(m_hrefName);
lay2->addStretch( 1 );
-
+
m_linkName->setFocus();
connect(m_linkName,TQ_SIGNAL(textChanged ( const TQString & )),this,TQ_SLOT(textChanged ( const TQString & )));
@@ -315,7 +315,7 @@ bookmarkLinkPage::bookmarkLinkPage( TQWidget *parent , char *name )
lay2->addWidget(m_hrefName);
lay2->addStretch( 1 );
-
+
m_linkName->setFocus();
connect(m_linkName,TQ_SIGNAL(textChanged ( const TQString & )),this,TQ_SLOT(textChanged ( const TQString & )));
@@ -396,7 +396,7 @@ mailLinkPage::mailLinkPage( TQWidget *parent , char *name )
lay2->addWidget(m_hrefName);
lay2->addStretch( 1 );
-
+
connect(m_linkName,TQ_SIGNAL(textChanged ( const TQString & )),this,TQ_SLOT(textChanged ( const TQString & )));
connect(m_hrefName,TQ_SIGNAL(textChanged ( const TQString & )),this,TQ_SLOT(textChanged ( const TQString & )));
KSeparator* bar1 = new KSeparator( KSeparator::HLine, this);
@@ -483,9 +483,9 @@ fileLinkPage::fileLinkPage( TQWidget *parent , char *name )
}
else
recentFile->insertStringList( lst);
-
+
recentFile->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
-
+
connect( recentFile , TQ_SIGNAL(highlighted ( const TQString &)), this, TQ_SLOT( slotSelectRecentFile( const TQString & )));
tmpTQLabel = new TQLabel( this);
diff --git a/lib/kofficeui/KoSelectAction.cpp b/lib/kofficeui/KoSelectAction.cpp
index d8542ec5c..3cc02db3a 100644
--- a/lib/kofficeui/KoSelectAction.cpp
+++ b/lib/kofficeui/KoSelectAction.cpp
@@ -40,13 +40,13 @@ class KoSelectAction::KoSelectActionPrivate
m_popup = new TDEPopupMenu(0L,"KoLineStyleAction::popup");
m_currentSelection = 0;
}
-
+
~KoSelectActionPrivate()
{
delete m_popup;
m_popup = 0;
}
-
+
TDEPopupMenu* m_popup;
int m_currentSelection;
};
@@ -56,7 +56,7 @@ KoSelectAction::KoSelectAction(const TQString &text, const TQString& icon,
{
d = new KoSelectActionPrivate;
setShowCurrentSelection(true);
-
+
connect(popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(execute(int)));
}
@@ -64,7 +64,7 @@ KoSelectAction::KoSelectAction(const TQString &text, const TQString& icon, const
const char* slot, TQObject* parent, const char* name) : TDEAction(text, icon, 0, parent, name)
{
d = new KoSelectActionPrivate;
-
+
connect(this, TQ_SIGNAL(selectionChanged(int)), receiver, slot);
connect(popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(execute(int)));
}
diff --git a/lib/kofficeui/KoTemplateChooseDia.cpp b/lib/kofficeui/KoTemplateChooseDia.cpp
index 8ce383a9d..6a89cbe77 100644
--- a/lib/kofficeui/KoTemplateChooseDia.cpp
+++ b/lib/kofficeui/KoTemplateChooseDia.cpp
@@ -472,7 +472,7 @@ void KoTemplateChooseDia::setupTemplateDialog(TQWidget * widgetbase, TQGridLayou
d->m_jwidget->showPage(templateNum);
else if ( defaultTemplateGroup != -1)
d->m_jwidget->showPage(defaultTemplateGroup);
-
+
// Set the initially selected template, possibly from the last usage of the dialog
currentChanged(itemtoselect);
diff --git a/lib/kofficeui/koffice.widgets b/lib/kofficeui/koffice.widgets
index 9a3f0ba10..336d60562 100644
--- a/lib/kofficeui/koffice.widgets
+++ b/lib/kofficeui/koffice.widgets
@@ -1,32 +1,26 @@
[Global]
PluginName=KOfficeWidgets
-[KoBuggyUnitDoubleSpinBox]
+[KoUnitDoubleSpinBox]
ToolTip=KOffice Spin box for double precision numbers with unit display
WhatsThis=KOffice Spin box for double precision numbers with unit display
-IncludeFile=koUnitWidgets.h
-Group=Input (KOffice)
-
-[KoUnitDoubleSpinBox2]
-ToolTip=KOffice Spin box for double precision numbers with unit display
-WhatsThis=KOffice Spin box for double precision numbers with unit display
-IncludeFile=koUnitWidgets.h
+IncludeFile=KoUnitWidgets.h
Group=Input (KOffice)
[KoUnitDoubleLineEdit]
ToolTip=KOffice Line edit for double precision numbers with unit display
WhatsThis=KOffice Line edit for double precision numbers with unit display
-IncludeFile=koUnitWidgets.h
+IncludeFile=KoUnitWidgets.h
Group=Input (KOffice)
[KoUnitDoubleComboBox]
ToolTip=KOffice Combo box for double precision numbers with unit display
WhatsThis=KOffice Combo box for double precision numbers with unit display
-IncludeFile=koUnitWidgets.h
+IncludeFile=KoUnitWidgets.h
Group=Input (KOffice)
[KoUnitDoubleSpinComboBox]
ToolTip=KOffice Combo box (with spin control) for double precision numbers with unit display
WhatsThis=KOffice Combo box (with spin control) for double precision numbers with unit display
-IncludeFile=koUnitWidgets.h
+IncludeFile=KoUnitWidgets.h
Group=Input (KOffice)
diff --git a/lib/kofficeui/pics/CMakeLists.txt b/lib/kofficeui/pics/CMakeLists.txt
new file mode 100644
index 000000000..1d14be12e
--- /dev/null
+++ b/lib/kofficeui/pics/CMakeLists.txt
@@ -0,0 +1,23 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+install(
+ FILES
+ koRulerFirst.png koRulerLeft.png koffice-logo.png
+ koKoolBarDown.png koKoolBarUp.png
+ koPortrait.png koLandscape.png
+ DESTINATION ${DATA_INSTALL_DIR}/koffice/pics
+)
+
+install(
+ FILES
+ kounitdoublecombobox.png kounitdoublelineedit.png
+ kounitdoublespinbox2.png kounitdoublespincombobox.png
+ DESTINATION ${DATA_INSTALL_DIR}/kofficewidgets/pics
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file