]> git.lyx.org Git - features.git/commitdiff
display icons in the Embedding dialog
authorBo Peng <bpeng@lyx.org>
Sat, 6 Oct 2007 21:14:30 +0000 (21:14 +0000)
committerBo Peng <bpeng@lyx.org>
Sat, 6 Oct 2007 21:14:30 +0000 (21:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20802 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiEmbeddedFiles.cpp

index e6ac23bfdf13f26c2a012a5cc6064b8b4e50a306..a0c1d56360535f2778f7b9f3e21d0b3925bca678 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "support/FileFilterList.h"
 #include "support/convert.h"
+#include "support/FileName.h"
+#include "support/filetools.h"
 
 using std::string;
 
@@ -33,6 +35,8 @@ namespace lyx {
 namespace frontend {
 
 using support::FileFilterList;
+using support::FileName;
+using support::libFileSearch;
 
 GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog
                (ControlEmbeddedFiles & controller)
@@ -40,6 +44,18 @@ GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog
 {
        setupUi(this);
        setWindowTitle("LyX: " + qt_("Embedded Files"));
+       // Temporary icons.
+       FileName icon_path = libFileSearch("images", "tabular-feature_set-all-lines.png");
+       selectPB->setIcon(QIcon(toqstr(icon_path.absFilename())));
+       icon_path =  libFileSearch("images", "tabular-feature_unset-all-lines.png");
+       unselectPB->setIcon(QIcon(toqstr(icon_path.absFilename())));
+       icon_path =  libFileSearch("images", "file-open.png");
+       addPB->setIcon(QIcon(toqstr(icon_path.absFilename())));
+       icon_path =  libFileSearch("images", "depth-decrement.png");
+       extractPB->setIcon(QIcon(toqstr(icon_path.absFilename())));
+       icon_path =  libFileSearch("images", "depth-increment.png");
+       updatePB->setIcon(QIcon(toqstr(icon_path.absFilename())));
+
        updateView();
 }