mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2021-06-19 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDCartFilter::setDragEnabled()', 'RDCartFilter::showNoteBubbles()' and 'RDCartFilter::setShowNoteBubbles()' methods. * Removed 'RDCartFilter::loadConfig()' and 'RDCartFilter::saveConfig()' methods. * Added 'RDMainWindow' to rdlibrary(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -199,32 +199,6 @@ QSizePolicy RDCartFilter::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
void RDCartFilter::loadConfig(RDProfile *p)
|
||||
{
|
||||
d_shownotes_box->setChecked(p->boolValue("RDLibrary","ShowNoteBubbles",true));
|
||||
d_allowdrag_box->
|
||||
setChecked(p->boolValue("RDLibrary","AllowCartDragging",false));
|
||||
}
|
||||
|
||||
|
||||
void RDCartFilter::saveConfig(FILE *f) const
|
||||
{
|
||||
if(d_shownotes_box->isChecked()) {
|
||||
fputs("Yes\n",f);
|
||||
}
|
||||
else {
|
||||
fputs("No\n",f);
|
||||
}
|
||||
fprintf(f,"AllowCartDragging=");
|
||||
if(d_allowdrag_box->isChecked()) {
|
||||
fprintf(f,"Yes\n");
|
||||
}
|
||||
else {
|
||||
fprintf(f,"No\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QString RDCartFilter::filterSql(const QStringList &and_fields) const
|
||||
{
|
||||
QString sql=" where ";
|
||||
@@ -282,6 +256,12 @@ bool RDCartFilter::dragEnabled() const
|
||||
}
|
||||
|
||||
|
||||
bool RDCartFilter::showNoteBubbles() const
|
||||
{
|
||||
return d_shownotes_box->isChecked();
|
||||
}
|
||||
|
||||
|
||||
RDCart::Type RDCartFilter::showCartType() const
|
||||
{
|
||||
return d_show_cart_type;
|
||||
@@ -362,6 +342,18 @@ RDLibraryModel *RDCartFilter::model() const
|
||||
}
|
||||
|
||||
|
||||
void RDCartFilter::setDragEnabled(bool state)
|
||||
{
|
||||
return d_allowdrag_box->setChecked(state);
|
||||
}
|
||||
|
||||
|
||||
void RDCartFilter::setShowNoteBubbles(bool state)
|
||||
{
|
||||
d_shownotes_box->setChecked(state);
|
||||
}
|
||||
|
||||
|
||||
void RDCartFilter::setModel(RDLibraryModel *model)
|
||||
{
|
||||
connect(this,SIGNAL(filterChanged(const QString &)),
|
||||
|
@@ -41,13 +41,12 @@ class RDCartFilter : public RDWidget
|
||||
~RDCartFilter();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
void loadConfig(RDProfile *p);
|
||||
void saveConfig(FILE *f) const;
|
||||
QString filterSql(const QStringList &and_fields=QStringList()) const;
|
||||
QString filterText() const;
|
||||
QString selectedGroup() const;
|
||||
QString selectedSchedCode() const;
|
||||
bool dragEnabled() const;
|
||||
bool showNoteBubbles() const;
|
||||
RDCart::Type showCartType() const;
|
||||
void setShowCartType(RDCart::Type type);
|
||||
bool showTrackCarts() const;
|
||||
@@ -62,6 +61,8 @@ class RDCartFilter : public RDWidget
|
||||
static QString typeFilter(bool incl_audio,bool incl_macro,RDCart::Type mask);
|
||||
|
||||
public slots:
|
||||
void setDragEnabled(bool state);
|
||||
void setShowNoteBubbles(bool state);
|
||||
void setModel(RDLibraryModel *model);
|
||||
void setFilterText(const QString &str);
|
||||
void setSelectedGroup(const QString &grpname);
|
||||
|
Reference in New Issue
Block a user