mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
esto evita el bloqueo del archivo de BD Si se detecta una biblioteca que no tiene contenido se ofrece al usuario la posibilidad de eliminarla (di?logo)
108 lines
2.4 KiB
C++
108 lines
2.4 KiB
C++
#ifndef __PROPERTIES_DIALOG_H
|
|
#define __PROPERTIES_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QScrollArea>
|
|
#include <QGroupBox>
|
|
#include <QDialogButtonBox>
|
|
#include <QGridLayout>
|
|
#include <QTabWidget>
|
|
#include <QCheckBox>
|
|
|
|
#include "comic.h"
|
|
#include "custom_widgets.h"
|
|
|
|
class PropertiesDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QGridLayout * mainLayout;
|
|
|
|
QTabWidget * tabBar;
|
|
|
|
QGroupBox * coverBox;
|
|
QLabel * cover;
|
|
QScrollArea * sa;
|
|
|
|
QWidget * generalInfoBox;
|
|
YACReaderFieldEdit * title;
|
|
YACReaderFieldEdit * numPagesEdit;
|
|
QLabel * size;
|
|
|
|
YACReaderFieldEdit * coverPageEdit;
|
|
|
|
YACReaderFieldEdit * numberEdit;
|
|
QCheckBox * isBisCheck;
|
|
YACReaderFieldEdit * countEdit;
|
|
|
|
YACReaderFieldEdit * volumeEdit;
|
|
YACReaderFieldEdit * storyArcEdit;
|
|
YACReaderFieldEdit * arcNumberEdit;
|
|
YACReaderFieldEdit * arcCountEdit;
|
|
|
|
YACReaderFieldEdit * genereEdit;
|
|
|
|
YACReaderFieldPlainTextEdit * writer;
|
|
YACReaderFieldPlainTextEdit * penciller;
|
|
YACReaderFieldPlainTextEdit * inker;
|
|
YACReaderFieldPlainTextEdit * colorist;
|
|
YACReaderFieldPlainTextEdit * letterer;
|
|
YACReaderFieldPlainTextEdit * coverArtist;
|
|
|
|
YACReaderFieldEdit * dayEdit;
|
|
YACReaderFieldEdit * monthEdit;
|
|
YACReaderFieldEdit * yearEdit;
|
|
YACReaderFieldEdit * publisherEdit;
|
|
YACReaderFieldEdit * formatEdit;
|
|
QCheckBox * colorCheck;
|
|
YACReaderFieldEdit * ageRatingEdit;
|
|
|
|
YACReaderFieldPlainTextEdit * synopsis;
|
|
YACReaderFieldPlainTextEdit * characters;
|
|
YACReaderFieldPlainTextEdit * notes;
|
|
|
|
QWidget * authorsBox;
|
|
|
|
QWidget * publishingBox;
|
|
|
|
QWidget * plotBox;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
QPushButton *closeButton;
|
|
QPushButton *saveButton;
|
|
QPushButton *restoreButton; //??
|
|
|
|
void createTabBar();
|
|
void createCoverBox();
|
|
void createGeneralInfoBox();
|
|
void createAuthorsBox();
|
|
void createPublishingBox();
|
|
void createPlotBox();
|
|
|
|
void createButtonBox();
|
|
|
|
void setDisableUniqueValues(bool disabled);
|
|
|
|
QList<Comic> comics;
|
|
void closeEvent ( QCloseEvent * e );
|
|
public:
|
|
PropertiesDialog(QWidget * parent = 0);
|
|
QString databasePath;
|
|
QString basePath;
|
|
|
|
public slots:
|
|
void setComics(QList<Comic> comics);
|
|
void updateComics();
|
|
void save();
|
|
//Deprecated
|
|
void setCover(const QPixmap & cover);
|
|
void setFilename(const QString & name);
|
|
void setNumpages(int pages);
|
|
void setSize(float size);
|
|
|
|
};
|
|
#endif
|
|
|