mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 22:44:56 -04:00
fixed comiplation in Linux (Ubuntu)
line 117: #define _WIN64 1 must be removed in ./compressed_archive/libp7zip/CPP/myWindows/StdAfx.h "cannot find -lpulse" compiling under Qt 5.0.2 can be fixed creating a symbolic link from libpulse.so.0 to libpulse.so (further research is needed)
This commit is contained in:
37
custom_widgets/yacreader_library_list_widget.h
Normal file
37
custom_widgets/yacreader_library_list_widget.h
Normal file
@ -0,0 +1,37 @@
|
||||
#ifndef YACREADER_LIBRARY_LIST_WIDGET_H
|
||||
#define YACREADER_LIBRARY_LIST_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class YACReaderLibraryItemWidget;
|
||||
class QMouseEvent;
|
||||
|
||||
class YACReaderLibraryListWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderLibraryListWidget(QWidget *parent = 0);
|
||||
|
||||
signals:
|
||||
void currentIndexChanged(QString text);
|
||||
|
||||
public slots:
|
||||
QString currentText();
|
||||
int findText(QString text);
|
||||
void setCurrentIndex(int index);
|
||||
void addItem(QString name, QString path);
|
||||
int currentIndex();
|
||||
void removeItem(int index);
|
||||
void showContextMenu();
|
||||
void renameCurrentLibrary(QString newName);
|
||||
protected:
|
||||
void mousePressEvent ( QMouseEvent * event );
|
||||
private:
|
||||
int currentLibraryIndex;
|
||||
QList < YACReaderLibraryItemWidget* > librariesList;
|
||||
void deselectAllBut(int index);
|
||||
|
||||
};
|
||||
|
||||
#endif // YACREADER_LIBRARY_LIST_WIDGET_H
|
||||
|
Reference in New Issue
Block a user